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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::EventBox Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<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="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1EventBox.html">EventBox</a>
</div>
</div>
<div class="contents">
<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" -->
<p>Event capturing box. <a href="#_details">More...</a></p>
<p>Inherits <a class="el" href="classGtk_1_1Bin.html">Gtk::Bin</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::EventBox:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1EventBox__coll__graph.png" border="0" usemap="#Gtk_1_1EventBox_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1EventBox_coll__map" id="Gtk_1_1EventBox_coll__map">
<area shape="rect" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="79,469,148,499"/><area shape="rect" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="61,392,165,421"/><area shape="rect" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)." alt="" coords="68,315,159,344"/><area shape="rect" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such..." alt="" coords="5,237,93,267"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,160,96,189"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="51,83,171,112"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="123,160,227,189"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="57,5,164,35"/><area shape="rect" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="117,237,237,267"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classGtk_1_1EventBox-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#a626cde3c48d9a0c02329d85e7bf5abde">~EventBox</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkEventBox* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ab8eec81a75fac4b357c12e00d5375b26">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#ab8eec81a75fac4b357c12e00d5375b26"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkEventBox* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ac104c2ba7989fc169a9ab5fc2f29dbdc">gobj</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#ac104c2ba7989fc169a9ab5fc2f29dbdc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ac08bb3caa8438079f8c5662aea273b8f">EventBox</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#af7c01805045b0350ab022177bfdd1eb7">get_visible_window</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the event box has a visible window. <a href="#af7c01805045b0350ab022177bfdd1eb7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#aed330de64eb6d3aa26ce54dc1d262ef5">set_visible_window</a> (bool visible_window=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set whether the event box uses a visible or invisible child window. <a href="#aed330de64eb6d3aa26ce54dc1d262ef5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#aa452b7d6e2df4146a094eb5dfd148211">get_above_child</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the event box window is above or below the windows of its child. <a href="#aa452b7d6e2df4146a094eb5dfd148211"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#a2aaaf3ecfb6ddd5425ae4c557d48b459">set_above_child</a> (bool above_child=true)</td></tr>
<tr><td class="mdescLeft"> </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="#a2aaaf3ecfb6ddd5425ae4c557d48b459"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" 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_1EventBox.html#a5b7a1b87399ca4d994c7f0ba6eef78fe">property_visible_window</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Whether the event box is visible. <a href="#a5b7a1b87399ca4d994c7f0ba6eef78fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" 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_1EventBox.html#afe7a28a60b58cc9f1eded0fc76e0dde3">property_visible_window</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Whether the event box is visible. <a href="#afe7a28a60b58cc9f1eded0fc76e0dde3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" 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_1EventBox.html#afbf26a07c77339998187ab8b4c133f8e">property_above_child</a> ()</td></tr>
<tr><td class="mdescLeft"> </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="#afbf26a07c77339998187ab8b4c133f8e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" 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_1EventBox.html#af04b0693101c77ca99dc8dd4fdef1a4c">property_above_child</a> () const </td></tr>
<tr><td class="mdescLeft"> </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="#af04b0693101c77ca99dc8dd4fdef1a4c"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1EventBox.html">Gtk::EventBox</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#a0ac20e93b20deac4bea666985dd9b5cc">wrap</a> (GtkEventBox* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a0ac20e93b20deac4bea666985dd9b5cc"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Event capturing box. </p>
<p>This widget adds an X <a class="el" href="classGtk_1_1Window.html" title="Toplevel Window This represents all widgets which are physical windows controlled...">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#adeb38a3d5988a0e31055bbd2edb2e954" title="Sets the event mask (see Gdk::EventMask) for a widget.">set_events()</a>.</p>
<p>This widget is generally used to add <a class="el" href="classGtk_1_1Tooltips.html" title="Tooltips are the messages that appear next to a widget when the mouse pointer is...">Gtk::Tooltips</a>, button presses, and clipping to widgets derived from <a class="el" href="classGtk_1_1Misc.html" title="A base class for widgets with alignments and padding.">Gtk::Misc</a>. </p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a626cde3c48d9a0c02329d85e7bf5abde"></a><!-- doxytag: member="Gtk::EventBox::~EventBox" ref="a626cde3c48d9a0c02329d85e7bf5abde" 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> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ac08bb3caa8438079f8c5662aea273b8f"></a><!-- doxytag: member="Gtk::EventBox::EventBox" ref="ac08bb3caa8438079f8c5662aea273b8f" 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> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa452b7d6e2df4146a094eb5dfd148211"></a><!-- doxytag: member="Gtk::EventBox::get_above_child" ref="aa452b7d6e2df4146a094eb5dfd148211" 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> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns whether the event box window is above or below the windows of its child. </p>
<p>See <a class="el" href="classGtk_1_1EventBox.html#a2aaaf3ecfb6ddd5425ae4c557d48b459" title="Set whether the event box window is positioned above the windows of its child, as...">set_above_child()</a> for details.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000106">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the event box window is above the window of its child. </dd></dl>
</div>
</div>
<a class="anchor" id="af7c01805045b0350ab022177bfdd1eb7"></a><!-- doxytag: member="Gtk::EventBox::get_visible_window" ref="af7c01805045b0350ab022177bfdd1eb7" 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> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns whether the event box has a visible window. </p>
<p>See <a class="el" href="classGtk_1_1EventBox.html#aed330de64eb6d3aa26ce54dc1d262ef5" title="Set whether the event box uses a visible or invisible child window.">set_visible_window()</a> for details.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000104">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the event box window is visible. </dd></dl>
</div>
</div>
<a class="anchor" id="ac104c2ba7989fc169a9ab5fc2f29dbdc"></a><!-- doxytag: member="Gtk::EventBox::gobj" ref="ac104c2ba7989fc169a9ab5fc2f29dbdc" 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> ) </td>
<td> 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#ad6db11cd388872c6ee36aee075478374">Gtk::Bin</a>.</p>
</div>
</div>
<a class="anchor" id="ab8eec81a75fac4b357c12e00d5375b26"></a><!-- doxytag: member="Gtk::EventBox::gobj" ref="ab8eec81a75fac4b357c12e00d5375b26" 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> ) </td>
<td><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#a6fef1f41c67a588dd33087ea479e0ad1">Gtk::Bin</a>.</p>
</div>
</div>
<a class="anchor" id="af04b0693101c77ca99dc8dd4fdef1a4c"></a><!-- doxytag: member="Gtk::EventBox::property_above_child" ref="af04b0693101c77ca99dc8dd4fdef1a4c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::EventBox::property_above_child </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> 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>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><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>
<a class="anchor" id="afbf26a07c77339998187ab8b4c133f8e"></a><!-- doxytag: member="Gtk::EventBox::property_above_child" ref="afbf26a07c77339998187ab8b4c133f8e" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::EventBox::property_above_child </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></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>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><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>
<a class="anchor" id="afe7a28a60b58cc9f1eded0fc76e0dde3"></a><!-- doxytag: member="Gtk::EventBox::property_visible_window" ref="afe7a28a60b58cc9f1eded0fc76e0dde3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::EventBox::property_visible_window </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Whether the event box is visible. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><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>
<a class="anchor" id="a5b7a1b87399ca4d994c7f0ba6eef78fe"></a><!-- doxytag: member="Gtk::EventBox::property_visible_window" ref="a5b7a1b87399ca4d994c7f0ba6eef78fe" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::EventBox::property_visible_window </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Whether the event box is visible. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><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>
<a class="anchor" id="a2aaaf3ecfb6ddd5425ae4c557d48b459"></a><!-- doxytag: member="Gtk::EventBox::set_above_child" ref="a2aaaf3ecfb6ddd5425ae4c557d48b459" 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 </td>
<td class="paramname"> <em>above_child</em> = <code>true</code></td>
<td> ) </td>
<td></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>
<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>
<p>The default is to keep the window below the child.</p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000107">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl><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> </td><td><code>true</code> if the event box window is above the windows of its child. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aed330de64eb6d3aa26ce54dc1d262ef5"></a><!-- doxytag: member="Gtk::EventBox::set_visible_window" ref="aed330de64eb6d3aa26ce54dc1d262ef5" 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 </td>
<td class="paramname"> <em>visible_window</em> = <code>true</code></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set whether the event box uses a visible or invisible child window. </p>
<p>The default is to use visible windows.</p>
<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>
<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>
<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>
<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>
<p><note></p>
<p>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#a2aaaf3ecfb6ddd5425ae4c557d48b459" title="Set whether the event box window is positioned above the windows of its child, as...">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#a1af589cb1d8764be5abf5579ffb69bec" title="Adds the events in the bitfield events to the event mask for widget.">Gtk::Widget::add_events()</a>), it won't be received by the event box. </p>
<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. </p>
<p></note></p>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000105">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>
<dl><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> </td><td>Boolean value. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a0ac20e93b20deac4bea666985dd9b5cc"></a><!-- doxytag: member="Gtk::EventBox::wrap" ref="a0ac20e93b20deac4bea666985dd9b5cc" 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 * </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><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><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>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/eventbox.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:51 2010 for gtkmm by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|