<!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>glibmm: Glib::PropertyProxy< T > Class Template 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="pages.html"><span>Related Pages</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> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</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="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1PropertyProxy.html">PropertyProxy</a> </div> </div> <div class="contents"> <h1>Glib::PropertyProxy< T > Class Template Reference</h1><!-- doxytag: class="Glib::PropertyProxy" --><!-- doxytag: inherits="Glib::PropertyProxy_Base" --> <p>A <a class="el" href="classGlib_1_1PropertyProxy.html" title="A PropertyProxy can be used to get and set the value of an object's property...">PropertyProxy</a> can be used to get and set the value of an object's property. <a href="#_details">More...</a></p> <p>Inherits <a class="el" href="classGlib_1_1PropertyProxy__Base.html">Glib::PropertyProxy_Base</a>.</p> <div class="dynheader"> Collaboration diagram for Glib::PropertyProxy< T >:</div> <div class="dynsection"> <div class="center"><img src="classGlib_1_1PropertyProxy__coll__graph.png" border="0" usemap="#Glib_1_1PropertyProxy_3_01T_01_4_coll__map" alt="Collaboration graph"/></div> <map name="Glib_1_1PropertyProxy_3_01T_01_4_coll__map" id="Glib_1_1PropertyProxy_3_01T_01_4_coll__map"> <area shape="rect" href="classGlib_1_1PropertyProxy__Base.html" title="Glib::PropertyProxy_Base" alt="" coords="5,181,176,211"/><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="31,85,151,115"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="37,5,144,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGlib_1_1PropertyProxy-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef T </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a></td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#af8353d01e3ae6134eaceaf900ffb84b9">PropertyProxy</a> (<a class="el" href="classGlib_1_1ObjectBase.html">ObjectBase</a>* obj, const char* name)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#aff4eb140b4f4da0488c4387c1047ad82">set_value</a> (const <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a>& data)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value of this property. <a href="#aff4eb140b4f4da0488c4387c1047ad82"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#a4bbf4c99c138e7e33ce6393147b4e121">get_value</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the value of this property. <a href="#a4bbf4c99c138e7e33ce6393147b4e121"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#a4ea1719ff572be400fdce1f3257fdf59">reset_value</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value of this property back to its default value. <a href="#a4ea1719ff572be400fdce1f3257fdf59"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy.html">PropertyProxy</a>< T >& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#add4490830382a8173acf097dffffd92e">operator=</a> (const <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a>& data)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1PropertyProxy.html#a127addf739d2d3f40c4a066a543ef967">operator PropertyType</a> () const </td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template <class T><br/> class Glib::PropertyProxy< T ></h3> <p>A <a class="el" href="classGlib_1_1PropertyProxy.html" title="A PropertyProxy can be used to get and set the value of an object's property...">PropertyProxy</a> can be used to get and set the value of an object's property. </p> <p>There are usually also get and set methods on the class itself, which you might find more convenient. With the <a class="el" href="classGlib_1_1PropertyProxy.html" title="A PropertyProxy can be used to get and set the value of an object's property...">PropertyProxy</a>, you may use either <a class="el" href="classGlib_1_1PropertyProxy.html#a4bbf4c99c138e7e33ce6393147b4e121" title="Get the value of this property.">get_value()</a> and <a class="el" href="classGlib_1_1PropertyProxy.html#aff4eb140b4f4da0488c4387c1047ad82" title="Set the value of this property.">set_value()</a>, or <a class="el" href="classGlib_1_1PropertyProxy.html#add4490830382a8173acf097dffffd92e">operator=()</a> and operator <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType()</a>, like so: </p> <div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> height = cellrenderer.property_height(); cellrenderer.property_editable() = <span class="keyword">true</span>; </pre></div><p>You may also receive notification when a property's value changes, by connecting to <a class="el" href="classGlib_1_1PropertyProxy__Base.html#a19357ed2e9492700e37215edb81fd071" title="This signal will be emitted when the property changes.">signal_changed()</a>.</p> <p>You may register new properties for your class (actually for the underlying GType) simply by adding a <a class="el" href="classGlib_1_1PropertyProxy.html" title="A PropertyProxy can be used to get and set the value of an object's property...">PropertyProxy</a> instance as a class member. However, your constructor must call the <a class="el" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces.">Glib::ObjectBase</a> constructor with a new GType name, in order to register a new GType. </p> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="ad5f4eac0a367fae18b0db33ab6c42235"></a><!-- doxytag: member="Glib::PropertyProxy::PropertyType" ref="ad5f4eac0a367fae18b0db33ab6c42235" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname">typedef T <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::<a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="af8353d01e3ae6134eaceaf900ffb84b9"></a><!-- doxytag: member="Glib::PropertyProxy::PropertyProxy" ref="af8353d01e3ae6134eaceaf900ffb84b9" args="(ObjectBase *obj, const char *name)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::<a class="el" href="classGlib_1_1PropertyProxy.html">PropertyProxy</a> </td> <td>(</td> <td class="paramtype"><a class="el" href="classGlib_1_1ObjectBase.html">ObjectBase</a>* </td> <td class="paramname"> <em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a4bbf4c99c138e7e33ce6393147b4e121"></a><!-- doxytag: member="Glib::PropertyProxy::get_value" ref="a4bbf4c99c138e7e33ce6393147b4e121" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a> <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::get_value </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get the value of this property. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The current value of the property. </dd></dl> </div> </div> <a class="anchor" id="a127addf739d2d3f40c4a066a543ef967"></a><!-- doxytag: member="Glib::PropertyProxy::operator PropertyType" ref="a127addf739d2d3f40c4a066a543ef967" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::operator <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a> </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="add4490830382a8173acf097dffffd92e"></a><!-- doxytag: member="Glib::PropertyProxy::operator=" ref="add4490830382a8173acf097dffffd92e" args="(const PropertyType &data)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">PropertyProxy</a><T>& <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a>& </td> <td class="paramname"> <em>data</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a4ea1719ff572be400fdce1f3257fdf59"></a><!-- doxytag: member="Glib::PropertyProxy::reset_value" ref="a4ea1719ff572be400fdce1f3257fdf59" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::reset_value </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set the value of this property back to its default value. </p> </div> </div> <a class="anchor" id="aff4eb140b4f4da0488c4387c1047ad82"></a><!-- doxytag: member="Glib::PropertyProxy::set_value" ref="aff4eb140b4f4da0488c4387c1047ad82" args="(const PropertyType &data)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< T >::set_value </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGlib_1_1PropertyProxy.html#ad5f4eac0a367fae18b0db33ab6c42235">PropertyType</a>& </td> <td class="paramname"> <em>data</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the value of this property. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The new value for the property. </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>glibmm/propertyproxy.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 11:07:27 2009 for glibmm 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>