gtkradiobutton.html

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

HTML
626
字号
<td><p><span class="term"><em class="parameter"><code>group</code></em>&#160;:</span></p></td><td> the radio button group</td></tr><tr><td><p><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></p></td><td> the text of the button, with an underscore in front of the        mnemonic character</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3504202"></a><h3><a name="gtk-radio-button-new-with-mnemonic-from-widget"></a>gtk_radio_button_new_with_mnemonic_from_widget ()</h3><a class="indexterm" name="id3504216"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_radio_button_new_with_mnemonic_from_widget                                                        (<a class="link" href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_group_member,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *label);</pre><p>Creates a new <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a> containing a label. The labelwill be created using <a class="link" href="GtkLabel.html#gtk-label-new-with-mnemonic"><code class="function">gtk_label_new_with_mnemonic()</code></a>, so underscoresin <em class="parameter"><code>label</code></em> indicate the mnemonic for the button.</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>radio_group_member</code></em>&#160;:</span></p></td><td> widget to get radio group from or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></p></td><td> the text of the button, with an underscore in front of the        mnemonic character</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3504348"></a><h3><a name="gtk-radio-button-group"></a>gtk_radio_button_group</h3><a class="indexterm" name="id3504363"></a><pre class="programlisting">#define gtk_radio_button_group gtk_radio_button_get_group</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_radio_button_group</code> is deprecated and should not be used in newly-written code.</p></div><p>Deprecated compatibility macro. Use <a class="link" href="GtkRadioButton.html#gtk-radio-button-get-group"><code class="function">gtk_radio_button_get_group()</code></a> instead.</p></div><hr><div class="refsect2" lang="en"><a name="id3504404"></a><h3><a name="gtk-radio-button-set-group"></a>gtk_radio_button_set_group ()</h3><a class="indexterm" name="id3504417"></a><pre class="programlisting">void                gtk_radio_button_set_group          (<a class="link" href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList">GSList</a> *group);</pre><p>Sets a <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>'s group. It should be noted that this does not changethe layout of your interface in any way, so if you are changing the group,it is likely you will need to re-arrange the user interface to reflect thesechanges.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>radio_button</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>group</code></em>&#160;:</span></p></td><td>an existing radio button group, such as one returned from<a class="link" href="GtkRadioButton.html#gtk-radio-button-get-group"><code class="function">gtk_radio_button_get_group()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3504518"></a><h3><a name="gtk-radio-button-get-group"></a>gtk_radio_button_get_group ()</h3><a class="indexterm" name="id3504531"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList">GSList</a>*             gtk_radio_button_get_group          (<a class="link" href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *radio_button);</pre><p>Retrieves the group assigned to a radio button.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>radio_button</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a linked list containing all the radio buttons in the same groupas <em class="parameter"><code>radio_button</code></em>.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3504605"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3504616"></a><h3><a name="GtkRadioButton--group"></a>The <code class="literal">"group"</code> property</h3><a class="indexterm" name="id3504632"></a><pre class="programlisting">  "group"                    <a class="link" href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a>        : Write</pre><p>Sets a new group for a radio button.</p></div></div><div class="refsect1" lang="en"><a name="id3504657"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id3504667"></a><h3><a name="GtkRadioButton-group-changed"></a>The <code class="literal">"group-changed"</code> signal</h3><a class="indexterm" name="id3504684"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GtkRadioButton.html" title="GtkRadioButton">GtkRadioButton</a> *style,                                                        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a>        user_data)      : Run First</pre><p>Emitted when the group of radio buttons that a radio button belongsto changes. This is emitted when a radio button switches frombeing alone to being part of a group of 2 or more buttons, orvice-versa, and when a button is moved from one group of 2 ormore buttons to a different one, but not when the compositionof the group that a button belongs to changes.</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>style</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>user_data</code></em>&#160;:</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div><p>Since  2.4</p></div></div><div class="refsect1" lang="en"><a name="id3504768"></a><h2>See Also</h2><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="GtkOptionMenu.html" title="GtkOptionMenu"><span class="type">GtkOptionMenu</span></a></span></p></td><td><p>Another way of offering the user a single choice frommany.</p></td></tr></tbody></table></div><p></p></div><div class="refsect1" lang="en"><a name="id3504799"></a><div class="refsect2" lang="en"><a name="id3504800"></a></div><hr><div class="refsect2" lang="en"><a name="id3504801"></a></div></div></div></body></html>

⌨️ 快捷键说明

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