📄 gtkpaned.html
字号:
<div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td><td>a paned widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child to add</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288214"></a><h3><a name="gtk-paned-gutter-size"></a>gtk_paned_gutter_size()</h3><a class="indexterm" name="id4288229"></a><pre class="programlisting">#define gtk_paned_gutter_size(p,s) (void) 0</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_paned_gutter_size</code> is deprecated and should not be used in newly-written code.</p></div><p>Old name for <a class="link" href="GtkPaned.html#gtk-paned-set-gutter-size"><code class="function">gtk_paned_set_gutter_size()</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>p</code></em> :</span></p></td><td>a paned widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td><td>the width of the gutter in pixels</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288301"></a><h3><a name="gtk-paned-pack1"></a>gtk_paned_pack1 ()</h3><a class="indexterm" name="id4288314"></a><pre class="programlisting">void gtk_paned_pack1 (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> resize, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> shrink);</pre><p>Adds a child to the top or left pane.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td><td>a paned widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child to add</td></tr><tr><td><p><span class="term"><em class="parameter"><code>resize</code></em> :</span></p></td><td>should this child expand when the paned widget is resized.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>shrink</code></em> :</span></p></td><td>can this child be made smaller than its requisition.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288428"></a><h3><a name="gtk-paned-pack2"></a>gtk_paned_pack2 ()</h3><a class="indexterm" name="id4288440"></a><pre class="programlisting">void gtk_paned_pack2 (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> resize, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> shrink);</pre><p>Adds a child to the bottom or right pane.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>paned</code></em> :</span></p></td><td>a paned widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child to add</td></tr><tr><td><p><span class="term"><em class="parameter"><code>resize</code></em> :</span></p></td><td>should this child expand when the paned widget is resized.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>shrink</code></em> :</span></p></td><td>can this child be made smaller than its requisition.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288554"></a><h3><a name="gtk-paned-get-child1"></a>gtk_paned_get_child1 ()</h3><a class="indexterm" name="id4288570"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_paned_get_child1 (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre><p>Obtains the first child of the paned widget.</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>paned</code></em> :</span></p></td><td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> first child, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if it is not set.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4288656"></a><h3><a name="gtk-paned-get-child2"></a>gtk_paned_get_child2 ()</h3><a class="indexterm" name="id4288671"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_paned_get_child2 (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre><p>Obtains the second child of the paned widget.</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>paned</code></em> :</span></p></td><td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> second child, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if it is not set.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4288757"></a><h3><a name="gtk-paned-set-gutter-size"></a>gtk_paned_set_gutter_size()</h3><a class="indexterm" name="id4288773"></a><pre class="programlisting">#define gtk_paned_set_gutter_size(p,s) (void) 0</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_paned_set_gutter_size</code> is deprecated and should not be used in newly-written code.</p></div><p>In older versions of GTK+, this function used to set the width of the gutter (the area between the two panes). It does nothing now.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td><td>a paned widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td><td>the width of the gutter in pixels</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288836"></a><h3><a name="gtk-paned-set-position"></a>gtk_paned_set_position ()</h3><a class="indexterm" name="id4288849"></a><pre class="programlisting">void gtk_paned_set_position (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> position);</pre><p>Sets the position of the divider between the two panes.</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>paned</code></em> :</span></p></td><td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td><td> pixel position of divider, a negative value means that the position is unset.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4288931"></a><h3><a name="gtk-paned-get-position"></a>gtk_paned_get_position ()</h3><a class="indexterm" name="id4288944"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_paned_get_position (<a class="link" href="GtkPaned.html" title="GtkPaned">GtkPaned</a> *paned);</pre><p>Obtains the position of the divider between the two panes.</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>paned</code></em> :</span></p></td><td> a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> position of the divider</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4289014"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4289025"></a><h3><a name="GtkPaned--max-position"></a>The <code class="literal">"max-position"</code> property</h3><a class="indexterm" name="id4289041"></a><pre class="programlisting"> "max-position" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read</pre><p>The largest possible value for the position property. This property is derived from thesize and shrinkability of the widget's children.</p><p></p><p>Allowed values: >= 0</p><p>Default value: 2147483647</p><p>Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4289082"></a><h3><a name="GtkPaned--min-position"></a>The <code class="literal">"min-position"</code> property</h3><a class="indexterm" name="id4289099"></a><pre class="programlisting"> "min-position" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read</pre><p>The smallest possible value for the position property. This property is derived from thesize and shrinkability of the widget's children.</p><p></p><p>Allowed values: >= 0</p><p>Default value: 0</p><p>Since 2.4</p></div><hr><div class="refsect2" lang="en">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -