~ubuntu-branches/ubuntu/intrepid/tcm/intrepid

« back to all changes in this revision

Viewing changes to doc/sourcecode/DrawingArea.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>DrawingArea</TITLE></head>
 
2
<body>
 
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A>  class  DrawingArea : public <!2><A HREF="MWidget.html#DOC.237.1">MWidget</A> </H2><BLOCKQUOTE>
 
4
 wrapper class around the Motif drawing area widget.
 
5
</BLOCKQUOTE>
 
6
<hr>
 
7
 <h2> Inheritance:</h2>
 
8
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
 
9
<param name=classes value="CComponent,MComponent.html,CMWidget,MMWidget.html,CDrawingArea,MDrawingArea.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">
 
14
</APPLET>
 
15
<hr>
 
16
 
 
17
<DL>
 
18
<TABLE>
 
19
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.137.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>DrawingArea</B> (<!1><A HREF="Config.html">Config</A> *config, Widget parent, const char *<!2><A HREF="Component.html#DOC.52.13">name</A>, <!1><A HREF="DrawWindow.html">DrawWindow</A> *w)<br>
 
20
<I> Description determines the size, if empty the screen sz is used.</I>
 
21
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.2"> <IMG BORDER=0 SRC=icon1.gif></A> const  char* </TD><TD><B>GetClassName</B> ()<br>
 
22
<I></I>
 
23
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.3"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetViewer</B> (<!1><A HREF="Viewer.html">Viewer</A> *v)<br>
 
24
<I></I>
 
25
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.4"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="XGrafport.html">XGrafport</A>* </TD><TD><B>GetGrafport</B> () const <br>
 
26
<I></I>
 
27
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.5"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetWidth</B> () const <br>
 
28
<I></I>
 
29
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.6"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetHeight</B> () const <br>
 
30
<I></I>
 
31
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.7"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateSize</B> (int w, int h)<br>
 
32
<I></I>
 
33
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.8"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>FitDocument</B> ()<br>
 
34
<I> resize drawing area to fit the viewer's contents.</I>
 
35
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.9"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>FitDocument</B> (int wd, int ht)<br>
 
36
<I> resize drawing area to given size.</I>
 
37
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.10"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>EnableUndo</B> (bool flag)<br>
 
38
<I> enable/disable edit popup menu entry.</I>
 
39
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.11"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>EnableRedo</B> (bool flag)<br>
 
40
<I> enable/disable edit popup menu entry.</I>
 
41
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.12"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Enable</B> (const char *label, bool flag)<br>
 
42
<I> enable/disable popup menu entry.</I>
 
43
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.13"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetUndoName</B> (const char *<!2><A HREF="Component.html#DOC.52.13">name</A>)<br>
 
44
<I> change edit popup menu undo entry name.</I>
 
45
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.14"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetRedoName</B> (const char *<!2><A HREF="Component.html#DOC.52.13">name</A>)<br>
 
46
<I> change edit popup menu redo entry name.</I>
 
47
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.15"> <IMG BORDER=0 SRC=icon1.gif></A> Pixel </TD><TD><B>GetBackgroundColor</B> ()<br>
 
48
<I></I>
 
49
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.137.16"> <IMG BORDER=0 SRC=icon1.gif></A> Pixel </TD><TD><B>GetForegroundColor</B> ()<br>
 
50
<I></I>
 
51
</TD></TR></TABLE></DL>
 
52
<hr><H3>Inherited from <A HREF="MWidget.html">MWidget:</A></h3>
 
53
 
 
54
<DL>
 
55
<DL>
 
56
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> virtual  void  <B>Manage</B>()
 
57
<DT><IMG SRC=icon2.gif> bool  <B>IsRealized</B>()
 
58
<DT><IMG SRC=icon2.gif> void  <B>SetColormap</B>(Colormap cmap)
 
59
<DT><IMG SRC=icon2.gif> void  <B>SetDestroyCallback</B>(XtCallbackProc fun, XtPointer clientData)
 
60
<DT><IMG SRC=icon2.gif> void  <B>AddLiteClue</B>(Widget w, const char *text)
 
61
</DL><DL>
 
62
<DT><h3>Protected Methods</h3><DD><DT><IMG SRC=icon2.gif> Widget  <B>GetLiteClue</B>()
 
63
<DT><IMG SRC=icon2.gif> void  <B>CreateLiteClue</B>()
 
64
<DT><IMG SRC=icon2.gif> void  <B>InstallDestroyHandler</B>()
 
65
</DL></DL>
 
66
<hr><H3>Inherited from <A HREF = "Component.html"> Component:</A></h3>
 
67
 
 
68
<DL>
 
69
<DL>
 
70
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> bool  <B>IsManaged</B>()
 
71
<DT><IMG SRC=icon2.gif> virtual  void  <B>Unmanage</B>()
 
72
<DT><IMG SRC=icon2.gif> Widget  <B>GetWidget</B>()
 
73
<DT><IMG SRC=icon2.gif> Display*  <B>GetDisplay</B>()
 
74
<DT><IMG SRC=icon2.gif> Window  <B>GetWindow</B>()
 
