File: classGtk_1_1EventBox.html

package info (click to toggle)
gtkmm2.4 1%3A2.12.7-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 97,528 kB
  • ctags: 33,749
  • sloc: xml: 121,487; cpp: 17,100; sh: 8,982; makefile: 1,150; perl: 161
file content (424 lines) | stat: -rw-r--r-- 25,519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<!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::EventBox 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> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</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_1EventBox.html">EventBox</a></div>
<h1>Gtk::EventBox Class Reference<br>
<small>
[<a class="el" href="group__Widgets.html">Widgets</a>]</small>
</h1><!-- doxytag: class="Gtk::EventBox" --><!-- doxytag: inherits="Gtk::Bin" -->Inheritance diagram for Gtk::EventBox:<p><center><img src="classGtk_1_1EventBox__inherit__graph.png" border="0" usemap="#Gtk_1_1EventBox__inherit__map" alt="Inheritance graph"></center>
<map name="Gtk_1_1EventBox__inherit__map">
<area href="classGtk_1_1Bin.html" shape="rect" coords="81,470,153,497" alt="">
<area href="classGtk_1_1Container.html" shape="rect" coords="61,393,173,420" alt="">
<area href="classGtk_1_1Widget.html" shape="rect" coords="71,316,164,342" alt="">
<area href="classGtk_1_1Object.html" shape="rect" coords="5,238,96,265" 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,161,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,110" 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,161,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,6,172,33" alt="">
<area href="classAtk_1_1Implementor.html" shape="rect" coords="120,238,251,265" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1EventBox-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Event capturing box. 
<p>
This widget adds an X <a class="el" href="classGtk_1_1Window.html">Window</a> where one does not normally appear, allowing you to capture events. It will receive any event which is specified with <a class="el" href="classGtk_1_1Widget.html#deb38a3d5988a0e31055bbd2edb2e954">set_events()</a>.<p>
This widget is generally used to add <a class="el" href="classGtk_1_1Tooltips.html">Gtk::Tooltips</a>, button presses, and clipping to widgets derived from <a class="el" href="classGtk_1_1Misc.html">Gtk::Misc</a>. 
<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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#c08bb3caa8438079f8c5662aea273b8f">EventBox</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#5058353f7deaf535c6782bccee40a82c">get_above_child</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return value: <code>true</code> if the event box window is above the window.  <a href="#5058353f7deaf535c6782bccee40a82c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#99a5dd481ed795f18fc6f0a3aaa91ed7">get_visible_window</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return value: <code>true</code> if the event box window is visible.  <a href="#99a5dd481ed795f18fc6f0a3aaa91ed7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkEventBox*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#e32158c23c42719e75d65b1de22aef0d">gobj</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GtkObject.  <a href="#e32158c23c42719e75d65b1de22aef0d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GtkEventBox*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#b8eec81a75fac4b357c12e00d5375b26">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GtkObject.  <a href="#b8eec81a75fac4b357c12e00d5375b26"></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>&lt;<br>
 bool &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#258724f6fef245d9b365a70221a63a0b">property_above_child</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it.  <a href="#258724f6fef245d9b365a70221a63a0b"></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>&lt;bool&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#fbf26a07c77339998187ab8b4c133f8e">property_above_child</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it.  <a href="#fbf26a07c77339998187ab8b4c133f8e"></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>&lt;<br>
 bool &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#861e7485b35f510227008a7c63fa7607">property_visible_window</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether the event box is visible.  <a href="#861e7485b35f510227008a7c63fa7607"></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>&lt;bool&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#5b7a1b87399ca4d994c7f0ba6eef78fe">property_visible_window</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether the event box is visible.  <a href="#5b7a1b87399ca4d994c7f0ba6eef78fe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#2aaaf3ecfb6ddd5425ae4c557d48b459">set_above_child</a> (bool above_child=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set whether the event box window is positioned above the windows of its child, as opposed to below it.  <a href="#2aaaf3ecfb6ddd5425ae4c557d48b459"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ed330de64eb6d3aa26ce54dc1d262ef5">set_visible_window</a> (bool visible_window=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set whether the event box uses a visible or invisible child window.  <a href="#ed330de64eb6d3aa26ce54dc1d262ef5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#626cde3c48d9a0c02329d85e7bf5abde">~EventBox</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_1EventBox.html">Gtk::EventBox</a>*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#0ac20e93b20deac4bea666985dd9b5cc">wrap</a> (GtkEventBox* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</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="#0ac20e93b20deac4bea666985dd9b5cc"></a><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="626cde3c48d9a0c02329d85e7bf5abde"></a><!-- doxytag: member="Gtk::EventBox::~EventBox" ref="626cde3c48d9a0c02329d85e7bf5abde" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::EventBox::~EventBox           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="c08bb3caa8438079f8c5662aea273b8f"></a><!-- doxytag: member="Gtk::EventBox::EventBox" ref="c08bb3caa8438079f8c5662aea273b8f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::EventBox::EventBox           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5058353f7deaf535c6782bccee40a82c"></a><!-- doxytag: member="Gtk::EventBox::get_above_child" ref="5058353f7deaf535c6782bccee40a82c" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::EventBox::get_above_child           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return value: <code>true</code> if the event box window is above the window. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the event box window is above the window of its child.</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000108">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="99a5dd481ed795f18fc6f0a3aaa91ed7"></a><!-- doxytag: member="Gtk::EventBox::get_visible_window" ref="99a5dd481ed795f18fc6f0a3aaa91ed7" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::EventBox::get_visible_window           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return value: <code>true</code> if the event box window is visible. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the event box window is visible</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000106">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="e32158c23c42719e75d65b1de22aef0d"></a><!-- doxytag: member="Gtk::EventBox::gobj" ref="e32158c23c42719e75d65b1de22aef0d" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkEventBox* Gtk::EventBox::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</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_1Bin.html#3028496848aa6547cf2a38f8b26125cf">Gtk::Bin</a>.
