45
45
#include <gtk/gtk.h>
47
47
<a class="link" href="GtkFontSelectionDialog.html#GtkFontSelectionDialog-struct" title="GtkFontSelectionDialog">GtkFontSelectionDialog</a>;
48
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-new" title="gtk_font_selection_dialog_new ()">gtk_font_selection_dialog_new</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
49
<a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>* <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font" title="gtk_font_selection_dialog_get_font ()">gtk_font_selection_dialog_get_font</a> (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
50
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()">gtk_font_selection_dialog_get_font_name</a>
48
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-new" title="gtk_font_selection_dialog_new ()">gtk_font_selection_dialog_new</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
49
<a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>* <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font" title="gtk_font_selection_dialog_get_font ()">gtk_font_selection_dialog_get_font</a> (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
50
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()">gtk_font_selection_dialog_get_font_name</a>
51
51
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
52
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-font-name" title="gtk_font_selection_dialog_set_font_name ()">gtk_font_selection_dialog_set_font_name</a>
52
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-font-name" title="gtk_font_selection_dialog_set_font_name ()">gtk_font_selection_dialog_set_font_name</a>
53
53
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
54
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);
55
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-preview-text" title="gtk_font_selection_dialog_get_preview_text ()">gtk_font_selection_dialog_get_preview_text</a>
54
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);
55
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-preview-text" title="gtk_font_selection_dialog_get_preview_text ()">gtk_font_selection_dialog_get_preview_text</a>
56
56
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
57
57
<span class="returnvalue">void</span> <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-preview-text" title="gtk_font_selection_dialog_set_preview_text ()">gtk_font_selection_dialog_set_preview_text</a>
58
58
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
59
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
59
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
60
60
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-apply-button" title="gtk_font_selection_dialog_get_apply_button ()">gtk_font_selection_dialog_get_apply_button</a>
61
61
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
62
62
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-cancel-button" title="gtk_font_selection_dialog_get_cancel_button ()">gtk_font_selection_dialog_get_cancel_button</a>
68
68
<div class="refsect1" title="Object Hierarchy">
69
69
<a name="GtkFontSelectionDialog.object-hierarchy"></a><h2>Object Hierarchy</h2>
70
70
<pre class="synopsis">
71
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
72
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
71
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
72
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
73
73
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
74
74
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
75
75
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
126
126
<div class="refsect2" title="gtk_font_selection_dialog_new ()">
127
127
<a name="gtk-font-selection-dialog-new"></a><h3>gtk_font_selection_dialog_new ()</h3>
128
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_font_selection_dialog_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
128
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_font_selection_dialog_new (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
130
130
Creates a new <a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a>.
149
149
<div class="refsect2" title="gtk_font_selection_dialog_get_font ()">
150
150
<a name="gtk-font-selection-dialog-get-font"></a><h3>gtk_font_selection_dialog_get_font ()</h3>
151
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>* gtk_font_selection_dialog_get_font (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
151
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>* gtk_font_selection_dialog_get_font (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
152
152
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
153
153
<h3 class="title">Warning</h3>
154
154
<p><code class="literal">gtk_font_selection_dialog_get_font</code> has been deprecated since version 2.0 and should not be used in newly-written code. Use <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()"><code class="function">gtk_font_selection_dialog_get_font_name()</code></a> instead.</p>
168
168
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
169
<td> the <a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a> from the <a class="link" href="GtkFontSelection.html" title="GtkFontSelection"><span class="type">GtkFontSelection</span></a> for the
170
currently selected font in the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font is selected
169
<td> the <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a> from the <a class="link" href="GtkFontSelection.html" title="GtkFontSelection"><span class="type">GtkFontSelection</span></a> for the
170
currently selected font in the dialog, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font is selected
178
178
<div class="refsect2" title="gtk_font_selection_dialog_get_font_name ()">
179
179
<a name="gtk-font-selection-dialog-get-font-name"></a><h3>gtk_font_selection_dialog_get_font_name ()</h3>
180
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* gtk_font_selection_dialog_get_font_name
180
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* gtk_font_selection_dialog_get_font_name
181
181
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
183
183
Gets the currently-selected font name.
202
202
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
203
<td> A string with the name of the current font, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
204
font is selected. You must free this string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
203
<td> A string with the name of the current font, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
204
font is selected. You must free this string with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
211
211
<div class="refsect2" title="gtk_font_selection_dialog_set_font_name ()">
212
212
<a name="gtk-font-selection-dialog-set-font-name"></a><h3>gtk_font_selection_dialog_set_font_name ()</h3>
213
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_font_selection_dialog_set_font_name
213
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_font_selection_dialog_set_font_name
214
214
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
215
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);</pre>
215
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);</pre>
217
217
Sets the currently selected font.
233
233
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
234
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the font selected in <em class="parameter"><code>fsd</code></em> is now the
235
<em class="parameter"><code>fontname</code></em> specified, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
234
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the font selected in <em class="parameter"><code>fsd</code></em> is now the
235
<em class="parameter"><code>fontname</code></em> specified, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.
242
242
<div class="refsect2" title="gtk_font_selection_dialog_get_preview_text ()">
243
243
<a name="gtk-font-selection-dialog-get-preview-text"></a><h3>gtk_font_selection_dialog_get_preview_text ()</h3>
244
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_font_selection_dialog_get_preview_text
244
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_font_selection_dialog_get_preview_text
245
245
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
247
247
Gets the text displayed in the preview area.
269
269
<a name="gtk-font-selection-dialog-set-preview-text"></a><h3>gtk_font_selection_dialog_set_preview_text ()</h3>
270
270
<pre class="programlisting"><span class="returnvalue">void</span> gtk_font_selection_dialog_set_preview_text
271
271
(<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
272
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
272
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
274
274
Sets the text displayed in the preview area.