<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.7"/> <title>gtkmm: Gtk::ColorChooser Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm  <span id="projectnumber">3.14.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <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="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a></li><li class="navelem"><a class="el" href="classGtk_1_1ColorChooser.html">ColorChooser</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> | <a href="classGtk_1_1ColorChooser-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Gtk::ColorChooser Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>This interface can be implemented by widgets which allow the user to choose a color. <a href="classGtk_1_1ColorChooser.html#details">More...</a></p> <p><code>#include <gtkmm/colorchooser.h></code></p> <div class="dynheader"> Inheritance diagram for Gtk::ColorChooser:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1ColorChooser__inherit__graph.png" border="0" usemap="#Gtk_1_1ColorChooser_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1ColorChooser_inherit__map" id="Gtk_1_1ColorChooser_inherit__map"> <area shape="rect" id="node5" href="classGtk_1_1ColorChooserDialog.html" title="This dialog is for choosing a color. " alt="" coords="5,304,184,331"/><area shape="rect" id="node2" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="39,155,149,181"/><area shape="rect" id="node3" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="31,80,157,107"/><area shape="rect" id="node4" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="37,5,152,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aa8c8442bf10d311cd7dba127199ef7e7"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#aa8c8442bf10d311cd7dba127199ef7e7">~ColorChooser</a> ()</td></tr> <tr class="separator:aa8c8442bf10d311cd7dba127199ef7e7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a148810acda9189bc68b34de9c5afcb06"><td class="memItemLeft" align="right" valign="top">GtkColorChooser* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a148810acda9189bc68b34de9c5afcb06">gobj</a> ()</td></tr> <tr class="memdesc:a148810acda9189bc68b34de9c5afcb06"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a148810acda9189bc68b34de9c5afcb06">More...</a><br /></td></tr> <tr class="separator:a148810acda9189bc68b34de9c5afcb06"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a69e1456d9fd29b745475f8fcc1d3a3a8"><td class="memItemLeft" align="right" valign="top">const GtkColorChooser* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a69e1456d9fd29b745475f8fcc1d3a3a8">gobj</a> () const </td></tr> <tr class="memdesc:a69e1456d9fd29b745475f8fcc1d3a3a8"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a69e1456d9fd29b745475f8fcc1d3a3a8">More...</a><br /></td></tr> <tr class="separator:a69e1456d9fd29b745475f8fcc1d3a3a8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3ffaad808803429b511eb44bfc927710"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a3ffaad808803429b511eb44bfc927710">get_rgba</a> () const </td></tr> <tr class="memdesc:a3ffaad808803429b511eb44bfc927710"><td class="mdescLeft"> </td><td class="mdescRight">Gets the currently selected color. <a href="#a3ffaad808803429b511eb44bfc927710">More...</a><br /></td></tr> <tr class="separator:a3ffaad808803429b511eb44bfc927710"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7f9d3db2d16b8045b0b7fb95f27dd191"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a7f9d3db2d16b8045b0b7fb95f27dd191">set_rgba</a> (const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& color)</td></tr> <tr class="memdesc:a7f9d3db2d16b8045b0b7fb95f27dd191"><td class="mdescLeft"> </td><td class="mdescRight">Sets the color. <a href="#a7f9d3db2d16b8045b0b7fb95f27dd191">More...</a><br /></td></tr> <tr class="separator:a7f9d3db2d16b8045b0b7fb95f27dd191"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9c0c8822b75af58ac65b1d86a01a5ca3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a9c0c8822b75af58ac65b1d86a01a5ca3">get_use_alpha</a> () const </td></tr> <tr class="memdesc:a9c0c8822b75af58ac65b1d86a01a5ca3"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the color chooser shows the alpha channel. <a href="#a9c0c8822b75af58ac65b1d86a01a5ca3">More...</a><br /></td></tr> <tr class="separator:a9c0c8822b75af58ac65b1d86a01a5ca3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa10a53ffdd16172c445c404adcac48d9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#aa10a53ffdd16172c445c404adcac48d9">set_use_alpha</a> (bool use_alpha=true)</td></tr> <tr class="memdesc:aa10a53ffdd16172c445c404adcac48d9"><td class="mdescLeft"> </td><td class="mdescRight">Sets whether or not the color chooser should use the alpha channel. <a href="#aa10a53ffdd16172c445c404adcac48d9">More...</a><br /></td></tr> <tr class="separator:aa10a53ffdd16172c445c404adcac48d9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad81846e630d60683615f441783f8c52b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#ad81846e630d60683615f441783f8c52b">add_palette</a> (<a class="el" href="group__gtkmmEnums.html#ga84179a467b0ed4f61b4e325eb09b0b1c">Orientation</a> orientation, int colors_per_line, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>< <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> >& colors)</td></tr> <tr class="memdesc:ad81846e630d60683615f441783f8c52b"><td class="mdescLeft"> </td><td class="mdescRight">Adds a palette to the color chooser. <a href="#ad81846e630d60683615f441783f8c52b">More...</a><br /></td></tr> <tr class="separator:ad81846e630d60683615f441783f8c52b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa52360f0bc6b727b74f562931f84ebfd"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>< void, <br class="typebreak" /> const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#aa52360f0bc6b727b74f562931f84ebfd">signal_color_activated</a> ()</td></tr> <tr class="separator:aa52360f0bc6b727b74f562931f84ebfd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aee55b1d0fc268a870a865b7cc1f4669c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#aee55b1d0fc268a870a865b7cc1f4669c">property_rgba</a> ()</td></tr> <tr class="memdesc:aee55b1d0fc268a870a865b7cc1f4669c"><td class="mdescLeft"> </td><td class="mdescRight">Current color, as a GdkRGBA. <a href="#aee55b1d0fc268a870a865b7cc1f4669c">More...</a><br /></td></tr> <tr class="separator:aee55b1d0fc268a870a865b7cc1f4669c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1b4aef9854e58a8dea0dcfb5d0f787d4"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak" /> < <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a1b4aef9854e58a8dea0dcfb5d0f787d4">property_rgba</a> () const </td></tr> <tr class="memdesc:a1b4aef9854e58a8dea0dcfb5d0f787d4"><td class="mdescLeft"> </td><td class="mdescRight">Current color, as a GdkRGBA. <a href="#a1b4aef9854e58a8dea0dcfb5d0f787d4">More...</a><br /></td></tr> <tr class="separator:a1b4aef9854e58a8dea0dcfb5d0f787d4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9df8b5c552300bb8fce184a6c80de068"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a9df8b5c552300bb8fce184a6c80de068">property_use_alpha</a> ()</td></tr> <tr class="memdesc:a9df8b5c552300bb8fce184a6c80de068"><td class="mdescLeft"> </td><td class="mdescRight">Whether alpha should be shown. <a href="#a9df8b5c552300bb8fce184a6c80de068">More...</a><br /></td></tr> <tr class="separator:a9df8b5c552300bb8fce184a6c80de068"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9df4d9189f81a605361511fb1510c691"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak" /> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a9df4d9189f81a605361511fb1510c691">property_use_alpha</a> () const </td></tr> <tr class="memdesc:a9df4d9189f81a605361511fb1510c691"><td class="mdescLeft"> </td><td class="mdescRight">Whether alpha should be shown. <a href="#a9df4d9189f81a605361511fb1510c691">More...</a><br /></td></tr> <tr class="separator:a9df4d9189f81a605361511fb1510c691"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:ae075ccc67b0bf26b8c18618f21dfeb0f"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#ae075ccc67b0bf26b8c18618f21dfeb0f">add_interface</a> (GType gtype_implementer)</td></tr> <tr class="separator:ae075ccc67b0bf26b8c18618f21dfeb0f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4181bb09729fc11f1a8c383f60801b53"><td class="memItemLeft" align="right" valign="top">static GType </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a4181bb09729fc11f1a8c383f60801b53">get_type</a> ()</td></tr> <tr class="memdesc:a4181bb09729fc11f1a8c383f60801b53"><td class="mdescLeft"> </td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system. <a href="#a4181bb09729fc11f1a8c383f60801b53">More...</a><br /></td></tr> <tr class="separator:a4181bb09729fc11f1a8c383f60801b53"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:a0ce89e3fb3a6cb31b57041834043ecad"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a0ce89e3fb3a6cb31b57041834043ecad">ColorChooser</a> ()</td></tr> <tr class="memdesc:a0ce89e3fb3a6cb31b57041834043ecad"><td class="mdescLeft"> </td><td class="mdescRight">You should derive from this class to use it. <a href="#a0ce89e3fb3a6cb31b57041834043ecad">More...</a><br /></td></tr> <tr class="separator:a0ce89e3fb3a6cb31b57041834043ecad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a654c418c0a4faad29d0d145ef1c8ec65"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a654c418c0a4faad29d0d145ef1c8ec65">on_color_activated</a> (const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& color)</td></tr> <tr class="memdesc:a654c418c0a4faad29d0d145ef1c8ec65"><td class="mdescLeft"> </td><td class="mdescRight">This is a default handler for the signal <a class="el" href="classGtk_1_1ColorChooser.html#aa52360f0bc6b727b74f562931f84ebfd">signal_color_activated()</a>. <a href="#a654c418c0a4faad29d0d145ef1c8ec65">More...</a><br /></td></tr> <tr class="separator:a654c418c0a4faad29d0d145ef1c8ec65"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a> Related Functions</h2></td></tr> <tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p> </td></tr> <tr class="memitem:a22d622e30bd66d48d1fad2aa07c327a8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1ColorChooser.html">Gtk::ColorChooser</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ColorChooser.html#a22d622e30bd66d48d1fad2aa07c327a8">wrap</a> (GtkColorChooser* object, bool take_copy=false)</td></tr> <tr class="memdesc:a22d622e30bd66d48d1fad2aa07c327a8"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a22d622e30bd66d48d1fad2aa07c327a8">More...</a><br /></td></tr> <tr class="separator:a22d622e30bd66d48d1fad2aa07c327a8"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This interface can be implemented by widgets which allow the user to choose a color. </p> <p>Depending on the situation, colors may be allowed to have alpha (translucency). The main widgets that implement this interface are ColorChooserWidget, <a class="el" href="classGtk_1_1ColorChooserDialog.html" title="This dialog is for choosing a color. ">ColorChooserDialog</a> and ColorChooserButton.</p> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000045">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a0ce89e3fb3a6cb31b57041834043ecad"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Gtk::ColorChooser::ColorChooser </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>You should derive from this class to use it. </p> </div> </div> <a class="anchor" id="aa8c8442bf10d311cd7dba127199ef7e7"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual Gtk::ColorChooser::~ColorChooser </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="ae075ccc67b0bf26b8c18618f21dfeb0f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static void Gtk::ColorChooser::add_interface </td> <td>(</td> <td class="paramtype">GType </td> <td class="paramname"><em>gtype_implementer</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="ad81846e630d60683615f441783f8c52b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorChooser::add_palette </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga84179a467b0ed4f61b4e325eb09b0b1c">Orientation</a> </td> <td class="paramname"><em>orientation</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>colors_per_line</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>< <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> >& </td> <td class="paramname"><em>colors</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Adds a palette to the color chooser. </p> <p>If <em>orientation</em> is horizontal, the colors are grouped in rows, with <em>colors_per_line</em> colors in each row. If <em>orientation</em> is vertical, the colors are grouped in columns instead.</p> <p>The default color palette of ColorChooserWidget has 27 colors, organized in columns of 3 colors. The default gray palette has 9 grays in a single row.</p> <p>The layout of the color chooser widget works best when the palettes have 9-10 columns.</p> <p>Calling this function for the first time has the side effect of removing the default color and gray palettes from the color chooser.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">orientation</td><td>ORIENTATION_HORIZONTAL if the palette should be displayed in rows, or ORIENTATION_VERTICAL for columns </td></tr> <tr><td class="paramname">colors_per_line</td><td>The number of colors to show in each row/column. </td></tr> <tr><td class="paramname">colors</td><td>The colors of the palette.</td></tr> </table> </dd> </dl> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000050">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a3ffaad808803429b511eb44bfc927710"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> Gtk::ColorChooser::get_rgba </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the currently selected color. </p> <dl class="section return"><dt>Returns</dt><dd>The currently selected color. </dd></dl> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000046">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a4181bb09729fc11f1a8c383f60801b53"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static GType Gtk::ColorChooser::get_type </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get the GType for this class, for use with the underlying GObject type system. </p> </div> </div> <a class="anchor" id="a9c0c8822b75af58ac65b1d86a01a5ca3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gtk::ColorChooser::get_use_alpha </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns whether the color chooser shows the alpha channel. </p> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000048">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> <dl class="section return"><dt>Returns</dt><dd><code>true</code> if the color chooser uses the alpha channel, <code>false</code> if not. </dd></dl> </div> </div> <a class="anchor" id="a148810acda9189bc68b34de9c5afcb06"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">GtkColorChooser* Gtk::ColorChooser::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="a69e1456d9fd29b745475f8fcc1d3a3a8"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const GtkColorChooser* Gtk::ColorChooser::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="a654c418c0a4faad29d0d145ef1c8ec65"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::ColorChooser::on_color_activated </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& </td> <td class="paramname"><em>color</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This is a default handler for the signal <a class="el" href="classGtk_1_1ColorChooser.html#aa52360f0bc6b727b74f562931f84ebfd">signal_color_activated()</a>. </p> </div> </div> <a class="anchor" id="aee55b1d0fc268a870a865b7cc1f4669c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> > Gtk::ColorChooser::property_rgba </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Current color, as a GdkRGBA. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a1b4aef9854e58a8dea0dcfb5d0f787d4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a> > Gtk::ColorChooser::property_rgba </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Current color, as a GdkRGBA. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a9df8b5c552300bb8fce184a6c80de068"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > Gtk::ColorChooser::property_use_alpha </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Whether alpha should be shown. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a9df4d9189f81a605361511fb1510c691"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< bool > Gtk::ColorChooser::property_use_alpha </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Whether alpha should be shown. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a7f9d3db2d16b8045b0b7fb95f27dd191"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorChooser::set_rgba </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& </td> <td class="paramname"><em>color</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Sets the color. </p> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000047">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">color</td><td>The new color. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aa10a53ffdd16172c445c404adcac48d9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ColorChooser::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></td> </tr> </table> </div><div class="memdoc"> <p>Sets whether or not the color chooser should use the alpha channel. </p> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000049">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">use_alpha</td><td><code>true</code> if color chooser should use alpha channel, <code>false</code> if not. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aa52360f0bc6b727b74f562931f84ebfd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>< void,const <a class="el" href="classGdk_1_1RGBA.html">Gdk::RGBA</a>& > Gtk::ColorChooser::signal_color_activated </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section user"><dt>Slot Prototype:</dt><dd><code>void on_my_color_activated(const <a class="el" href="classGdk_1_1RGBA.html" title="An RGBA Color. ">Gdk::RGBA</a>& color)</code></dd></dl> <p>Emitted when a color is activated from the color chooser. This usually happens when the user clicks a color swatch, or a color is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.</p> <dl class="since_3_4"><dt><b><a class="el" href="since_3_4.html#_since_3_4000051">Since gtkmm 3.4:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">color</td><td>The color. </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Friends And Related Function Documentation</h2> <a class="anchor" id="a22d622e30bd66d48d1fad2aa07c327a8"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1ColorChooser.html">Gtk::ColorChooser</a> > wrap </td> <td>(</td> <td class="paramtype">GtkColorChooser * </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> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">related</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</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="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Sep 23 2014 12:59:18 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.7 </small></address> </body> </html>