gtklist.html

来自「最新gtk中文资料集」· HTML 代码 · 共 1,239 行 · 第 1/4 页

HTML
1,239
字号
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550662"></a><h3><a name="gtk-list-child-position"></a>gtk_list_child_position ()</h3><a class="indexterm" name="id4550678"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_list_child_position             (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_child_position</code> is deprecated and should not be used in newly-written code.</p></div><p>Searches the children of <em class="parameter"><code>list</code></em> for the index of <em class="parameter"><code>child</code></em>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td><td>the child to look for.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>the index of the child, -1 if not found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550782"></a><h3><a name="gtk-list-set-selection-mode"></a>gtk_list_set_selection_mode ()</h3><a class="indexterm" name="id4550798"></a><pre class="programlisting">void                gtk_list_set_selection_mode         (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkSelectionMode">GtkSelectionMode</a> mode);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_set_selection_mode</code> is deprecated and should not be used in newly-written code.</p></div><p>Set the list selection mode. The selection mode can be any value in<span class="type">""</span></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-SINGLE:CAPS"><span class="type">GTK_SELECTION_SINGLE</span></a></span></p></td><td><p>Zero or one element may be selected.</p></td></tr><tr><td><p><span class="term"><a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-BROWSE:CAPS"><span class="type">GTK_SELECTION_BROWSE</span></a></span></p></td><td><p>Exactly one element is always selected (this can be false after you havechanged the selection mode).</p></td></tr><tr><td><p><span class="term"><a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-MULTIPLE:CAPS"><span class="type">GTK_SELECTION_MULTIPLE</span></a></span></p></td><td><p>Any number of elements may be selected. Clicks toggle the state of anitem.</p></td></tr><tr><td><p><span class="term"><a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-EXTENDED:CAPS"><span class="type">GTK_SELECTION_EXTENDED</span></a></span></p></td><td><p>Any number of elements may be selected. Click-drag selects a range ofelements; the Ctrl key may be used to enlarge the selection, andShift key to select between the focus and the child pointed to.</p></td></tr></tbody></table></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>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mode</code></em>&#160;:</span></p></td><td>the new selection mode.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550970"></a><h3><a name="gtk-list-extend-selection"></a>gtk_list_extend_selection ()</h3><a class="indexterm" name="id4550986"></a><pre class="programlisting">void                gtk_list_extend_selection           (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> scroll_type,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> position,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> auto_start_selection);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_extend_selection</code> is deprecated and should not be used in newly-written code.</p></div><p>Extends the selection by moving the anchor according to <em class="parameter"><code>scroll_type</code></em>. Onlyin <a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-EXTENDED:CAPS"><span class="type">GTK_SELECTION_EXTENDED</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>scroll_type</code></em>&#160;:</span></p></td><td>the direction and length.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td><td>the position if <em class="parameter"><code>scroll_type</code></em> is <span class="type">GTK_SCROLL_JUMP</span>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>auto_start_selection</code></em>&#160;:</span></p></td><td>if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <a class="link" href="GtkList.html#gtk-list-start-selection"><code class="function">gtk_list_start_selection()</code></a> is automaticallycarried out before extending the selection.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551165"></a><h3><a name="gtk-list-start-selection"></a>gtk_list_start_selection ()</h3><a class="indexterm" name="id4551180"></a><pre class="programlisting">void                gtk_list_start_selection            (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_start_selection</code> is deprecated and should not be used in newly-written code.</p></div><p>Starts a selection (or part of selection) at the focused child. Only in<a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-EXTENDED:CAPS"><span class="type">GTK_SELECTION_EXTENDED</span></a> mode.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551250"></a><h3><a name="gtk-list-end-selection"></a>gtk_list_end_selection ()</h3><a class="indexterm" name="id4551265"></a><pre class="programlisting">void                gtk_list_end_selection              (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_end_selection</code> is deprecated and should not be used in newly-written code.</p></div><p>Ends the selection. Used with <a class="link" href="GtkList.html#gtk-list-extend-selection"><code class="function">gtk_list_extend_selection()</code></a> and<a class="link" href="GtkList.html#gtk-list-start-selection"><code class="function">gtk_list_start_selection()</code></a>. Only in <a class="link" href="gtk-Standard-Enumerations.html#GTK-SELECTION-EXTENDED:CAPS"><span class="type">GTK_SELECTION_EXTENDED</span></a> mode.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551356"></a><h3><a name="gtk-list-select-all"></a>gtk_list_select_all ()</h3><a class="indexterm" name="id4551372"></a><pre class="programlisting">void                gtk_list_select_all                 (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_select_all</code> is deprecated and should not be used in newly-written code.</p></div><p>Selects all children of <em class="parameter"><code>list</code></em>. A signal will be emitted for eachnewly selected child.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551438"></a><h3><a name="gtk-list-unselect-all"></a>gtk_list_unselect_all ()</h3><a class="indexterm" name="id4551453"></a><pre class="programlisting">void                gtk_list_unselect_all               (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_unselect_all</code> is deprecated and should not be used in newly-written code.</p></div><p>Unselects all children of <em class="parameter"><code>list</code></em>. A signal will be emitted for eachnewly unselected child.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551520"></a><h3><a name="gtk-list-scroll-horizontal"></a>gtk_list_scroll_horizontal ()</h3><a class="indexterm" name="id4551536"></a><pre class="programlisting">void                gtk_list_scroll_horizontal          (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> scroll_type,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> position);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_scroll_horizontal</code> is deprecated and should not be used in newly-written code.</p></div><p>Scrolls <em class="parameter"><code>list</code></em> horizontaly. This supposes that the list is packed into ascrolled window or something similar, and adjustments are wellset. Step and page increment are those from the horizontal adjustmentof <em class="parameter"><code>list</code></em>. Backward means to the left, and forward to theright. Out of bounds values are truncated.<em class="parameter"><code>scroll_type</code></em> may be any valid <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType"><span class="type">GtkScrollType</span></a>. If <em class="parameter"><code>scroll_type</code></em> is<span class="type">GTK_SCROLL_NONE</span>, nothing is done. If it's <span class="type">GTK_SCROLL_JUMP</span>, the listscrolls to the ratio <em class="parameter"><code>position</code></em>: 0 is full left, 1 is full right.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>scroll_type</code></em>&#160;:</span></p></td><td>the scrolling type.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td><td>the position if <em class="parameter"><code>scroll_type</code></em> is <span class="type">GTK_SCROLL_JUMP</span></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4551717"></a><h3><a name="gtk-list-scroll-vertical"></a>gtk_list_scroll_vertical ()</h3><a class="indexterm" name="id4551732"></a><pre class="programlisting">void                gtk_list_scroll_vertical            (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> scroll_type,

⌨️ 快捷键说明

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