~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to share/doc/gtkmm-2.4/reference/html/classGtk_1_1CheckButton.html

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
 
5
<title>gtkmm: Gtk::CheckButton Class Reference</title>
 
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
 
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
 
8
</head>
 
9
<body>
 
10
<!-- Generated by Doxygen 1.7.3 -->
 
11
<div id="top">
 
12
<div id="titlearea">
 
13
<table cellspacing="0" cellpadding="0">
 
14
 <tbody>
 
15
 <tr style="height: 56px;">
 
16
  <td style="padding-left: 0.5em;">
 
17
   <div id="projectname">gtkmm&#160;<span id="projectnumber">2.24.2</span></div>
 
18
  </td>
 
19
 </tr>
 
20
 </tbody>
 
21
</table>
 
22
</div>
 
23
  <div id="navrow1" class="tabs">
 
24
    <ul class="tablist">
 
25
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
 
26
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
 
27
      <li><a href="modules.html"><span>Modules</span></a></li>
 
28
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
 
29
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
 
30
    </ul>
 
31
  </div>
 
32
  <div id="navrow2" class="tabs2">
 
33
    <ul class="tablist">
 
34
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
 
35
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
 
36
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
 
37
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
 
38
    </ul>
 
39
  </div>
 
40
  <div id="nav-path" class="navpath">
 
41
    <ul>
 
42
      <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li>
 
43
      <li class="navelem"><a class="el" href="classGtk_1_1CheckButton.html">CheckButton</a> </li>
 
44
    </ul>
 
45
  </div>
 
46
</div>
 
47
<div class="header">
 
48
  <div class="summary">
 
49
<a href="#pub-methods">Public Member Functions</a> &#124;
 
50
<a href="#pro-methods">Protected Member Functions</a> &#124;
 
51
<a href="#related">Related Functions</a> </div>
 
52
  <div class="headertitle">
 
53
<h1>Gtk::CheckButton Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a></div></h1> </div>
 
54
</div>
 
55
<div class="contents">
 
56
<!-- doxytag: class="Gtk::CheckButton" --><!-- doxytag: inherits="Gtk::ToggleButton" -->
 
57
<p>Create widgets with a discrete toggle button. <a href="#_details">More...</a></p>
 
58
<div class="dynheader">
 
59
Inheritance diagram for Gtk::CheckButton:</div>
 
60
<div class="dyncontent">
 
61
<div class="center"><img src="classGtk_1_1CheckButton__inherit__graph.png" border="0" usemap="#Gtk_1_1CheckButton_inherit__map" alt="Inheritance graph"/></div>
 
62
<map name="Gtk_1_1CheckButton_inherit__map" id="Gtk_1_1CheckButton_inherit__map">
 
63
<area shape="rect" id="node23" href="classGtk_1_1RadioButton.html" title="A single radio button performs the same basic function as a Gtk::CheckButton, as its position in the ..." alt="" coords="68,806,191,837"/><area shape="rect" id="node2" href="classGtk_1_1ToggleButton.html" title="A Gtk::ToggleButton will remain &#39;pressed&#45;in&#39; when clicked." alt="" coords="67,646,192,677"/><area shape="rect" id="node4" href="classGtk_1_1Button.html" title="A widget that creates a signal when clicked on." alt="" coords="85,566,173,597"/><area shape="rect" id="node6" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="95,486,164,517"/><area shape="rect" id="node8" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="76,406,183,437"/><area shape="rect" id="node10" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="84,326,175,357"/><area shape="rect" id="node12" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such as Gtk::Adjustme..." alt="" coords="21,246,109,277"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node16" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node18" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/><area shape="rect" id="node20" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="133,246,256,277"/></map>
 
64
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
 
65
<div class="dynheader">
 
66
Collaboration diagram for Gtk::CheckButton:</div>
 
67
<div class="dyncontent">
 
68
<div class="center"><img src="classGtk_1_1CheckButton__coll__graph.png" border="0" usemap="#Gtk_1_1CheckButton_coll__map" alt="Collaboration graph"/></div>
 
69
<map name="Gtk_1_1CheckButton_coll__map" id="Gtk_1_1CheckButton_coll__map">
 
70
<area shape="rect" id="node2" href="classGtk_1_1ToggleButton.html" title="A Gtk::ToggleButton will remain &#39;pressed&#45;in&#39; when clicked." alt="" coords="67,646,192,677"/><area shape="rect" id="node4" href="classGtk_1_1Button.html" title="A widget that creates a signal when clicked on." alt="" coords="85,566,173,597"/><area shape="rect" id="node6" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="95,486,164,517"/><area shape="rect" id="node8" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="76,406,183,437"/><area shape="rect" id="node10" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="84,326,175,357"/><area shape="rect" id="node12" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such as Gtk::Adjustme..." alt="" coords="21,246,109,277"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,166,111,197"/><area shape="rect" id="node16" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,86,125,117"/><area shape="rect" id="node18" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,6,119,37"/><area shape="rect" id="node20" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="133,246,256,277"/></map>
 
71
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
 
72
 
 
73
<p><a href="classGtk_1_1CheckButton-members.html">List of all members.</a></p>
 
74
<table class="memberdecls">
 
75
<tr><td colspan="2"><h2><a name="pub-methods"></a>
 
76
Public Member Functions</h2></td></tr>
 
77
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#aa28fef7f3bb24e3f6498ae85e4f62fb1">~CheckButton</a> ()</td></tr>
 
78
<tr><td class="memItemLeft" align="right" valign="top">GtkCheckButton*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#a9c03c6bb7097d41b6a1d7437259e7cee">gobj</a> ()</td></tr>
 
79
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a9c03c6bb7097d41b6a1d7437259e7cee"></a><br/></td></tr>
 
80
<tr><td class="memItemLeft" align="right" valign="top">const GtkCheckButton*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#a89c2952646c6133413f35f8c38a8f7c1">gobj</a> () const </td></tr>
 
81
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a89c2952646c6133413f35f8c38a8f7c1"></a><br/></td></tr>
 
82
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#a5f3a383438e1043eaec2150e99ce4e77">CheckButton</a> ()</td></tr>
 
83
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty check button. <a href="#a5f3a383438e1043eaec2150e99ce4e77"></a><br/></td></tr>
 
84
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#a44c85c68143c52c7500e970173a23688">CheckButton</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; label, bool mnemonic=false)</td></tr>
 
85
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a check button with a label. <a href="#a44c85c68143c52c7500e970173a23688"></a><br/></td></tr>
 
86
<tr><td colspan="2"><h2><a name="pro-methods"></a>
 
87
Protected Member Functions</h2></td></tr>
 
88
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#acee09f2588a92bfe255f76cf7cc92d4f">draw_indicator_vfunc</a> (GdkRectangle* area)</td></tr>
 
89
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Emited on button redraw to update indicator. <a href="#acee09f2588a92bfe255f76cf7cc92d4f"></a><br/></td></tr>
 
90
<tr><td colspan="2"><h2><a name="related"></a>
 
91
Related Functions</h2></td></tr>
 
92
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
 
93
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1CheckButton.html">Gtk::CheckButton</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1CheckButton.html#a8105b4f7b65bd7214aaff8a0ab0235c5">wrap</a> (GtkCheckButton* object, bool take_copy=false)</td></tr>
 
94
<tr><td class="mdescLeft">&#160;</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="#a8105b4f7b65bd7214aaff8a0ab0235c5"></a><br/></td></tr>
 
95
</table>
 
96
<hr/><a name="_details"></a><h2>Detailed Description</h2>
 
97
<div class="textblock"><p>Create widgets with a discrete toggle button. </p>
 
98
<p>A <a class="el" href="classGtk_1_1CheckButton.html" title="Create widgets with a discrete toggle button.">Gtk::CheckButton</a> places a discrete <a class="el" href="classGtk_1_1ToggleButton.html" title="A Gtk::ToggleButton will remain &#39;pressed-in&#39; when clicked.">Gtk::ToggleButton</a> next to a widget, (usually a <a class="el" href="classGtk_1_1Label.html" title="A widget that displays a small to medium amount of text.">Gtk::Label</a>). See <a class="el" href="classGtk_1_1ToggleButton.html" title="A Gtk::ToggleButton will remain &#39;pressed-in&#39; when clicked.">Gtk::ToggleButton</a> widgets for more information about toggle/check buttons. The important signal, <a class="el" href="classGtk_1_1ToggleButton.html#a85ce4ecde9214e112d1b739ba5fe6ef8" title="Emitted whenever the toggle tool button changes state.">signal_toggled()</a> is also inherited from <a class="el" href="classGtk_1_1ToggleButton.html" title="A Gtk::ToggleButton will remain &#39;pressed-in&#39; when clicked.">Gtk::ToggleButton</a>.</p>
 
99
<p>The <a class="el" href="classGtk_1_1CheckButton.html" title="Create widgets with a discrete toggle button.">CheckButton</a> widget looks like this: </p>
 
100
<div align="center">
 
101
<img src="checkbutton1.png" alt="checkbutton1.png"/>
 
102
</div>
 
103
 </div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
 
104
<a class="anchor" id="aa28fef7f3bb24e3f6498ae85e4f62fb1"></a><!-- doxytag: member="Gtk::CheckButton::~CheckButton" ref="aa28fef7f3bb24e3f6498ae85e4f62fb1" args="()" -->
 
