~ubuntu-branches/ubuntu/utopic/tcm/utopic

« back to all changes in this revision

Viewing changes to doc/sourcecode/SimpleLabel.html

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><TITLE>SimpleLabel</TITLE></head>
 
2
<body>
 
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A>  class  SimpleLabel  </H2><BLOCKQUOTE>
 
4
 abstract (simple) text label class.
 
5
</BLOCKQUOTE>
 
6
<hr>
 
7
 <h2> Inheritance:</h2>
 
8
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
 
9
<param name=classes value="CSimpleLabel,MSimpleLabel.html,CRowColumnLabel,MRowColumnLabel.html,CCellText,MCellText.html">
 
10
<param name=before value="M,M|_,Mr_">
 
11
<param name=after value="M,M,M">
 
12
<param name=indent value="0,0,0">
 
13
<param name=arrowdir value="down">
 
14
</APPLET>
 
15
<hr>
 
16
 
 
17
<DL>
 
18
<TABLE>
 
19
<DT><h3>Public Fields</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.300.25"> <IMG BORDER=0 SRC=icon1.gif></A> static  const  int </TD><TD><B>MIN_TEXT_WIDTH</B> <br>
 
20
<I> minimal width of cell text outline.</I>
 
21
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.26"> <IMG BORDER=0 SRC=icon1.gif></A> static  const  int </TD><TD><B>MIN_TEXT_HEIGHT</B> <br>
 
22
<I> minimal height of cell text outline.</I>
 
23
</TD></TR></TABLE><TABLE>
 
24
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.300.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>SimpleLabel</B> (<!1><A HREF="Grafport.html">Grafport</A> *g, <!1><A HREF="XFont.html">XFont</A> *<!2><A HREF="SimpleLabel.html#DOC.300.34">font</A>)<br>
 
25
<I></I>
 
26
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.2"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>SimpleLabel</B> (const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &<!2><A HREF="SimpleLabel.html#DOC.300.32">text</A>)<br>
 
27
<I></I>
 
28
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.3"> <IMG BORDER=0 SRC=icon1.gif></A> virtual </TD><TD><B>~SimpleLabel</B> ()<br>
 
29
<I></I>
 
30
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.4"> <IMG BORDER=0 SRC=icon1.gif></A> friend  int </TD><TD><B>operator==</B> (const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &t1, const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &t2)<br>
 
31
<I></I>
 
32
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.5"> <IMG BORDER=0 SRC=icon1.gif></A> friend  int </TD><TD><B>Compare</B> (<!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> *r1, <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> *r2)<br>
 
33
<I></I>
 
34
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.6"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>Draw</B> ()<br>
 
35
<I> draw label.</I>
 
36
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.7"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>Undraw</B> ()<br>
 
37
<I> erase label.</I>
 
38
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.8"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawOutLine</B> (const <!1><A HREF="Point.html">Point</A> *c)<br>
 
39
<I> when label is dragged only a dotted box (outline) is drawn</I>
 
40
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.9"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>UpdatePosition</B> (const <!1><A HREF="Point.html">Point</A> *)<br>
 
41
<I> update position and redraw.</I>
 
42
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.10"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>UpdateText</B> (const <!1><A HREF="string.html">string</A> *)<br>
 
43
<I> update label and redraw.</I>
 
44
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.11"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetPosition</B> (const <!1><A HREF="Point.html">Point</A> *pt)<br>
 
45
<I> set position.</I>
 
46
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.12"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetText</B> (const <!1><A HREF="string.html">string</A> *s)<br>
 
47
<I> set label text</I>
 
48
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.13"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetGrafport</B> (<!1><A HREF="Grafport.html">Grafport</A> *g)<br>
 
49
<I> set grafport</I>
 
50
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.14"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>CalcSize</B> ()<br>
 
51
<I> calculate text size.</I>
 
52
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.15"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HitText</B> (int x, int y)<br>
 
53
<I> true iff (x,y) is in text.</I>
 
54
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.16"> <IMG BORDER=0 SRC=icon1.gif></A> const  <!1><A HREF="Point.html">Point</A>* </TD><TD><B>GetPosition</B> () const <br>
 
55
<I> simple 'get' actions.</I>
 
56
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.17"> <IMG BORDER=0 SRC=icon1.gif></A> const  <!1><A HREF="Point.html">Point</A>* </TD><TD><B>GetTopLeft</B> () const <br>
 
57
<I></I>
 
58
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.18"> <IMG BORDER=0 SRC=icon1.gif></A> const  <!1><A HREF="string.html">string</A>* </TD><TD><B>GetText</B> () const <br>
 
59
<I></I>
 
60
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.19"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetWidth</B> () const <br>
 
61
<I></I>
 
62
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.20"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetHeight</B> () const <br>
 
63
<I></I>
 
64
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.21"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="XFont.html">XFont</A>* </TD><TD><B>GetFont</B> () const <br>
 
65
<I></I>
 
66
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.22"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetFont</B> (<!1><A HREF="XFont.html">XFont</A> *f)<br>
 
67
<I></I>
 
68
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.23"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>UpdateFont</B> (<!1><A HREF="XFont.html">XFont</A> *<!2><A HREF="SimpleLabel.html#DOC.300.34">font</A>)<br>
 
69
<I></I>
 
70
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.300.24"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>FontHeight</B> () const <br>
 
71
<I></I>
 
72
</TD></TR></TABLE><TABLE>
 
73
<DT><h3>Protected Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.300.27"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="Grafport.html">Grafport</A>* </TD><TD><B>GetGrafport</B> () const <br>
 
74
<I></I>
 
75
</TD></TR></TABLE></DL>
 
76
<A NAME="DOC.DOCU">
 
77
<hr>
 
78
 <h2> Documentation </h2>
 
79
<BLOCKQUOTE>
 
80
 abstract (simple) text label class.
 
81
 
 
82
</BLOCKQUOTE>
 
83
<DL>
 
84
 
 
85
<A NAME="SimpleLabel">
 
86
<A NAME ="DOC.300.1">
 
87
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  SimpleLabel(<!1><A HREF="Grafport.html">Grafport</A> *g, <!1><A HREF="XFont.html">XFont</A> *<!2><A HREF="SimpleLabel.html#DOC.300.34">font</A>)</B></TT>
 
88
<DL></DL><P>
 
89
<A NAME="SimpleLabel">
 
90
<A NAME ="DOC.300.2">
 
91
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  SimpleLabel(const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &<!2><A HREF="SimpleLabel.html#DOC.300.32">text</A>)</B></TT>
 
92
<DL></DL><P>
 
93
<A NAME="~SimpleLabel">
 
94
<A NAME ="DOC.300.3">
 
95
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  ~SimpleLabel()</B></TT>
 
96
<DL></DL><P>
 
97
<A NAME="operator==">
 
98
<A NAME ="DOC.300.4">
 
99
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> friend  int  operator==(const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &t1, const <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> &t2)</B></TT>
 
100
<DL></DL><P>
 
101
<A NAME="Compare">
 
102
<A NAME ="DOC.300.5">
 
103
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> friend  int  Compare(<!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> *r1, <!2><A HREF="SimpleLabel.html#DOC.300.1">SimpleLabel</A> *r2)</B></TT>
 
104
<DL></DL><P>
 
105
<A NAME="Draw">
 
106
<A NAME ="DOC.300.6">
 
107
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  Draw()</B></TT>
 
108
<DD> draw label.
 
109
<DL></DL><P>
 
110
<A NAME="Undraw">
 
111
<A NAME ="DOC.300.7">
 
112
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  Undraw()</B></TT>
 
113
<DD> erase label.
 
114
<DL></DL><P>
 
115
<A NAME="DrawOutLine">
 
116
<A NAME ="DOC.300.8">
 
117
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  DrawOutLine(const <!1><A HREF="Point.html">Point</A> *c)</B></TT>
 
118
<DD> when label is dragged only a dotted box (outline) is drawn
 
119
<DL></DL><P>
 
120
<A NAME="UpdatePosition">
 
121
<A NAME ="DOC.300.9">
 
122
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  UpdatePosition(const <!1><A HREF="Point.html">Point</A> *)</B></TT>
 
123
<DD> update position and redraw.
 
124
<DL></DL><P>
 
125
<A NAME="UpdateText">
 
126
<A NAME ="DOC.300.10">
 
127
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  UpdateText(const <!1><A HREF="string.html">string</A> *)</B></TT>
 
128
<DD> update label and redraw.
 
129
<DL></DL><P>
 
130
<A NAME="SetPosition">
 
131
<A NAME ="DOC.300.11">
 
