⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkeventbox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p>The default is to keep the window below the child.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>event_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>above_child</code></em>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event box window is above the windows of its child</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4220590"></a><h3><a name="gtk-event-box-get-above-child"></a>gtk_event_box_get_above_child ()</h3><a class="indexterm" name="id4220606"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_event_box_get_above_child       (<a class="link" href="GtkEventBox.html" title="GtkEventBox">GtkEventBox</a> *event_box);</pre><p>Returns whether the event box window is above or below thewindows of its child. See <a class="link" href="GtkEventBox.html#gtk-event-box-set-above-child"><code class="function">gtk_event_box_set_above_child()</code></a> fordetails.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>event_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event box window is above the windowof its child.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4220704"></a><h3><a name="gtk-event-box-set-visible-window"></a>gtk_event_box_set_visible_window ()</h3><a class="indexterm" name="id4220720"></a><pre class="programlisting">void                gtk_event_box_set_visible_window    (<a class="link" href="GtkEventBox.html" title="GtkEventBox">GtkEventBox</a> *event_box,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> visible_window);</pre><p>Set whether the event box uses a visible or invisible childwindow. The default is to use visible windows.</p><p>In an invisible window event box, the window that theevent box creates is a <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GDK-INPUT-ONLY:CAPS"><code class="literal">GDK_INPUT_ONLY</code></a> window, which means that it is invisible and only serves to receiveevents.</p><p>A visible window event box creates a visible (<ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GDK-INPUT-OUTPUT:CAPS"><code class="literal">GDK_INPUT_OUTPUT</code></a>)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 ifyou just want to trap events. Creating a visible windowmay cause artifacts that are visible to the user, especiallyif the user is using a theme with gradients or pixmaps.</p><p>The main reason to create a non input-only event box is ifyou want to set the background to a different color ordraw on it.</p><p></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There is one unexpected issue for an invisible event box that has itswindow below the child. (See <a class="link" href="GtkEventBox.html#gtk-event-box-set-above-child"><code class="function">gtk_event_box_set_above_child()</code></a>.)Since the input-only window is not an ancestor window of any windowsthat 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 eventmask for the descendant window (see <a class="link" href="GtkWidget.html#gtk-widget-add-events"><code class="function">gtk_widget_add_events()</code></a>),  it won't be received by the event box. </p><p>This problem doesn't occur for visible event boxes, because inthat case, the event box window is actually the ancestor of thedescendant windows, not just at the same place on the screen.</p></div><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>event_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>visible_window</code></em>&#160;:</span></p></td><td> boolean value</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4220899"></a><h3><a name="gtk-event-box-get-visible-window"></a>gtk_event_box_get_visible_window ()</h3><a class="indexterm" name="id4220915"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_event_box_get_visible_window    (<a class="link" href="GtkEventBox.html" title="GtkEventBox">GtkEventBox</a> *event_box);</pre><p>Returns whether the event box has a visible window.See <a class="link" href="GtkEventBox.html#gtk-event-box-set-visible-window"><code class="function">gtk_event_box_set_visible_window()</code></a> for details.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>event_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event box window is visible</td></tr></tbody></table></div><p class="since">Since  2.4</p></div></div><div class="refsect1" lang="en"><a name="id4221013"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4221024"></a><h3><a name="GtkEventBox--above-child"></a>The <code class="literal">"above-child"</code> property</h3><a class="indexterm" name="id4221041"></a><pre class="programlisting">  "above-child"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id4221069"></a><h3><a name="GtkEventBox--visible-window"></a>The <code class="literal">"visible-window"</code> property</h3><a class="indexterm" name="id4221085"></a><pre class="programlisting">  "visible-window"           <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the event box is visible, as opposed to invisible and only used to trap events.</p><p>Default value: TRUE</p></div></div><div class="refsect1" lang="en"><a name="id4221114"></a><div class="refsect2" lang="en"><a name="id4221115"></a></div><hr><div class="refsect2" lang="en"><a name="id4221116"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -