<html> <head><title>Gtk-- Reference: Gtk::DrawingArea</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::DrawingArea</h1><p> <b> A widget for custom user interface elements.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3AWidget.html">Gtk::Widget</a> <br> Derived by: <a href="Gtk::Curve.html">Gtk::Curve</a> <p> #include <gtk--/drawingarea.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1403"><tt><font color=blue><b>DrawingArea</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkDrawingArea</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1399"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkDrawingArea</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1400"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1401"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1404"><tt><font color=blue><b>size</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>width</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>height</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ADrawingArea.html#1402"><tt><font color=blue><b>~DrawingArea</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> The <tt><font color=navy><b>Gtk::DrawingArea</b></font></tt> widget is used for creating custom user interface elements. After creating a drawing area, the application may want to connect to: <P> Mouse and button press signals to respond to input from the user. <P> The "realize" signal to take any necessary actions when the widget <P> The "size_allocate" signal to take any necessary actions when the widget changes size. <P> The "expose_event" signal to handle redrawing the contents of the widget. <P> As a convenience, the <tt><font color=navy><b>Gtk::DrawingArea</b></font></tt> widget synthesizes a "configure_event" when the widget is realized and any time the size of a widget changes when it is realized. It often suffices to connect to this signal instead of "realize" and "size_allocate".<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="1399"><font size=+1><b>Gtk::DrawingArea::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkDrawingArea</font></tt>*</tt> <a href="Gtk%3A%3ADrawingArea.html#1399"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="1401"><font size=+1><b>Gtk::DrawingArea::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3ADrawingArea.html#1401"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <a name="1404"><font size=+1><b>Gtk::DrawingArea::size</b></font></a> - Set the size that the drawing area will request in response to a "size_request" signal.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ADrawingArea.html#1404"><tt><font color=blue><b>size</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>width</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>height</font></tt>)</tt>;<br><blockquote> The drawing area may actually be allocated a size larger than this depending on how it is packed within the enclosing containers. <P> width: The width to request. <P> height: The height to request.</blockquote> <br><br> <hr noshade> </html>