132
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetPosition(const <!1><A HREF="Point.html">Point</A> *pt)</B></TT>
 
133
<DD> set position.
 
134
<DL></DL><P>
 
135
<A NAME="SetText">
 
136
<A NAME ="DOC.300.12">
 
137
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetText(const <!1><A HREF="string.html">string</A> *s)</B></TT>
 
138
<DD> set label text
 
139
<DL></DL><P>
 
140
<A NAME="SetGrafport">
 
141
<A NAME ="DOC.300.13">
 
142
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetGrafport(<!1><A HREF="Grafport.html">Grafport</A> *g)</B></TT>
 
143
<DD> set grafport
 
144
<DL></DL><P>
 
145
<A NAME="CalcSize">
 
146
<A NAME ="DOC.300.14">
 
147
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  CalcSize()</B></TT>
 
148
<DD> calculate text size.
 
149
<DL></DL><P>
 
150
<A NAME="HitText">
 
151
<A NAME ="DOC.300.15">
 
152
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  HitText(int x, int y)</B></TT>
 
153
<DD> true iff (x,y) is in text.
 
154
<DL></DL><P>
 
155
<A NAME="GetPosition">
 
156
<A NAME ="DOC.300.16">
 
157
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const  <!1><A HREF="Point.html">Point</A>*  GetPosition() const </B></TT>
 
158
<DD> simple 'get' actions.
 
159
<DL></DL><P>
 
160
<A NAME="GetTopLeft">
 
161
<A NAME ="DOC.300.17">
 
162
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const  <!1><A HREF="Point.html">Point</A>*  GetTopLeft() const </B></TT>
 
163
<DL></DL><P>
 
164
<A NAME="GetText">
 
165
<A NAME ="DOC.300.18">
 
166
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const  <!1><A HREF="string.html">string</A>*  GetText() const </B></TT>
 
167
<DL></DL><P>
 
168
<A NAME="GetWidth">
 
169
<A NAME ="DOC.300.19">
 
170
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetWidth() const </B></TT>
 
171
<DL></DL><P>
 
172
<A NAME="GetHeight">
 
173
<A NAME ="DOC.300.20">
 
174
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetHeight() const </B></TT>
 
175
<DL></DL><P>
 
176
<A NAME="GetFont">
 
177
<A NAME ="DOC.300.21">
 
178
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="XFont.html">XFont</A>*  GetFont() const </B></TT>
 
179
<DL></DL><P>
 
180
<A NAME="SetFont">
 
181
<A NAME ="DOC.300.22">
 
182
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetFont(<!1><A HREF="XFont.html">XFont</A> *f)</B></TT>
 
183
<DL></DL><P>
 
184
<A NAME="UpdateFont">
 
185
<A NAME ="DOC.300.23">
 
186
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  UpdateFont(<!1><A HREF="XFont.html">XFont</A> *<!2><A HREF="SimpleLabel.html#DOC.300.34">font</A>)</B></TT>
 
187
<DL></DL><P>
 
188
<A NAME="FontHeight">
 
189
<A NAME ="DOC.300.24">
 
190
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  FontHeight() const </B></TT>
 
191
<DL></DL><P>
 
192
<A NAME="MIN_TEXT_WIDTH">
 
193
<A NAME ="DOC.300.25">
 
194
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static  const  int  MIN_TEXT_WIDTH</B></TT>
 
195
<DD> minimal width of cell text outline.
 
196
<DL></DL><P>
 
197
<A NAME="MIN_TEXT_HEIGHT">
 
198
<A NAME ="DOC.300.26">
 
199
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static  const  int  MIN_TEXT_HEIGHT</B></TT>
 
200
<DD> minimal height of cell text outline.
 
201
<DL></DL><P>
 
202
<A NAME="GetGrafport">
 
203
<A NAME ="DOC.300.27">
 
204
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="Grafport.html">Grafport</A>*  GetGrafport() const </B></TT>
 
205
<DL></DL><P></DL>
 
206
<hr>
 
207
<DL><DT><B>Direct child classes:
 
208
</B><DD><A HREF="RowColumnLabel.html"> RowColumnLabel </A><br>
 
209
<A HREF="CellText.html"> CellText </A><br>
 
210
</DL>
 
211
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I>  <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
 
212
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
 
213
<P Align=Center><I>this page has been generated automatically by doc++</I>
 
214
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte  Z&ouml;ckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>
 
215
</BODY>