75
</DL><DL>
 
76
<DT><h3>Protected Methods</h3><DD><DT><IMG SRC=icon2.gif> void  <B>SetWidget</B>(Widget w)
 
77
<DT><IMG SRC=icon2.gif> const  <!1><A HREF="string.html">string</A>*  <B>GetName</B>() const 
 
78
<DT><IMG SRC=icon2.gif> void  <B>SetName</B>(const <!1><A HREF="string.html">string</A> *s)
 
79
<DT><IMG SRC=icon2.gif> void  <B>SetName</B>(const char *s)
 
80
</DL></DL>
 
81
<A NAME="DOC.DOCU">
 
82
<hr>
 
83
 <h2> Documentation </h2>
 
84
<BLOCKQUOTE>
 
85
 wrapper class around the Motif drawing area widget.
 
86
 
 
87
</BLOCKQUOTE>
 
88
<DL>
 
89
 
 
90
<A NAME="DrawingArea">
 
91
<A NAME ="DOC.137.1">
 
92
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  DrawingArea(<!1><A HREF="Config.html">Config</A> *config, Widget parent, const char *<!2><A HREF="Component.html#DOC.52.13">name</A>, <!1><A HREF="DrawWindow.html">DrawWindow</A> *w)</B></TT>
 
93
<DD> Description determines the size, if empty the screen sz is used.
 
94
<DL></DL><P>
 
95
<A NAME="GetClassName">
 
96
<A NAME ="DOC.137.2">
 
97
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const  char*  GetClassName()</B></TT>
 
98
<DL></DL><P>
 
99
<A NAME="SetViewer">
 
100
<A NAME ="DOC.137.3">
 
101
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetViewer(<!1><A HREF="Viewer.html">Viewer</A> *v)</B></TT>
 
102
<DL></DL><P>
 
103
<A NAME="GetGrafport">
 
104
<A NAME ="DOC.137.4">
 
105
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="XGrafport.html">XGrafport</A>*  GetGrafport() const </B></TT>
 
106
<DL></DL><P>
 
107
<A NAME="GetWidth">
 
108
<A NAME ="DOC.137.5">
 
109
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetWidth() const </B></TT>
 
110
<DL></DL><P>
 
111
<A NAME="GetHeight">
 
112
<A NAME ="DOC.137.6">
 
113
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetHeight() const </B></TT>
 
114
<DL></DL><P>
 
115
<A NAME="UpdateSize">
 
116
<A NAME ="DOC.137.7">
 
117
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  UpdateSize(int w, int h)</B></TT>
 
118
<DL></DL><P>
 
119
<A NAME="FitDocument">
 
120
<A NAME ="DOC.137.8">
 
121
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  FitDocument()</B></TT>
 
122
<DD> resize drawing area to fit the viewer's contents.
 
123
<DL></DL><P>
 
124
<A NAME="FitDocument">
 
125
<A NAME ="DOC.137.9">
 
126
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  FitDocument(int wd, int ht)</B></TT>
 
127
<DD> resize drawing area to given size.
 
128
<DL></DL><P>
 
129
<A NAME="EnableUndo">
 
130
<A NAME ="DOC.137.10">
 
131
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  EnableUndo(bool flag)</B></TT>
 
132
<DD> enable/disable edit popup menu entry.
 
133
<DL></DL><P>
 
134
<A NAME="EnableRedo">
 
135
<A NAME ="DOC.137.11">
 
136
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  EnableRedo(bool flag)</B></TT>
 
137
<DD> enable/disable edit popup menu entry.
 
138
<DL></DL><P>
 
139
<A NAME="Enable">
 
140
<A NAME ="DOC.137.12">
 
141
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  Enable(const char *label, bool flag)</B></TT>
 
142
<DD> enable/disable popup menu entry.
 
143
<DL></DL><P>
 
144
<A NAME="SetUndoName">
 
145
<A NAME ="DOC.137.13">
 
146
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetUndoName(const char *<!2><A HREF="Component.html#DOC.52.13">name</A>)</B></TT>
 
147
<DD> change edit popup menu undo entry name.
 
148
<DL></DL><P>
 
149
<A NAME="SetRedoName">
 
150
<A NAME ="DOC.137.14">
 
151
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetRedoName(const char *<!2><A HREF="Component.html#DOC.52.13">name</A>)</B></TT>
 
152
<DD> change edit popup menu redo entry name.
 
153
<DL></DL><P>
 
154
<A NAME="GetBackgroundColor">
 
155
<A NAME ="DOC.137.15">
 
156
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Pixel  GetBackgroundColor()</B></TT>
 
157
<DL></DL><P>
 
158
<A NAME="GetForegroundColor">
 
159
<A NAME ="DOC.137.16">
 
160
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Pixel  GetForegroundColor()</B></TT>
 
161
<DL></DL><P></DL>
 
162
<hr>
 
163
 <DL><DT><B>This class has no child classes.</B></DL>
 
164
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I>  <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
 
165
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
 
166
<P Align=Center><I>this page has been generated automatically by doc++</I>
 
167
<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>
 
168
</BODY>