Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 324

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.rpm

<!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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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&#45;widget objects such..." alt="" coords="5,237,93,267"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,160,96,189"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="51,83,171,112"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="123,160,227,189"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/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&#160;</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*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ab8eec81a75fac4b357c12e00d5375b26">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</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*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EventBox.html#ac104c2ba7989fc169a9ab5fc2f29dbdc">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</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">&#160;</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&#160;</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">&#160;</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&#160;</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">&#160;</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&#160;</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">&#160;</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&#160;</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">&#160;</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" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; bool &gt;&#160;</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">&#160;</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" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</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">&#160;</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" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; bool &gt;&#160;</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">&#160;</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" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</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">&#160;</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>*&#160;</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">&#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="#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 &amp; 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>&#160;)&#160;</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>&#160;)&#160;</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>&#160;)&#160;</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>&#160;)&#160;</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>&#160;)&#160;</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>&#160;)&#160;</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" href="../../../glibmm-2.4/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>&#160;)&#160;</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" href="../../../glibmm-2.4/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>&#160;)&#160;</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" href="../../../glibmm-2.4/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>&#160;)&#160;</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" href="../../../glibmm-2.4/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>&#160;)&#160;</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&#160;</td>
          <td class="paramname"> <em>above_child</em> = <code>true</code></td>
          <td>&#160;)&#160;</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>&#160;</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&#160;</td>
          <td class="paramname"> <em>visible_window</em> = <code>true</code></td>
          <td>&#160;)&#160;</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>&lt;note&gt;</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>&lt;/note&gt;</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>&#160;</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 *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</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" href="../../../glibmm-2.4/reference/html/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>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</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&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>