<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>goocanvasmm: Goocanvas::Widget Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGoocanvas.html">Goocanvas</a>::<a class="el" href="classGoocanvas_1_1Widget.html">Widget</a> </div> </div> <div class="contents"> <h1>Goocanvas::Widget Class Reference</h1><!-- doxytag: class="Goocanvas::Widget" --><!-- doxytag: inherits="Goocanvas::ItemSimple" --><div class="dynheader"> Inheritance diagram for Goocanvas::Widget:</div> <div class="dynsection"> <div class="center"><img src="classGoocanvas_1_1Widget__inherit__graph.png" border="0" usemap="#Goocanvas_1_1Widget_inherit__map" alt="Inheritance graph"/></div> <map name="Goocanvas_1_1Widget_inherit__map" id="Goocanvas_1_1Widget_inherit__map"> <area shape="rect" href="classGoocanvas_1_1ItemSimple.html" title="Goocanvas::ItemSimple" alt="" coords="35,315,195,344"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,237,96,267"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="44,83,164,112"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="117,160,221,189"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="51,5,157,35"/><area shape="rect" href="classGoocanvas_1_1Item.html" title="Goocanvas::Item" alt="" coords="120,237,240,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGoocanvas_1_1Widget-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#aea732332873d0400db46cad8307b148a">~Widget</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GooCanvasWidget* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#a4a617ea2de9eab9939f6df1db4a34e08">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a4a617ea2de9eab9939f6df1db4a34e08"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GooCanvasWidget* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#ac141971008fdbfeb4dbb753989321ed6">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ac141971008fdbfeb4dbb753989321ed6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GooCanvasWidget* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#adffc2c47f5b7698b9a2d2c103fb0f81e">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#adffc2c47f5b7698b9a2d2c103fb0f81e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#a2c61b44145e4f571606a5cf8250755f8">property_widget</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The widget to place in the canvas. <a href="#a2c61b44145e4f571606a5cf8250755f8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#a30dffe6234c214a30318ad8a6d43f18e">property_widget</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The widget to place in the canvas. <a href="#a30dffe6234c214a30318ad8a6d43f18e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gafbd70af3f26738e6a3796e206e754a42">Gtk::AnchorType</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#ae66e28275d77e5c28cb6129268cc1719">property_anchor</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">How to position the widget relative to the item's x and y coordinate settings. <a href="#ae66e28275d77e5c28cb6129268cc1719"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gafbd70af3f26738e6a3796e206e754a42">Gtk::AnchorType</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#ae7fc9c12a08869edd240be9edf7c21ba">property_anchor</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">How to position the widget relative to the item's x and y coordinate settings. <a href="#ae7fc9c12a08869edd240be9edf7c21ba"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGoocanvas_1_1Widget.html">Widget</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#a425164acde46ce8d3577c0c049e0cbaa">create</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>& widget, double x=0.0, double y=0.0, double width=0.0, double height=0.0)</td></tr> <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#a2131a6ccb9c06c7333822149a38112dd">Widget</a> (<a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>& widget, double x, double y, double width=-1, double height=-1)</td></tr> <tr><td colspan="2"><h2>Related Functions</h2></td></tr> <tr><td colspan="2"><p>(Note that these are not member functions.) </p> <br/><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGoocanvas_1_1Widget.html">Goocanvas::Widget</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGoocanvas_1_1Widget.html#aa48ed4396587d0900b944fe871aea59d">wrap</a> (GooCanvasWidget* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#aa48ed4396587d0900b944fe871aea59d"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aea732332873d0400db46cad8307b148a"></a><!-- doxytag: member="Goocanvas::Widget::~Widget" ref="aea732332873d0400db46cad8307b148a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Goocanvas::Widget::~Widget </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a2131a6ccb9c06c7333822149a38112dd"></a><!-- doxytag: member="Goocanvas::Widget::Widget" ref="a2131a6ccb9c06c7333822149a38112dd" args="(Gtk::Widget &widget, double x, double y, double width=-1, double height=-1)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Goocanvas::Widget::Widget </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a> & </td> <td class="paramname"> <em>widget</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>width</em> = <code>-1</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>height</em> = <code>-1</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a425164acde46ce8d3577c0c049e0cbaa"></a><!-- doxytag: member="Goocanvas::Widget::create" ref="a425164acde46ce8d3577c0c049e0cbaa" args="(Gtk::Widget &widget, double x=0.0, double y=0.0, double width=0.0, double height=0.0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGoocanvas_1_1Widget.html">Widget</a>> Goocanvas::Widget::create </td> <td>(</td> <td class="paramtype"><a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a> & </td> <td class="paramname"> <em>widget</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>x</em> = <code>0.0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>y</em> = <code>0.0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>width</em> = <code>0.0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>height</em> = <code>0.0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac141971008fdbfeb4dbb753989321ed6"></a><!-- doxytag: member="Goocanvas::Widget::gobj" ref="ac141971008fdbfeb4dbb753989321ed6" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GooCanvasWidget* Goocanvas::Widget::gobj </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="el" href="classGoocanvas_1_1ItemSimple.html#a657e0d7bb524625fe54c7d62642609c9">Goocanvas::ItemSimple</a>.</p> </div> </div> <a class="anchor" id="a4a617ea2de9eab9939f6df1db4a34e08"></a><!-- doxytag: member="Goocanvas::Widget::gobj" ref="a4a617ea2de9eab9939f6df1db4a34e08" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GooCanvasWidget* Goocanvas::Widget::gobj </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="el" href="classGoocanvas_1_1ItemSimple.html#a20d3490397b4082050a20e721fcfeec6">Goocanvas::ItemSimple</a>.</p> </div> </div> <a class="anchor" id="adffc2c47f5b7698b9a2d2c103fb0f81e"></a><!-- doxytag: member="Goocanvas::Widget::gobj_copy" ref="adffc2c47f5b7698b9a2d2c103fb0f81e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GooCanvasWidget* Goocanvas::Widget::gobj_copy </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p> <p>Reimplemented from <a class="el" href="classGoocanvas_1_1ItemSimple.html#a9d79350e5a5ac08dff1bf49b6260e0fd">Goocanvas::ItemSimple</a>.</p> </div> </div> <a class="anchor" id="ae7fc9c12a08869edd240be9edf7c21ba"></a><!-- doxytag: member="Goocanvas::Widget::property_anchor" ref="ae7fc9c12a08869edd240be9edf7c21ba" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gafbd70af3f26738e6a3796e206e754a42">Gtk::AnchorType</a>> Goocanvas::Widget::property_anchor </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>How to position the widget relative to the item's x and y coordinate settings. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ae66e28275d77e5c28cb6129268cc1719"></a><!-- doxytag: member="Goocanvas::Widget::property_anchor" ref="ae66e28275d77e5c28cb6129268cc1719" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/group__gtkmmEnums.html#gafbd70af3f26738e6a3796e206e754a42">Gtk::AnchorType</a>> Goocanvas::Widget::property_anchor </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>How to position the widget relative to the item's x and y coordinate settings. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a30dffe6234c214a30318ad8a6d43f18e"></a><!-- doxytag: member="Goocanvas::Widget::property_widget" ref="a30dffe6234c214a30318ad8a6d43f18e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>*> Goocanvas::Widget::property_widget </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The widget to place in the canvas. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a2c61b44145e4f571606a5cf8250755f8"></a><!-- doxytag: member="Goocanvas::Widget::property_widget" ref="a2c61b44145e4f571606a5cf8250755f8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../gtkmm-2.4/reference/html/classGtk_1_1Widget.html">Gtk::Widget</a>*> Goocanvas::Widget::property_widget </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The widget to place in the canvas. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="aa48ed4396587d0900b944fe871aea59d"></a><!-- doxytag: member="Goocanvas::Widget::wrap" ref="aa48ed4396587d0900b944fe871aea59d" args="(GooCanvasWidget *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGoocanvas_1_1Widget.html">Goocanvas::Widget</a> > wrap </td> <td>(</td> <td class="paramtype">GooCanvasWidget * </td> <td class="paramname"> <em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>goocanvasmm/widget.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 22:38:19 2010 for goocanvasmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>