</div>
</div><p>
<a class="anchor" name="b8eec81a75fac4b357c12e00d5375b26"></a><!-- doxytag: member="Gtk::EventBox::gobj" ref="b8eec81a75fac4b357c12e00d5375b26" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkEventBox* Gtk::EventBox::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</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_1Bin.html#6fef1f41c67a588dd33087ea479e0ad1">Gtk::Bin</a>.
</div>
</div><p>
<a class="anchor" name="258724f6fef245d9b365a70221a63a0b"></a><!-- doxytag: member="Gtk::EventBox::property_above_child" ref="258724f6fef245d9b365a70221a63a0b" 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>&lt;bool&gt; Gtk::EventBox::property_above_child           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it. 
<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="fbf26a07c77339998187ab8b4c133f8e"></a><!-- doxytag: member="Gtk::EventBox::property_above_child" ref="fbf26a07c77339998187ab8b4c133f8e" 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>&lt;bool&gt; Gtk::EventBox::property_above_child           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it. 
<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="861e7485b35f510227008a7c63fa7607"></a><!-- doxytag: member="Gtk::EventBox::property_visible_window" ref="861e7485b35f510227008a7c63fa7607" 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>&lt;bool&gt; Gtk::EventBox::property_visible_window           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether the event box is visible. 
<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="5b7a1b87399ca4d994c7f0ba6eef78fe"></a><!-- doxytag: member="Gtk::EventBox::property_visible_window" ref="5b7a1b87399ca4d994c7f0ba6eef78fe" 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>&lt;bool&gt; Gtk::EventBox::property_visible_window           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether the event box is visible. 
<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="2aaaf3ecfb6ddd5425ae4c557d48b459"></a><!-- doxytag: member="Gtk::EventBox::set_above_child" ref="2aaaf3ecfb6ddd5425ae4c557d48b459" args="(bool above_child=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::EventBox::set_above_child           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>above_child</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set whether the event box window is positioned above the windows of its child, as opposed to below it. 
<p>
If the window is above, all events inside the event box will go to the event box. If the window is below, events in windows of child widgets will first got to that widget, and then to its parents.<p>
The default is to keep the window below the child.<p>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000109">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>above_child</em>&nbsp;</td><td><code>true</code> if the event box window is above the windows of its child. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="ed330de64eb6d3aa26ce54dc1d262ef5"></a><!-- doxytag: member="Gtk::EventBox::set_visible_window" ref="ed330de64eb6d3aa26ce54dc1d262ef5" args="(bool visible_window=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::EventBox::set_visible_window           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>visible_window</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set whether the event box uses a visible or invisible child window. 
<p>
The default is to use visible windows.<p>
In an invisible window event box, the window that the event box creates is a Gdk::INPUT_ONLY window, which means that it is invisible and only serves to receive events.<p>
A visible window event box creates a visible (Gdk::INPUT_OUTPUT) window that acts as the parent window for all the widgets contained in the event box.<p>
You should generally make your event box invisible if you just want to trap events. Creating a visible window may cause artifacts that are visible to the user, especially if the user is using a theme with gradients or pixmaps.<p>
The main reason to create a non input-only event box is if you want to set the background to a different color or draw on it.<p>
&lt;note&gt; There is one unexpected issue for an invisible event box that has its window below the child. (See <a class="el" href="classGtk_1_1EventBox.html#2aaaf3ecfb6ddd5425ae4c557d48b459">set_above_child()</a>.) Since the input-only window is not an ancestor window of any windows that descendent widgets of the event box create, events on these windows aren't propagated up by the windowing system, but only by GTK+. The practical effect of this is if an event isn't in the event mask for the descendant window (see <a class="el" href="classGtk_1_1Widget.html#1af589cb1d8764be5abf5579ffb69bec">Gtk::Widget::add_events()</a>), it won't be received by the event box.<p>
This problem doesn't occur for visible event boxes, because in that case, the event box window is actually the ancestor of the descendant windows, not just at the same place on the screen. &lt;/note&gt;<p>
<dl compact><dt><b><a class="el" href="newin2p4s.html#_newin2p4s000107">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>visible_window</em>&nbsp;</td><td>Boolean value. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="0ac20e93b20deac4bea666985dd9b5cc"></a><!-- doxytag: member="Gtk::EventBox::wrap" ref="0ac20e93b20deac4bea666985dd9b5cc" args="(GtkEventBox *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1EventBox.html">Gtk::EventBox</a>* wrap           </td>
          <td>(</td>
          <td class="paramtype">GtkEventBox *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</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>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</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="eventbox_8h.html">eventbox.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 &copy;&nbsp;1997-2001</small></address>
</body>
</html>