1
<html><head><TITLE>DrawingArea</TITLE></head>
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.
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">
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>
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>
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>
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>
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>
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>
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>
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>
51
</TD></TR></TABLE></DL>
52
<hr><H3>Inherited from <A HREF="MWidget.html">MWidget:</A></h3>
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)
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>()
66
<hr><H3>Inherited from <A HREF = "Component.html"> Component:</A></h3>
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>()
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)
83
<h2> Documentation </h2>
85
wrapper class around the Motif drawing area widget.
90
<A NAME="DrawingArea">
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.
95
<A NAME="GetClassName">
97
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const char* GetClassName()</B></TT>
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>
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>
108
<A NAME ="DOC.137.5">
109
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetWidth() const </B></TT>
112
<A NAME ="DOC.137.6">
113
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetHeight() const </B></TT>
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>
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.
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.
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.
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.
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.
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.
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.
154
<A NAME="GetBackgroundColor">
155
<A NAME ="DOC.137.15">
156
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Pixel GetBackgroundColor()</B></TT>
158
<A NAME="GetForegroundColor">
159
<A NAME ="DOC.137.16">
160
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Pixel GetForegroundColor()</B></TT>
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öckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>