73
73
<tr><td class="memItemLeft" align="right" valign="top">const GtkFontChooser* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#aec8bb59f698846f0f41742b96dc2df14">gobj</a> () const </td></tr>
74
74
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aec8bb59f698846f0f41742b96dc2df14"></a><br/></td></tr>
75
75
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a64362a3f656863f6942078ae7f468a68">get_font_family</a> ()</td></tr>
76
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family. <a href="#a64362a3f656863f6942078ae7f468a68"></a><br/></td></tr>
76
77
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <br class="typebreak"/>
77
78
<a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a4a4f6226ba15f2f045098cd6efbe6518">get_font_family</a> () const </td></tr>
79
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family. <a href="#a4a4f6226ba15f2f045098cd6efbe6518"></a><br/></td></tr>
78
80
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a991504864d434bd410fb99aa0dd6127f">get_font_face</a> ()</td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details (i.e. family, slant, weight, width, etc). <a href="#a991504864d434bd410fb99aa0dd6127f"></a><br/></td></tr>
79
82
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <br class="typebreak"/>
80
83
<a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a8290fc43b12ba461f46e6464755b742d">get_font_face</a> () const </td></tr>
84
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details (i.e. family, slant, weight, width, etc). <a href="#a8290fc43b12ba461f46e6464755b742d"></a><br/></td></tr>
81
85
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#af18d91692a0fc4c8eaa27694aac04c7d">get_font_size</a> () const </td></tr>
86
<tr><td class="mdescLeft"> </td><td class="mdescRight">The selected font size. <a href="#af18d91692a0fc4c8eaa27694aac04c7d"></a><br/></td></tr>
82
87
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontDescription.html">Pango::FontDescription</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a7d72c92508a7880d0b68fc6bebb35b5c">get_font_desc</a> () const </td></tr>
88
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the currently-selected font. <a href="#a7d72c92508a7880d0b68fc6bebb35b5c"></a><br/></td></tr>
83
89
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a98b062d4948f505ba4f7778bad7d6884">set_font_desc</a> (const <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontDescription.html">Pango::FontDescription</a>& font_desc)</td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the currently-selected font from <em>font_desc</em>. <a href="#a98b062d4948f505ba4f7778bad7d6884"></a><br/></td></tr>
84
91
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a27f5de411b689a171ca9796ed6352e65">get_font</a> () const </td></tr>
92
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the currently-selected font name. <a href="#a27f5de411b689a171ca9796ed6352e65"></a><br/></td></tr>
85
93
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#ad7e75f7b133e9c981d25a21cb4418b8e">set_font</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& font)</td></tr>
94
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the currently-selected font. <a href="#ad7e75f7b133e9c981d25a21cb4418b8e"></a><br/></td></tr>
86
95
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a2373686645c05ffc9bfccc73833c3681">get_preview_text</a> () const </td></tr>
96
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the text displayed in the preview area. <a href="#a2373686645c05ffc9bfccc73833c3681"></a><br/></td></tr>
87
97
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#ab05b39f7160453dff2e905875d3753d4">set_preview_text</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& fontname)</td></tr>
98
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the text displayed in the preview area. <a href="#ab05b39f7160453dff2e905875d3753d4"></a><br/></td></tr>
88
99
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a0e6e1a7e14ff17196912b554a3431454">get_show_preview_entry</a> () const </td></tr>
100
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the preview entry is shown or not. <a href="#a0e6e1a7e14ff17196912b554a3431454"></a><br/></td></tr>
89
101
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#aed67ddac067b35f98484c6de4aab6bf8">set_show_preview_entry</a> (bool show_preview_entry=true)</td></tr>
102
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shows or hides the editable preview entry. <a href="#aed67ddac067b35f98484c6de4aab6bf8"></a><br/></td></tr>
90
103
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
91
104
Static Public Member Functions</h2></td></tr>
92
105
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FontChooser.html#a0656ed5bb2b8fb8f707a92adac5db5e4">add_interface</a> (GType gtype_implementer)</td></tr>
102
115
<p><a class="el" href="classGtk_1_1FontChooser.html" title="An interface implemented by widgets displaying fonts.">FontChooser</a> widgets list the available fonts, styles and sizes, allowing the user to select a font.</p>
103
116
<p>To set the font which is initially selected, use set_font_name().</p>
104
117
<p>To get the selected font use get_font_name().</p>
105
<p>To change the text which is shown in the preview area, use <a class="el" href="classGtk_1_1FontChooser.html#ab05b39f7160453dff2e905875d3753d4">set_preview_text()</a>.</p>
106
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000009">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
118
<p>To change the text which is shown in the preview area, use <a class="el" href="classGtk_1_1FontChooser.html#ab05b39f7160453dff2e905875d3753d4" title="Sets the text displayed in the preview area.">set_preview_text()</a>.</p>
119
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000012">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
107
120
</div><hr/><h2>Constructor & Destructor Documentation</h2>
108
121
<a class="anchor" id="a1d66a16b9ef581e30bdc1ad9f0935bba"></a><!-- doxytag: member="Gtk::FontChooser::~FontChooser" ref="a1d66a16b9ef581e30bdc1ad9f0935bba" args="()" -->
109
122
<div class="memitem">
154
167
<div class="memdoc">
169
<p>Gets the currently-selected font name. </p>
170
<p>Note that this can be a different string than what you set with <a class="el" href="classGtk_1_1FontChooser.html#ad7e75f7b133e9c981d25a21cb4418b8e" title="Sets the currently-selected font.">set_font()</a>, as the font chooser widget may normalize font names and thus return a string with a different structure. For example, "Helvetica Italic Bold 12" could be normalized to "Helvetica Bold Italic 12".</p>
171
<p>Use pango_font_description_equal() if you want to compare two font descriptions.</p>
172
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000020">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
173
<dl class="return"><dt><b>Returns:</b></dt><dd>A string with the name of the current font, or <code>0</code> if no font is selected. You must free this string with Glib::free(). </dd></dl>
158
177
<a class="anchor" id="a7d72c92508a7880d0b68fc6bebb35b5c"></a><!-- doxytag: member="Gtk::FontChooser::get_font_desc" ref="a7d72c92508a7880d0b68fc6bebb35b5c" args="() const " -->
170
189
<div class="memdoc">
191
<p>Gets the currently-selected font. </p>
192
<p>Note that this can be a different string than what you set with <a class="el" href="classGtk_1_1FontChooser.html#ad7e75f7b133e9c981d25a21cb4418b8e" title="Sets the currently-selected font.">set_font()</a>, as the font chooser widget may normalize font names and thus return a string with a different structure. For example, "Helvetica Italic Bold 12" could be normalized to "Helvetica Bold Italic 12".</p>
193
<p>Use pango_font_description_equal() if you want to compare two font descriptions.</p>
194
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000018">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
195
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontDescription.html">Pango::FontDescription</a> for the current font, or <code>0</code> if no font is selected. </dd></dl>
174
199
<a class="anchor" id="a991504864d434bd410fb99aa0dd6127f"></a><!-- doxytag: member="Gtk::FontChooser::get_font_face" ref="a991504864d434bd410fb99aa0dd6127f" args="()" -->
186
211
<div class="memdoc">
213
<p>Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details (i.e. family, slant, weight, width, etc). </p>
214
<p>If the selected font is not installed, returns <code>0</code>.</p>
215
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000015">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
216
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details, or <code>0</code>. The returned object is owned by <em>fontchooser</em> and must not be modified or freed. </dd></dl>
190
220
<a class="anchor" id="a8290fc43b12ba461f46e6464755b742d"></a><!-- doxytag: member="Gtk::FontChooser::get_font_face" ref="a8290fc43b12ba461f46e6464755b742d" args="() const " -->
202
232
<div class="memdoc">
234
<p>Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details (i.e. family, slant, weight, width, etc). </p>
235
<p>If the selected font is not installed, returns <code>0</code>.</p>
236
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000016">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
237
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFace.html">Pango::FontFace</a> representing the selected font group details, or <code>0</code>. The returned object is owned by <em>fontchooser</em> and must not be modified or freed. </dd></dl>
206
241
<a class="anchor" id="a64362a3f656863f6942078ae7f468a68"></a><!-- doxytag: member="Gtk::FontChooser::get_font_family" ref="a64362a3f656863f6942078ae7f468a68" args="()" -->
218
253
<div class="memdoc">
255
<p>Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family. </p>
256
<p>Font families are a collection of font faces.</p>
257
<p>If the selected font is not installed, returns <code>0</code>.</p>
258
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000013">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
259
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family, or <code>0</code>. The returned object is owned by <em>fontchooser</em> and must not be modified or freed. </dd></dl>
222
263
<a class="anchor" id="a4a4f6226ba15f2f045098cd6efbe6518"></a><!-- doxytag: member="Gtk::FontChooser::get_font_family" ref="a4a4f6226ba15f2f045098cd6efbe6518" args="() const " -->
234
275
<div class="memdoc">
277
<p>Gets the <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family. </p>
278
<p>Font families are a collection of font faces.</p>
279
<p>If the selected font is not installed, returns <code>0</code>.</p>
280
<dl class="since_3_2"><dt><b><a class="el" href="since_3_2.html#_since_3_2000014">Since gtkmm 3.2:</a></b></dt><dd></dd></dl>
281
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="pangomm-1.4.tag:http://library.gnome.org/devel/pangomm/unstable/" href="http://library.gnome.org/devel/pangomm/unstable/classPango_1_1FontFamily.html">Pango::FontFamily</a> representing the selected font family, or <code>0</code>. The returned object is owned by <em>fontchooser</em> and must not be modified or freed. </dd></dl>
238
285
<a class="anchor" id="af18d91692a0fc4c8eaa27694aac04c7d"></a><!-- doxytag: member="Gtk::FontChooser::get_font_size" ref="af18d91692a0fc4c8eaa27694aac04c7d" args="() const " -->