105
<div class="memitem">
 
106
<div class="memproto">
 
107
      <table class="memname">
 
108
        <tr>
 
109
          <td class="memname">virtual Gtk::CheckButton::~CheckButton </td>
 
110
          <td>(</td>
 
111
          <td class="paramname"></td><td>)</td>
 
112
          <td><code> [virtual]</code></td>
 
113
        </tr>
 
114
      </table>
 
115
</div>
 
116
<div class="memdoc">
 
117
 
 
118
</div>
 
119
</div>
 
120
<a class="anchor" id="a5f3a383438e1043eaec2150e99ce4e77"></a><!-- doxytag: member="Gtk::CheckButton::CheckButton" ref="a5f3a383438e1043eaec2150e99ce4e77" args="()" -->
 
121
<div class="memitem">
 
122
<div class="memproto">
 
123
      <table class="memname">
 
124
        <tr>
 
125
          <td class="memname">Gtk::CheckButton::CheckButton </td>
 
126
          <td>(</td>
 
127
          <td class="paramname"></td><td>)</td>
 
128
          <td></td>
 
129
        </tr>
 
130
      </table>
 
131
</div>
 
132
<div class="memdoc">
 
133
 
 
134
<p>Create an empty check button. </p>
 
135
<p>With an empty button, you can <a class="el" href="classGtk_1_1Container.html#ae5f3b9c32b1b74e7613997843e91f4cc">Gtk::Button::add()</a> a widget such as a Gtk::Pixmap or <a class="el" href="classGtk_1_1Box.html" title="A base class for box containers.">Gtk::Box</a>.</p>
 
136
<p>If you just wish to add a <a class="el" href="classGtk_1_1Label.html" title="A widget that displays a small to medium amount of text.">Gtk::Label</a>, you may want to use the Gtk::CheckButton(const Glib::ustring&amp; label) constructor directly instead. </p>
 
137
 
 
138
</div>
 
139
</div>
 
140
<a class="anchor" id="a44c85c68143c52c7500e970173a23688"></a><!-- doxytag: member="Gtk::CheckButton::CheckButton" ref="a44c85c68143c52c7500e970173a23688" args="(const Glib::ustring &amp;label, bool mnemonic=false)" -->
 
141
<div class="memitem">
 
142
<div class="memproto">
 
143
      <table class="memname">
 
144
        <tr>
 
145
          <td class="memname">Gtk::CheckButton::CheckButton </td>
 
146
          <td>(</td>
 
147
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
 
148
          <td class="paramname"><em>label</em>, </td>
 
149
        </tr>
 
150
        <tr>
 
151
          <td class="paramkey"></td>
 
152
          <td></td>
 
153
          <td class="paramtype">bool&#160;</td>
 
154
          <td class="paramname"><em>mnemonic</em> = <code>false</code>&#160;</td>
 
155
        </tr>
 
156
        <tr>
 
157
          <td></td>
 
158
          <td>)</td>
 
159
          <td></td><td><code> [explicit]</code></td>
 
160
        </tr>
 
161
      </table>
 
162
</div>
 
163
<div class="memdoc">
 
164
 
 
165
<p>Create a check button with a label. </p>
 
166
<p>You won't be able to add a widget to this button since it already contains a <a class="el" href="classGtk_1_1Label.html" title="A widget that displays a small to medium amount of text.">Gtk::Label</a> </p>
 
167
 
 
168
</div>
 
169
</div>
 
170
<hr/><h2>Member Function Documentation</h2>
 
171
<a class="anchor" id="acee09f2588a92bfe255f76cf7cc92d4f"></a><!-- doxytag: member="Gtk::CheckButton::draw_indicator_vfunc" ref="acee09f2588a92bfe255f76cf7cc92d4f" args="(GdkRectangle *area)" -->
 
172
<div class="memitem">
 
173
<div class="memproto">
 
174
      <table class="memname">
 
175
        <tr>
 
176
          <td class="memname">virtual void Gtk::CheckButton::draw_indicator_vfunc </td>
 
177
          <td>(</td>
 
178
          <td class="paramtype">GdkRectangle *&#160;</td>
 
179
          <td class="paramname"><em>area</em></td><td>)</td>
 
180
          <td><code> [protected, virtual]</code></td>
 
181
        </tr>
 
182
      </table>
 
183
</div>
 
184
<div class="memdoc">
 
185
 
 
186
<p>Emited on button redraw to update indicator. </p>
 
187
<p>Triggered when the button is redrawn (e.g.after being toggled) Overload this signal if you want to implement your own check button look. Otherwise, you most likely don't care about it. The GdkRectangle specifies the area of the widget which will get redrawn. </p>
 
