1
<html><head><TITLE>TextShape</TITLE></head>
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class TextShape : public <!2><A HREF="Shape.html#DOC.296.1">Shape</A> </H2><BLOCKQUOTE>
4
text shape class that displays a character string.
8
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
9
<param name=classes value="CThing,MThing.html,CShape,MShape.html,CTextShape,MTextShape.html">
10
<param name=before value="M,M,M">
11
<param name=after value="Md_SP,Md_,M">
12
<param name=indent value="0,1,2">
13
<param name=arrowdir value="down">
19
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.383.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>TextShape</B> (<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, <!2><A HREF="Shape.html#DOC.296.1">Shape</A> *<!2><A HREF="TextShape.html#DOC.383.47">parent</A>)<br>
21
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.2"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>TextShape</B> (const <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> &t)<br>
23
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.3"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* </TD><TD><B>Clone</B> ()<br>
25
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Draw</B> ()<br>
27
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Undraw</B> ()<br>
29
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.6"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawDuplicate</B> ()<br>
30
<I> no duplicate asteriks are possible for text shapes.</I>
31
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.7"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetParent</B> (<!2><A HREF="Shape.html#DOC.296.1">Shape</A> *shape)<br>
33
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.8"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* </TD><TD><B>GetParent</B> () const <br>
35
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.9"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetString</B> (const <!1><A HREF="string.html">string</A> *s)<br>
36
<I> set text and recalculate the sizes.</I>
37
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.10"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetString</B> () const <br>
39
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.11"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* </TD><TD><B>ChooseTextShape</B> (int, int)<br>
41
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.12"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* </TD><TD><B>HitTextShape</B> (int x, int y)<br>
43
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.13"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>InTextArea</B> (int x, int y)<br>
45
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.14"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsTextShape</B> () const <br>
47
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.15"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsEmpty</B> () const <br>
49
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.16"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetEmpty</B> ()<br>
51
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.17"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawOutLine</B> (const <!1><A HREF="Point.html">Point</A> *center)<br>
52
<I> draws a dotted rectangle around the textshape.</I>
53
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.18"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetPosition</B> (const <!1><A HREF="Point.html">Point</A> *p, bool snap=False)<br>
54
<I> set textshape at position (not using grid !).</I>
55
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.19"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>ContainsPt</B> (int x, int y)<br>
56
<I> returns if (x,y) is in textshape (not empty string).</I>
57
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.20"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>TextBox</B> (int &wd, int &ht)<br>
58
<I> return text width and height (depends on font).</I>
59
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.21"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)<br>
61
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.22"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)<br>
63
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.23"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> </TD><TD><B>GetAlignment</B> () const <br>
65
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.24"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="XFont.html">XFont</A>* </TD><TD><B>GetFont</B> () const <br>
67
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.25"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
69
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.26"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
71
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.27"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetFontHeight</B> () const <br>
73
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.28"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetStringHeight</B> () const <br>
75
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.29"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetStringWidth</B> () const <br>
77
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.30"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsWellPositioned</B> () const <br>
78
<I> if wellPositioned = false then current position isn't preferred. </I>
79
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.31"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetWellPositioned</B> (bool b)<br>
80
<I> !wellPositioned indicates parent should recalculate child position.</I>
81
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.32"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetDescription</B> () const <br>
82
<I> returns a string which describes the kind of text shape.</I>
83
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.33"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetDescription</B> (const <!1><A HREF="string.html">string</A> *s)<br>
85
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.34"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetDescription</B> (const char *s)<br>
87
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.35"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsOneLine</B> () const <br>
89
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.36"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetOneLine</B> (bool o)<br>
91
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.37"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsUnderlined</B> () const <br>
93
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.38"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetUnderlined</B> (bool b)<br>
95
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.39"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateUnderlined</B> (bool b)<br>
97
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.40"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasTextShape</B> (<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *t) const <br>
98
<I> return if it has t as one of the text shapes.</I>
99
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.41"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool sens, bool sub) const <br>
100
<I> textshape contains s as string. </I>
101
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.42"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>ReplaceString</B> (const <!1><A HREF="string.html">string</A> *s1, const <!1><A HREF="string.html">string</A> *s2, bool sens, bool sub)<br>
102
<I> replace occurrences of s1 by s2 (if allowed by Update).</I>
103
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.43"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool caseSens, bool substring, <!1><A HREF="List.html">List</A><<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *> *list)<br>
104
<I> puts itself into list when text contains s</I>
105
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.44"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetSequence</B> () const <br>
107
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.45"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetSequence</B> (int n)<br>
109
</TD></TR></TABLE></DL>
110
<hr><H3>Inherited from <A HREF="Shape.html">Shape:</A></h3>
114
<DT><h3>Public Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HEIGHT</B>
115
<DT><IMG SRC=icon2.gif> static const int <B>MIN_WIDTH</B>
116
<DT><IMG SRC=icon2.gif> static const int <B>HANDLE_WIDTH</B>
118
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> bool <B>IsShape</B>() const
119
<DT><IMG SRC=icon2.gif> virtual void <B>UpdatePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>, bool snap=True)
120
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSize</B>(int w, int h)
121
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateMove</B>(const <!1><A HREF="Point.html">Point</A> *delta)
122
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSelect</B>(bool s)
123
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateFirstSelect</B>(bool s)
124
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateColor</B>(<!1><A HREF="string.html">string</A> *<!2><A HREF="Shape.html#DOC.296.97">color</A>)
125
<DT><IMG SRC=icon2.gif> virtual void <B>SetSelect</B>(bool s)
126
<DT><IMG SRC=icon2.gif> virtual void <B>SetFirstSelect</B>(bool s)
127
<DT><IMG SRC=icon2.gif> bool <B>IsFirstSelected</B>() const
128
<DT><IMG SRC=icon2.gif> void <B>SetVisible</B>(bool s)
129
<DT><IMG SRC=icon2.gif> void <B>SetSubject</B>(<!1><A HREF="Subject.html">Subject</A> *s)
130
<DT><IMG SRC=icon2.gif> virtual void <B>SetView</B>(<!1><A HREF="ShapeView.html">ShapeView</A> *v)
131
<DT><IMG SRC=icon2.gif> <!1><A HREF="Subject.html">Subject</A>* <B>GetSubject</B>() const
132
<DT><IMG SRC=icon2.gif> <!1><A HREF="ShapeView.html">ShapeView</A>* <B>GetView</B>() const
133
<DT><IMG SRC=icon2.gif> virtual void <B>SetGrafport</B>(<!1><A HREF="Grafport.html">Grafport</A> *g)
134
<DT><IMG SRC=icon2.gif> void <B>SetColor</B>(const <!1><A HREF="string.html">string</A> *c)
135
<DT><IMG SRC=icon2.gif> const <!1><A HREF="string.html">string</A>* <B>GetColor</B>() const
136
<DT><IMG SRC=icon2.gif> virtual void <B>Move</B>(const <!1><A HREF="Point.html">Point</A> *delta)
137
<DT><IMG SRC=icon2.gif> virtual void <B>AdjustSize</B>()
138
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>) const
139
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>, int, int, int &)
140
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveOrthoSnp</B>(<!1><A HREF="Point.html">Point</A> to) const
141
<DT><IMG SRC=icon2.gif> void <B>SetHandles</B>(int n)
142
<DT><IMG SRC=icon2.gif> virtual int <B>HitHandles</B>(int x, int y)
143
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetPosition</B>() const
144
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetTopLeft</B>() const
145
<DT><IMG SRC=icon2.gif> bool <B>IsSelected</B>() const
146
<DT><IMG SRC=icon2.gif> bool <B>IsVisible</B>() const
147
<DT><IMG SRC=icon2.gif> bool <B>IsDuplicate</B>() const
148
<DT><IMG SRC=icon2.gif> int <B>GetWidth</B>() const
149
<DT><IMG SRC=icon2.gif> int <B>GetHeight</B>() const
150
<DT><IMG SRC=icon2.gif> void <B>UndrawDuplicate</B>()
151
<DT><IMG SRC=icon2.gif> void <B>SetDuplicate</B>(bool b)
152
<DT><IMG SRC=icon2.gif> void <B>UpdateDuplicate</B>(bool b)
153
<DT><IMG SRC=icon2.gif> virtual bool <B>IsLine</B>() const
154
<DT><IMG SRC=icon2.gif> virtual int <B>GetLeftMost</B>() const
155
<DT><IMG SRC=icon2.gif> virtual int <B>GetTopMost</B>() const
156
<DT><IMG SRC=icon2.gif> virtual int <B>GetRightMost</B>() const
157
<DT><IMG SRC=icon2.gif> virtual int <B>GetBottomMost</B>() const
158
<DT><IMG SRC=icon2.gif> void <B>WriteMembers</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
159
<DT><IMG SRC=icon2.gif> bool <B>ReadMembers</B>(<!1><A HREF="InputFile.html">InputFile</A> *f, double format)
160
<DT><IMG SRC=icon2.gif> virtual bool <B>SetAssocSubject</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
161
<DT><IMG SRC=icon2.gif> bool <B>SetAssocView</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
162
<DT><IMG SRC=icon2.gif> bool <B>CheckReferences</B>()
163
<DT><IMG SRC=icon2.gif> virtual void <B>SetTextShape</B>()
164
<DT><IMG SRC=icon2.gif> virtual bool <B>HasNameString</B>(const <!1><A HREF="string.html">string</A> *, bool, bool) const
165
<DT><IMG SRC=icon2.gif> virtual void <B>MoveRaw</B>(const <!1><A HREF="Point.html">Point</A> *delta)
167
<DT><h3>Protected Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HANDLES</B>
169
<DT><h3>Protected Methods</h3><DD><DT><IMG SRC=icon2.gif> <!1><A HREF="Grafport.html">Grafport</A>* <B>GetGrafport</B>() const
170
<DT><IMG SRC=icon2.gif> virtual void <B>SetDrawAttributes</B>()
171
<DT><IMG SRC=icon2.gif> void <B>SetOutlineAttributes</B>()
172
<DT><IMG SRC=icon2.gif> virtual void <B>SetSize</B>(int w, int h)
173
<DT><IMG SRC=icon2.gif> virtual void <B>SnapTopleft</B>()
174
<DT><IMG SRC=icon2.gif> virtual void <B>SnapPosition</B>()
175
<DT><IMG SRC=icon2.gif> void <B>SetWidth</B>(int w)
176
<DT><IMG SRC=icon2.gif> void <B>SetHeight</B>(int h)
177
<DT><IMG SRC=icon2.gif> void <B>SetNrHandles</B>(int n)
178
<DT><IMG SRC=icon2.gif> <!1><A HREF="DiagramViewer.html">DiagramViewer</A>* <B>GetViewer</B>() const
179
<DT><IMG SRC=icon2.gif> void <B>PositiveCoord</B>(const <!1><A HREF="Point.html">Point</A>*)
180
<DT><IMG SRC=icon2.gif> virtual void <B>DrawSelect</B>()
181
<DT><IMG SRC=icon2.gif> virtual void <B>DrawGraySelect</B>()
182
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawSelect</B>()
183
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawGraySelect</B>()
184
<DT><IMG SRC=icon2.gif> void <B>SetTopLeft</B>(const <!1><A HREF="Point.html">Point</A> *topLeft)
185
<DT><IMG SRC=icon2.gif> virtual void <B>SetPositionHandles</B>()
186
<DT><IMG SRC=icon2.gif> void <B>ForcePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>)
188
<hr><H3>Inherited from <A HREF = "Thing.html"> Thing:</A></h3>
192
<DT><h3>Public Classes</h3><DD><DT><IMG SRC=icon2.gif> enum <B>AssocType</B>
194
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> unsigned long <B>GetId</B>()
195
<DT><IMG SRC=icon2.gif> void <B>SetId</B>(unsigned long val)
196
<DT><IMG SRC=icon2.gif> virtual bool <B>IsSubject</B>() const
197
<DT><IMG SRC=icon2.gif> virtual bool <B>IsView</B>() const
198
<DT><IMG SRC=icon2.gif> virtual int <B>GetClassType</B>() const
199
<DT><IMG SRC=icon2.gif> void <B>Write</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
200
<DT><IMG SRC=icon2.gif> virtual bool <B>SetReferences</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
204
<h2> Documentation </h2>
206
text shape class that displays a character string.
212
<A NAME ="DOC.383.1">
213
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> TextShape(<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, <!2><A HREF="Shape.html#DOC.296.1">Shape</A> *<!2><A HREF="TextShape.html#DOC.383.47">parent</A>)</B></TT>
216
<A NAME ="DOC.383.2">
217
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> TextShape(const <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> &t)</B></TT>
220
<A NAME ="DOC.383.3">
221
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* Clone()</B></TT>
224
<A NAME ="DOC.383.4">
225
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Draw()</B></TT>
228
<A NAME ="DOC.383.5">
229
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Undraw()</B></TT>
231
<A NAME="DrawDuplicate">
232
<A NAME ="DOC.383.6">
233
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void DrawDuplicate()</B></TT>
234
<DD> no duplicate asteriks are possible for text shapes.
237
<A NAME ="DOC.383.7">
238
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetParent(<!2><A HREF="Shape.html#DOC.296.1">Shape</A> *shape)</B></TT>
241
<A NAME ="DOC.383.8">
242
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* GetParent() const </B></TT>
245
<A NAME ="DOC.383.9">
246
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetString(const <!1><A HREF="string.html">string</A> *s)</B></TT>
247
<DD> set text and recalculate the sizes.
250
<A NAME ="DOC.383.10">
251
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetString() const </B></TT>
253
<A NAME="ChooseTextShape">
254
<A NAME ="DOC.383.11">
255
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* ChooseTextShape(int, int)</B></TT>
257
<A NAME="HitTextShape">
258
<A NAME ="DOC.383.12">
259
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* HitTextShape(int x, int y)</B></TT>
261
<A NAME="InTextArea">
262
<A NAME ="DOC.383.13">
263
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool InTextArea(int x, int y)</B></TT>
265
<A NAME="IsTextShape">
266
<A NAME ="DOC.383.14">
267
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsTextShape() const </B></TT>
270
<A NAME ="DOC.383.15">
271
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsEmpty() const </B></TT>
274
<A NAME ="DOC.383.16">
275
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetEmpty()</B></TT>
277
<A NAME="DrawOutLine">
278
<A NAME ="DOC.383.17">
279
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void DrawOutLine(const <!1><A HREF="Point.html">Point</A> *center)</B></TT>
280
<DD> draws a dotted rectangle around the textshape.
282
<A NAME="SetPosition">
283
<A NAME ="DOC.383.18">
284
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetPosition(const <!1><A HREF="Point.html">Point</A> *p, bool snap=False)</B></TT>
285
<DD> set textshape at position (not using grid !).
287
<A NAME="ContainsPt">
288
<A NAME ="DOC.383.19">
289
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool ContainsPt(int x, int y)</B></TT>
290
<DD> returns if (x,y) is in textshape (not empty string).
293
<A NAME ="DOC.383.20">
294
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void TextBox(int &wd, int &ht)</B></TT>
295
<DD> return text width and height (depends on font).
297
<A NAME="UpdateAlignment">
298
<A NAME ="DOC.383.21">
299
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)</B></TT>
301
<A NAME="SetAlignment">
302
<A NAME ="DOC.383.22">
303
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)</B></TT>
305
<A NAME="GetAlignment">
306
<A NAME ="DOC.383.23">
307
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> GetAlignment() const </B></TT>
310
<A NAME ="DOC.383.24">
311
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="XFont.html">XFont</A>* GetFont() const </B></TT>
314
<A NAME ="DOC.383.25">
315
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
317
<A NAME="UpdateFont">
318
<A NAME ="DOC.383.26">
319
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
321
<A NAME="GetFontHeight">
322
<A NAME ="DOC.383.27">
323
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetFontHeight() const </B></TT>
325
<A NAME="GetStringHeight">
326
<A NAME ="DOC.383.28">
327
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetStringHeight() const </B></TT>
329
<A NAME="GetStringWidth">
330
<A NAME ="DOC.383.29">
331
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetStringWidth() const </B></TT>
333
<A NAME="IsWellPositioned">
334
<A NAME ="DOC.383.30">
335
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsWellPositioned() const </B></TT>
336
<DD> if wellPositioned = false then current position isn't preferred.
338
<A NAME="SetWellPositioned">
339
<A NAME ="DOC.383.31">
340
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetWellPositioned(bool b)</B></TT>
341
<DD> !wellPositioned indicates parent should recalculate child position.
343
<A NAME="GetDescription">
344
<A NAME ="DOC.383.32">
345
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetDescription() const </B></TT>
346
<DD> returns a string which describes the kind of text shape.
348
<A NAME="SetDescription">
349
<A NAME ="DOC.383.33">
350
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetDescription(const <!1><A HREF="string.html">string</A> *s)</B></TT>
352
<A NAME="SetDescription">
353
<A NAME ="DOC.383.34">
354
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetDescription(const char *s)</B></TT>
357
<A NAME ="DOC.383.35">
358
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsOneLine() const </B></TT>
361
<A NAME="SetOneLine">
362
<A NAME ="DOC.383.36">
363
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetOneLine(bool o)</B></TT>
365
<A NAME="IsUnderlined">
366
<A NAME ="DOC.383.37">
367
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsUnderlined() const </B></TT>
370
<A NAME="SetUnderlined">
371
<A NAME ="DOC.383.38">
372
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetUnderlined(bool b)</B></TT>
374
<A NAME="UpdateUnderlined">
375
<A NAME ="DOC.383.39">
376
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateUnderlined(bool b)</B></TT>
378
<A NAME="HasTextShape">
379
<A NAME ="DOC.383.40">
380
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasTextShape(<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *t) const </B></TT>
381
<DD> return if it has t as one of the text shapes.
384
<A NAME ="DOC.383.41">
385
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool sens, bool sub) const </B></TT>
386
<DD> textshape contains s as string.
388
<A NAME="ReplaceString">
389
<A NAME ="DOC.383.42">
390
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int ReplaceString(const <!1><A HREF="string.html">string</A> *s1, const <!1><A HREF="string.html">string</A> *s2, bool sens, bool sub)</B></TT>
391
<DD> replace occurrences of s1 by s2 (if allowed by Update).
394
<A NAME ="DOC.383.43">
395
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool caseSens, bool substring, <!1><A HREF="List.html">List</A><<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *> *list)</B></TT>
396
<DD> puts itself into list when text contains s
398
<A NAME="GetSequence">
399
<A NAME ="DOC.383.44">
400
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetSequence() const </B></TT>
402
<A NAME="SetSequence">
403
<A NAME ="DOC.383.45">
404
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetSequence(int n)</B></TT>
407
<DL><DT><B>This class has no child classes.</B></DL>
408
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
409
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
410
<P Align=Center><I>this page has been generated automatically by doc++</I>
411
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte Zöckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>