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

📄 gtkhandlebox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</div><hr><div class="refsect2" lang="en"><a name="id4223053"></a><h3><a name="gtk-handle-box-set-handle-position"></a>gtk_handle_box_set_handle_position ()</h3><a class="indexterm" name="id4223068"></a><pre class="programlisting">void                gtk_handle_box_set_handle_position  (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handle_box,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a> position);</pre><p>Sets the side of the handlebox where the handle is drawn.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>handle_box</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td><td>the side of the handlebox where the handle should be drawn.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4223146"></a><h3><a name="gtk-handle-box-set-snap-edge"></a>gtk_handle_box_set_snap_edge ()</h3><a class="indexterm" name="id4223160"></a><pre class="programlisting">void                gtk_handle_box_set_snap_edge        (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handle_box,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a> edge);</pre><p>Sets the snap edge of a handlebox. The snap edge isthe edge of the detached child that must be alignedwith the corresponding edge of the "ghost" leftbehind when the child was detached to reattachthe torn-off window. Usually, the snap edge shouldbe chosen so that it stays in the same place onthe screen when the handlebox is torn off.</p><p>If the snap edge is not set, then an appropriate valuewill be guessed from the handle position. If thehandle position is <a class="link" href="gtk-Standard-Enumerations.html#GTK-POS-RIGHT:CAPS"><code class="literal">GTK_POS_RIGHT</code></a> or <a class="link" href="gtk-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a>,then the snap edge will be <a class="link" href="gtk-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a>, otherwiseit will be <a class="link" href="gtk-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>handle_box</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>edge</code></em>&#160;:</span></p></td><td>the snap edge, or -1 to unset the value; in whichcase GTK+ will try to guess an appropriate valuein the future.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4223296"></a><h3><a name="gtk-handle-box-get-handle-position"></a>gtk_handle_box_get_handle_position ()</h3><a class="indexterm" name="id4223310"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a>     gtk_handle_box_get_handle_position  (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handle_box);</pre><p>Gets the handle position of the handle box. See<a class="link" href="GtkHandleBox.html#gtk-handle-box-set-handle-position"><code class="function">gtk_handle_box_set_handle_position()</code></a>.</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>handle_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the current handle position.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4223391"></a><h3><a name="gtk-handle-box-get-shadow-type"></a>gtk_handle_box_get_shadow_type ()</h3><a class="indexterm" name="id4223405"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a>       gtk_handle_box_get_shadow_type      (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handle_box);</pre><p>Gets the type of shadow drawn around the handle box. See<a class="link" href="GtkHandleBox.html#gtk-handle-box-set-shadow-type"><code class="function">gtk_handle_box_set_shadow_type()</code></a>.</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>handle_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the type of shadow currently drawn around the handle box.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4223487"></a><h3><a name="gtk-handle-box-get-snap-edge"></a>gtk_handle_box_get_snap_edge ()</h3><a class="indexterm" name="id4223501"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a>     gtk_handle_box_get_snap_edge        (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handle_box);</pre><p>Gets the edge used for determining reattachment of the handle box. See<a class="link" href="GtkHandleBox.html#gtk-handle-box-set-snap-edge"><code class="function">gtk_handle_box_set_snap_edge()</code></a>.</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>handle_box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the edge used for determining reattachment, or (GtkPositionType)-1 if this              is determined (as per default) from the handle position. </td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4223585"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4223596"></a><h3><a name="GtkHandleBox--handle-position"></a>The <code class="literal">"handle-position"</code> property</h3><a class="indexterm" name="id4223613"></a><pre class="programlisting">  "handle-position"          <a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a>       : Read / Write</pre><p>Position of the handle relative to the child widget.</p><p>Default value: GTK_POS_LEFT</p></div><hr><div class="refsect2" lang="en"><a name="id4223641"></a><h3><a name="GtkHandleBox--shadow"></a>The <code class="literal">"shadow"</code> property</h3><a class="indexterm" name="id4223657"></a><pre class="programlisting">  "shadow"                   <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a>         : Read / Write</pre><p>Deprecated property, use shadow_type instead.</p><p>Default value: GTK_SHADOW_ETCHED_OUT</p></div><hr><div class="refsect2" lang="en"><a name="id4223686"></a><h3><a name="GtkHandleBox--shadow-type"></a>The <code class="literal">"shadow-type"</code> property</h3><a class="indexterm" name="id4223702"></a><pre class="programlisting">  "shadow-type"              <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a>         : Read / Write</pre><p>Appearance of the shadow that surrounds the container.</p><p>Default value: GTK_SHADOW_ETCHED_OUT</p></div><hr><div class="refsect2" lang="en"><a name="id4223730"></a><h3><a name="GtkHandleBox--snap-edge"></a>The <code class="literal">"snap-edge"</code> property</h3><a class="indexterm" name="id4223746"></a><pre class="programlisting">  "snap-edge"                <a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType">GtkPositionType</a>       : Read / Write</pre><p>Side of the handlebox that's lined up with the docking point to dock the handlebox.</p><p>Default value: GTK_POS_TOP</p></div><hr><div class="refsect2" lang="en"><a name="id4223774"></a><h3><a name="GtkHandleBox--snap-edge-set"></a>The <code class="literal">"snap-edge-set"</code> property</h3><a class="indexterm" name="id4223791"></a><pre class="programlisting">  "snap-edge-set"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether to use the value from the snap_edge property or a value derived from handle_position.</p><p>Default value: FALSE</p></div></div><div class="refsect1" lang="en"><a name="id4223820"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id4223830"></a><h3><a name="GtkHandleBox-child-attached"></a>The <code class="literal">"child-attached"</code> signal</h3><a class="indexterm" name="id4223847"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handlebox,                                                        <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>    *widget,                                                        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a>      user_data)      : Run First</pre><p>This signal is emitted when the contents of thehandlebox are reattached to the main window.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>handlebox</code></em>&#160;:</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>the child widget of the handlebox.         (this argument provides no extra information          and is here only for backwards-compatibility)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4223942"></a><h3><a name="GtkHandleBox-child-detached"></a>The <code class="literal">"child-detached"</code> signal</h3><a class="indexterm" name="id4223958"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GtkHandleBox.html" title="GtkHandleBox">GtkHandleBox</a> *handlebox,                                                        <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>    *widget,                                                        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a>      user_data)      : Run First</pre><p>This signal is emitted when the contents of thehandlebox are detached from the main window.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>handlebox</code></em>&#160;:</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>the child widget of the handlebox.          (this argument provides no extra information          and is here only for backwards-compatibility)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4224055"></a><div class="refsect2" lang="en"><a name="id4224056"></a></div><hr><div class="refsect2" lang="en"><a name="id4224058"></a></div></div></div></body></html>

⌨️ 快捷键说明

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