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

📄 gtkfontbutton.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="gtk-font-button-set-font-name"></a>gtk_font_button_set_font_name ()</h3><a class="indexterm" name="id4046191"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_font_button_set_font_name       (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *fontname);</pre><p>Sets or updates the currently-displayed font in font picker dialog.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>fontname</code></em>&#160;:</span></p></td><td> Name of font to display in font selection dialog</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> Return value of <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-font-name"><code class="function">gtk_font_selection_dialog_set_font_name()</code></a> if thefont selection dialog exists, otherwise <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046314"></a><h3><a name="gtk-font-button-get-font-name"></a>gtk_font_button_get_font_name ()</h3><a class="indexterm" name="id4046330"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_font_button_get_font_name       (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button);</pre><p>Retrieves the name of the currently selected font.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> an internal copy of the font name which must not be freed.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046408"></a><h3><a name="gtk-font-button-set-show-style"></a>gtk_font_button_set_show_style ()</h3><a class="indexterm" name="id4046424"></a><pre class="programlisting">void                gtk_font_button_set_show_style      (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_style);</pre><p>If <em class="parameter"><code>show_style</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the font style will be displayed along with name of the selected font.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>show_style</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 font style should be displayed in label.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046539"></a><h3><a name="gtk-font-button-get-show-style"></a>gtk_font_button_get_show_style ()</h3><a class="indexterm" name="id4046555"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_font_button_get_show_style      (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button);</pre><p>Returns whether the name of the font style will be shown in the label.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> whether the font style will be shown in the label.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046632"></a><h3><a name="gtk-font-button-set-show-size"></a>gtk_font_button_set_show_size ()</h3><a class="indexterm" name="id4046648"></a><pre class="programlisting">void                gtk_font_button_set_show_size       (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_size);</pre><p>If <em class="parameter"><code>show_size</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the font size will be displayed along with the name of the selected font.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>show_size</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 font size should be displayed in dialog.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046763"></a><h3><a name="gtk-font-button-get-show-size"></a>gtk_font_button_get_show_size ()</h3><a class="indexterm" name="id4046779"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_font_button_get_show_size       (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button);</pre><p>Returns whether the font size will be shown in the label.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> whether the font size will be shown in the label.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046856"></a><h3><a name="gtk-font-button-set-use-font"></a>gtk_font_button_set_use_font ()</h3><a class="indexterm" name="id4046872"></a><pre class="programlisting">void                gtk_font_button_set_use_font        (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> use_font);</pre><p>If <em class="parameter"><code>use_font</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the font name will be written using the selected font.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>use_font</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>, font name will be written using font chosen.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4046987"></a><h3><a name="gtk-font-button-get-use-font"></a>gtk_font_button_get_use_font ()</h3><a class="indexterm" name="id4047003"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_font_button_get_use_font        (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button);</pre><p>Returns whether the selected font is used in the label.</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>font_button</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkFontButton.html" title="GtkFontButton"><span class="type">GtkFontButton</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> whether the selected font is used in the label.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4047080"></a><h3><a name="gtk-font-button-set-use-size"></a>gtk_font_button_set_use_size ()</h3><a class="indexterm" name="id4047096"></a><pre class="programlisting">void                gtk_font_button_set_use_size        (<a class="link" href="GtkFontButton.html" title="GtkFontButton">GtkFontButton</a> *font_button,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> use_size);</pre><p>If <em class="parameter"><code>use_size</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the font name will be written using the selected size.</p><p>

⌨️ 快捷键说明

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