<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>gtkmm 2.4: Gtk::ColorButton Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.1 --> <div class="nav"> <a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1ColorButton.html">ColorButton</a></div> <h1>Gtk::ColorButton Class Reference<br> <small> [<a class="el" href="group__Widgets.html">Widgets</a>]</small> </h1><!-- doxytag: class="Gtk::ColorButton" --><!-- doxytag: inherits="Gtk::Button" -->Inheritance diagram for Gtk::ColorButton:<p><center><img src="classGtk_1_1ColorButton__inherit__graph.png" border="0" usemap="#Gtk_1_1ColorButton__inherit__map" alt="Inheritance graph"></center> <map name="Gtk_1_1ColorButton__inherit__map"> <area href="classGtk_1_1Button.html" shape="rect" coords="71,548,164,575" alt=""> <area href="classGtk_1_1Bin.html" shape="rect" coords="81,471,153,498" alt=""> <area href="classGtk_1_1Container.html" shape="rect" coords="61,394,173,420" alt=""> <area href="classGtk_1_1Widget.html" shape="rect" coords="71,316,164,343" alt=""> <area href="classGtk_1_1Object.html" shape="rect" coords="5,239,96,266" alt=""> <area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="7,162,100,188" alt=""> <area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="53,84,179,111" alt=""> <area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Interface.html" shape="rect" coords="128,162,237,188" alt=""> <area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="60,7,172,34" alt=""> <area href="classAtk_1_1Implementor.html" shape="rect" coords="120,239,251,266" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1ColorButton-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> A button to launch a color selection dialog. <p> The GtkColorButton is a button which displays the currently selected color an allows to open a color selection dialog to change the color. It is suitable widget for selecting a color in a preference dialog.<p> The <a class="el" href="classGtk_1_1ColorButton.html">ColorButton</a> widget looks like this: <div align="center"> <img src="colorbutton1.png" alt="colorbutton1.png"> </div> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#76b6f88db3cdab453e0782a33fc9e94e">ColorButton</a> (const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& color)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new color button with a predefined color. <a href="#76b6f88db3cdab453e0782a33fc9e94e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#c12239750b35f3cd2594563d479eda6f">ColorButton</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new color button. <a href="#c12239750b35f3cd2594563d479eda6f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">guint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#b0144603e20c99d3b715a7ccc7a85bb7">get_alpha</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return value: an integer between 0 and 65535. <a href="#b0144603e20c99d3b715a7ccc7a85bb7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#f0c6a88c87ab5da62fb1532fd7197402">get_color</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a copy of the the current color. <a href="#f0c6a88c87ab5da62fb1532fd7197402"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#d8710f9d4d0b18112f62d955d74040fb">get_title</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the title of the color selection dialog. <a href="#d8710f9d4d0b18112f62d955d74040fb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#54dfb197ed0b2ee0746cb12dc9073cca">get_use_alpha</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Does the color selection dialog use the alpha channel? <a href="#54dfb197ed0b2ee0746cb12dc9073cca"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkColorButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#5ac84de7a367ab5089b41a8b5545d572">gobj</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#5ac84de7a367ab5089b41a8b5545d572"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GtkColorButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#1faf17015e5af54cfaa60c263e3b487e">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#1faf17015e5af54cfaa60c263e3b487e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<br> guint16 > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#3968c1632909e6910aea626d7e213b8e">property_alpha</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The selected opacity value (0 fully transparent, 65535 fully opaque). <a href="#3968c1632909e6910aea626d7e213b8e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint16> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#4eaec016cd21ded946036129bac42515">property_alpha</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The selected opacity value (0 fully transparent, 65535 fully opaque). <a href="#4eaec016cd21ded946036129bac42515"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<br> <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#33214986cdd78569037273f8d710964f">property_color</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The selected color. <a href="#33214986cdd78569037273f8d710964f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#f3cb699ee266f6d423d963254945a708">property_color</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The selected color. <a href="#f3cb699ee266f6d423d963254945a708"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<br> <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#3ca814e84816fc6cba56a71d7681ab49">property_title</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The title of the color selection dialog. <a href="#3ca814e84816fc6cba56a71d7681ab49"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#d6b9606b7da58f64a5d42ed7757f3a30">property_title</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The title of the color selection dialog. <a href="#d6b9606b7da58f64a5d42ed7757f3a30"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<br> bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#9507adde05cc3806a30e24aa7312260b">property_use_alpha</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether or not to give the color an alpha value. <a href="#9507adde05cc3806a30e24aa7312260b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#14af4e100c68b27c563983a6552f42cd">property_use_alpha</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether or not to give the color an alpha value. <a href="#14af4e100c68b27c563983a6552f42cd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#ed363cb1e704dd6b364b03b55e6f49c7">set_alpha</a> (guint16 alpha)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the current opacity to be <em>alpha</em>. <a href="#ed363cb1e704dd6b364b03b55e6f49c7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#bdebef43488848096b3beb48437a253b">set_color</a> (const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& color)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the current color to be <em>color</em>. <a href="#bdebef43488848096b3beb48437a253b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#6fb0f55e86936a07c6c062113b0e323d">set_title</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& title)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the title for the color selection dialog. <a href="#6fb0f55e86936a07c6c062113b0e323d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#817d20b6c2ca8ab10ec06177eebedebb">set_use_alpha</a> (bool use_alpha=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether or not the color button should use the alpha channel. <a href="#817d20b6c2ca8ab10ec06177eebedebb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a><void> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#ba946d3c0d7cb90ff05617409c55216f">signal_color_set</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The color_set signal is emitted when the user selects a color. <a href="#ba946d3c0d7cb90ff05617409c55216f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#14625cde4af3f272591dae2f9298eedd">~ColorButton</a> ()</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#f189df069ef862bc355f52b94732973d">on_color_set</a> ()</td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1ColorButton.html">Gtk::ColorButton</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorButton.html#14285f6a8086a0fe5296df841f34e5ea">wrap</a> (GtkColorButton* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#14285f6a8086a0fe5296df841f34e5ea"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="14625cde4af3f272591dae2f9298eedd"></a><!-- doxytag: member="Gtk::ColorButton::~ColorButton" ref="14625cde4af3f272591dae2f9298eedd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::ColorButton::~ColorButton </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="c12239750b35f3cd2594563d479eda6f"></a><!-- doxytag: member="Gtk::ColorButton::ColorButton" ref="c12239750b35f3cd2594563d479eda6f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::ColorButton::ColorButton </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Creates a new color button. <p> This creates a widget in the form of a small button containing a swatch representing the current selected color. When the button is clicked, a color-selection dialog will open, allowing the user to select a color. The swatch will be updated to reflect the new color when the user finishes.<p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000065">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> </div> </div><p> <a class="anchor" name="76b6f88db3cdab453e0782a33fc9e94e"></a><!-- doxytag: member="Gtk::ColorButton::ColorButton" ref="76b6f88db3cdab453e0782a33fc9e94e" args="(const Gdk::Color &color)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::ColorButton::ColorButton </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& </td> <td class="paramname"> <em>color</em> </td> <td> ) </td> <td width="100%"><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Creates a new color button with a predefined color. <p> Same as <a class="el" href="classGtk_1_1ColorButton.html#c12239750b35f3cd2594563d479eda6f">Gtk::ColorButton::ColorButton()</a>. Additionally takes a <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> and initializes the button with this color. Equivalent to calling set_color(<em>color</em>) after the default constructor.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>A <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> to set the current color with.</td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000066">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="b0144603e20c99d3b715a7ccc7a85bb7"></a><!-- doxytag: member="Gtk::ColorButton::get_alpha" ref="b0144603e20c99d3b715a7ccc7a85bb7" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint16 Gtk::ColorButton::get_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Return value: an integer between 0 and 65535. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>An integer between 0 and 65535.</dd></dl> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000070">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> </div> </div><p> <a class="anchor" name="f0c6a88c87ab5da62fb1532fd7197402"></a><!-- doxytag: member="Gtk::ColorButton::get_color" ref="f0c6a88c87ab5da62fb1532fd7197402" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> Gtk::ColorButton::get_color </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns a copy of the the current color. <p> Changes to the return value will have no effect on the <a class="el" href="classGtk_1_1ColorButton.html">Gtk::ColorButton</a>.<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> representing the current internal color of the <a class="el" href="classGtk_1_1ColorButton.html">Gtk::ColorButton</a>.</dd></dl> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000069">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> </div> </div><p> <a class="anchor" name="d8710f9d4d0b18112f62d955d74040fb"></a><!-- doxytag: member="Gtk::ColorButton::get_title" ref="d8710f9d4d0b18112f62d955d74040fb" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::ColorButton::get_title </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Gets the title of the color selection dialog. <p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000074">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The title. </dd></dl> </div> </div><p> <a class="anchor" name="54dfb197ed0b2ee0746cb12dc9073cca"></a><!-- doxytag: member="Gtk::ColorButton::get_use_alpha" ref="54dfb197ed0b2ee0746cb12dc9073cca" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gtk::ColorButton::get_use_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Does the color selection dialog use the alpha channel? <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the color sample uses alpha channel, <code>false</code> if not.</dd></dl> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000072">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> </div> </div><p> <a class="anchor" name="5ac84de7a367ab5089b41a8b5545d572"></a><!-- doxytag: member="Gtk::ColorButton::gobj" ref="5ac84de7a367ab5089b41a8b5545d572" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkColorButton* Gtk::ColorButton::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C GtkObject. <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Button.html#e0feae414420fe321854c52e7103c65d">Gtk::Button</a>. </div> </div><p> <a class="anchor" name="1faf17015e5af54cfaa60c263e3b487e"></a><!-- doxytag: member="Gtk::ColorButton::gobj" ref="1faf17015e5af54cfaa60c263e3b487e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkColorButton* Gtk::ColorButton::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C GtkObject. <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Button.html#ac9db3896fa8b7576c6f3720846faa1c">Gtk::Button</a>. </div> </div><p> <a class="anchor" name="f189df069ef862bc355f52b94732973d"></a><!-- doxytag: member="Gtk::ColorButton::on_color_set" ref="f189df069ef862bc355f52b94732973d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::ColorButton::on_color_set </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="3968c1632909e6910aea626d7e213b8e"></a><!-- doxytag: member="Gtk::ColorButton::property_alpha" ref="3968c1632909e6910aea626d7e213b8e" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><guint16> Gtk::ColorButton::property_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> The selected opacity value (0 fully transparent, 65535 fully opaque). <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="4eaec016cd21ded946036129bac42515"></a><!-- doxytag: member="Gtk::ColorButton::property_alpha" ref="4eaec016cd21ded946036129bac42515" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint16> Gtk::ColorButton::property_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> The selected opacity value (0 fully transparent, 65535 fully opaque). <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="33214986cdd78569037273f8d710964f"></a><!-- doxytag: member="Gtk::ColorButton::property_color" ref="33214986cdd78569037273f8d710964f" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>> Gtk::ColorButton::property_color </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> The selected color. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="f3cb699ee266f6d423d963254945a708"></a><!-- doxytag: member="Gtk::ColorButton::property_color" ref="f3cb699ee266f6d423d963254945a708" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>> Gtk::ColorButton::property_color </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> The selected color. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="3ca814e84816fc6cba56a71d7681ab49"></a><!-- doxytag: member="Gtk::ColorButton::property_title" ref="3ca814e84816fc6cba56a71d7681ab49" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::ColorButton::property_title </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> The title of the color selection dialog. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="d6b9606b7da58f64a5d42ed7757f3a30"></a><!-- doxytag: member="Gtk::ColorButton::property_title" ref="d6b9606b7da58f64a5d42ed7757f3a30" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::ColorButton::property_title </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> The title of the color selection dialog. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="9507adde05cc3806a30e24aa7312260b"></a><!-- doxytag: member="Gtk::ColorButton::property_use_alpha" ref="9507adde05cc3806a30e24aa7312260b" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::ColorButton::property_use_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Whether or not to give the color an alpha value. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="14af4e100c68b27c563983a6552f42cd"></a><!-- doxytag: member="Gtk::ColorButton::property_use_alpha" ref="14af4e100c68b27c563983a6552f42cd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::ColorButton::property_use_alpha </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Whether or not to give the color an alpha value. <p> You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><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><p> <a class="anchor" name="ed363cb1e704dd6b364b03b55e6f49c7"></a><!-- doxytag: member="Gtk::ColorButton::set_alpha" ref="ed363cb1e704dd6b364b03b55e6f49c7" args="(guint16 alpha)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorButton::set_alpha </td> <td>(</td> <td class="paramtype">guint16 </td> <td class="paramname"> <em>alpha</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the current opacity to be <em>alpha</em>. <p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000068">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>alpha</em> </td><td>An integer between 0 and 65535. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="bdebef43488848096b3beb48437a253b"></a><!-- doxytag: member="Gtk::ColorButton::set_color" ref="bdebef43488848096b3beb48437a253b" args="(const Gdk::Color &color)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorButton::set_color </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a>& </td> <td class="paramname"> <em>color</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the current color to be <em>color</em>. <p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000067">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>A <a class="el" href="classGdk_1_1Color.html">Gdk::Color</a> to set the current color with. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="6fb0f55e86936a07c6c062113b0e323d"></a><!-- doxytag: member="Gtk::ColorButton::set_title" ref="6fb0f55e86936a07c6c062113b0e323d" args="(const Glib::ustring &title)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorButton::set_title </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"> <em>title</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the title for the color selection dialog. <p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000073">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>title</em> </td><td>String containing new window title. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="817d20b6c2ca8ab10ec06177eebedebb"></a><!-- doxytag: member="Gtk::ColorButton::set_use_alpha" ref="817d20b6c2ca8ab10ec06177eebedebb" args="(bool use_alpha=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorButton::set_use_alpha </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>use_alpha</em> = <code>true</code> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets whether or not the color button should use the alpha channel. <p> <dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000071">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>use_alpha</em> </td><td><code>true</code> if color button should use alpha channel, <code>false</code> if not. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="ba946d3c0d7cb90ff05617409c55216f"></a><!-- doxytag: member="Gtk::ColorButton::signal_color_set" ref="ba946d3c0d7cb90ff05617409c55216f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>< void > Gtk::ColorButton::signal_color_set </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> The color_set signal is emitted when the user selects a color. <p> When handling this signal, use <a class="el" href="classGtk_1_1ColorButton.html#f0c6a88c87ab5da62fb1532fd7197402">get_color()</a> and <a class="el" href="classGtk_1_1ColorButton.html#b0144603e20c99d3b715a7ccc7a85bb7">get_alpha()</a> to find out which color was just selected.<p> <dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_color_set()</code> </dd></dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="14285f6a8086a0fe5296df841f34e5ea"></a><!-- doxytag: member="Gtk::ColorButton::wrap" ref="14285f6a8086a0fe5296df841f34e5ea" args="(GtkColorButton *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1ColorButton.html">Gtk::ColorButton</a>* wrap </td> <td>(</td> <td class="paramtype">GtkColorButton * </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 width="100%"><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p> A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p> <dl compact><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> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="colorbutton_8h.html">colorbutton.h</a></ul> </div> <!-- end main content --> <hr><address><small> Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.1 © 1997-2001</small></address> </body> </html>