text shape class that displays a character string.
![]() | TextShape (ShapeView *v, Grafport *g, Shape *parent) |
![]() | TextShape (const TextShape &t) |
![]() | Clone () |
![]() | Draw () |
![]() | Undraw () |
![]() | DrawDuplicate () no duplicate asteriks are possible for text shapes. |
![]() | SetParent (Shape *shape) |
![]() | GetParent () const |
![]() | SetString (const string *s) set text and recalculate the sizes. |
![]() | GetString () const |
![]() | ChooseTextShape (int, int) |
![]() | HitTextShape (int x, int y) |
![]() | InTextArea (int x, int y) |
![]() | IsTextShape () const |
![]() | IsEmpty () const |
![]() | SetEmpty () |
![]() | DrawOutLine (const Point *center) draws a dotted rectangle around the textshape. |
![]() | SetPosition (const Point *p, bool snap=False) set textshape at position (not using grid !). |
![]() | ContainsPt (int x, int y) returns if (x,y) is in textshape (not empty string). |
![]() | TextBox (int &wd, int &ht) return text width and height (depends on font). |
![]() | UpdateAlignment (TextAlign::Type newtype) |
![]() | SetAlignment (TextAlign::Type newtype) |
![]() | GetAlignment () const |
![]() | GetFont () const |
![]() | SetFont (XFont *ft) |
![]() | UpdateFont (XFont *ft) |
![]() | GetFontHeight () const |
![]() | GetStringHeight () const |
![]() | GetStringWidth () const |
![]() | IsWellPositioned () const if wellPositioned = false then current position isn't preferred. |
![]() | SetWellPositioned (bool b) !wellPositioned indicates parent should recalculate child position. |
![]() | GetDescription () const returns a string which describes the kind of text shape. |
![]() | SetDescription (const string *s) |
![]() | SetDescription (const char *s) |
![]() | IsOneLine () const |
![]() | SetOneLine (bool o) |
![]() | IsUnderlined () const |
![]() | SetUnderlined (bool b) |
![]() | UpdateUnderlined (bool b) |
![]() | HasTextShape (TextShape *t) const return if it has t as one of the text shapes. |
![]() | HasString (const string *s, bool sens, bool sub) const textshape contains s as string. |
![]() | ReplaceString (const string *s1, const string *s2, bool sens, bool sub) replace occurrences of s1 by s2 (if allowed by Update). |
![]() | HasString (const string *s, bool caseSens, bool substring, List<TextShape *> *list) puts itself into list when text contains s |
![]() | GetSequence () const |
![]() | SetSequence (int n) |
text shape class that displays a character string.
TextShape(const TextShape &t)
Shape* Clone()
void Draw()
void Undraw()
void DrawDuplicate()
void SetParent(Shape *shape)
Shape* GetParent() const
void SetString(const string *s)
const string* GetString() const
TextShape* ChooseTextShape(int, int)
TextShape* HitTextShape(int x, int y)
bool InTextArea(int x, int y)
bool IsTextShape() const
bool IsEmpty() const
void SetEmpty()
void DrawOutLine(const Point *center)
void SetPosition(const Point *p, bool snap=False)
bool ContainsPt(int x, int y)
void TextBox(int &wd, int &ht)
void UpdateAlignment(TextAlign::Type newtype)
void SetAlignment(TextAlign::Type newtype)
TextAlign::Type GetAlignment() const
XFont* GetFont() const
void SetFont(XFont *ft)
void UpdateFont(XFont *ft)
int GetFontHeight() const
int GetStringHeight() const
int GetStringWidth() const
bool IsWellPositioned() const
void SetWellPositioned(bool b)
const string* GetDescription() const
void SetDescription(const string *s)
void SetDescription(const char *s)
bool IsOneLine() const
void SetOneLine(bool o)
bool IsUnderlined() const
void SetUnderlined(bool b)
void UpdateUnderlined(bool b)
bool HasTextShape(TextShape *t) const
bool HasString(const string *s, bool sens, bool sub) const
int ReplaceString(const string *s1, const string *s2, bool sens, bool sub)
bool HasString(const string *s, bool caseSens, bool substring, List<TextShape *> *list)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de