188
 
 
189
</div>
 
190
</div>
 
191
<a class="anchor" id="a9c03c6bb7097d41b6a1d7437259e7cee"></a><!-- doxytag: member="Gtk::CheckButton::gobj" ref="a9c03c6bb7097d41b6a1d7437259e7cee" args="()" -->
 
192
<div class="memitem">
 
193
<div class="memproto">
 
194
      <table class="memname">
 
195
        <tr>
 
196
          <td class="memname">GtkCheckButton* Gtk::CheckButton::gobj </td>
 
197
          <td>(</td>
 
198
          <td class="paramname"></td><td>)</td>
 
199
          <td><code> [inline]</code></td>
 
200
        </tr>
 
201
      </table>
 
202
</div>
 
203
<div class="memdoc">
 
204
 
 
205
<p>Provides access to the underlying C GtkObject. </p>
 
206
 
 
207
<p>Reimplemented from <a class="el" href="classGtk_1_1ToggleButton.html#aaf95f140bb908c7424ce489c8c988993">Gtk::ToggleButton</a>.</p>
 
208
 
 
209
<p>Reimplemented in <a class="el" href="classGtk_1_1RadioButton.html#a43c24cc7bea2c2edf043f4b76c632ee7">Gtk::RadioButton</a>.</p>
 
210
 
 
211
</div>
 
212
</div>
 
213
<a class="anchor" id="a89c2952646c6133413f35f8c38a8f7c1"></a><!-- doxytag: member="Gtk::CheckButton::gobj" ref="a89c2952646c6133413f35f8c38a8f7c1" args="() const " -->
 
214
<div class="memitem">
 
215
<div class="memproto">
 
216
      <table class="memname">
 
217
        <tr>
 
218
          <td class="memname">const GtkCheckButton* Gtk::CheckButton::gobj </td>
 
219
          <td>(</td>
 
220
          <td class="paramname"></td><td>)</td>
 
221
          <td> const<code> [inline]</code></td>
 
222
        </tr>
 
223
      </table>
 
224
</div>
 
225
<div class="memdoc">
 
226
 
 
227
<p>Provides access to the underlying C GtkObject. </p>
 
228
 
 
229
<p>Reimplemented from <a class="el" href="classGtk_1_1ToggleButton.html#a64415628d18b8d76da14ce7109e9b6af">Gtk::ToggleButton</a>.</p>
 
230
 
 
231
<p>Reimplemented in <a class="el" href="classGtk_1_1RadioButton.html#a03095fa6bb24ec52d0cceaa3d5ac353d">Gtk::RadioButton</a>.</p>
 
232
 
 
233
</div>
 
234
</div>
 
235
<hr/><h2>Friends And Related Function Documentation</h2>
 
236
<a class="anchor" id="a8105b4f7b65bd7214aaff8a0ab0235c5"></a><!-- doxytag: member="Gtk::CheckButton::wrap" ref="a8105b4f7b65bd7214aaff8a0ab0235c5" args="(GtkCheckButton *object, bool take_copy=false)" -->
 
237
<div class="memitem">
 
238
<div class="memproto">
 
239
      <table class="memname">
 
240
        <tr>
 
241
          <td class="memname"><a class="el" href="classGtk_1_1CheckButton.html">Gtk::CheckButton</a>* wrap </td>
 
242
          <td>(</td>
 
243
          <td class="paramtype">GtkCheckButton *&#160;</td>
 
244
          <td class="paramname"><em>object</em>, </td>
 
245
        </tr>
 
246
        <tr>
 
247
          <td class="paramkey"></td>
 
248
          <td></td>
 
249
          <td class="paramtype">bool&#160;</td>
 
250
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
 
251
        </tr>
 
252
        <tr>
 
253
          <td></td>
 
254
          <td>)</td>
 
255
          <td></td><td><code> [related]</code></td>
 
256
        </tr>
 
257
      </table>
 
258
</div>
 
259
<div class="memdoc">
 
260
 
 
261
<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
 
262
<dl><dt><b>Parameters:</b></dt><dd>
 
263
  <table class="params">
 
264
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
 
265
    <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>
 
266
  </table>
 
267
  </dd>
 
268
</dl>
 
269
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
 
270
 
 
271
</div>
 
272
</div>
 
273
<hr/>The documentation for this class was generated from the following file:<ul>
 
274
<li>gtkmm/checkbutton.h</li>
 
275
</ul>
 
276
</div>
 
277
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:45 for gtkmm by&#160;
 
278
<a href="http://www.doxygen.org/index.html">
 
279
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
 
280
</body>
 
281
</html>