1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>GimpFontSelectButton</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
9
<link rel="prev" href="GimpBrushSelectButton.html" title="GimpBrushSelectButton">
10
<link rel="next" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
<td><a accesskey="p" href="GimpBrushSelectButton.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
29
<td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
32
<td><a accesskey="n" href="GimpGradientSelectButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2558121" class="shortcut">Top</a>
36
<a href="#id2693880" class="shortcut">Description</a>
38
<a href="#id2638959" class="shortcut">Object Hierarchy</a>
40
<a href="#id2693796" class="shortcut">Implemented Interfaces</a>
42
<a href="#id2693816" class="shortcut">Properties</a>
44
<a href="#id2693857" class="shortcut">Signals</a></nobr></td></tr>
46
<div class="refentry" lang="en">
47
<a name="GimpFontSelectButton"></a><div class="titlepage"></div>
48
<div class="refnamediv"><table width="100%"><tr>
51
<a name="id2558121"></a><span class="refentrytitle">GimpFontSelectButton</span>
53
<p>GimpFontSelectButton</p>
55
<td valign="top" align="right"></td>
57
<div class="refsynopsisdiv">
59
<pre class="synopsis">
63
<a href="GimpFontSelectButton.html#GimpFontSelectButton-struct">GimpFontSelectButton</a>;
64
GtkWidget* <a href="GimpFontSelectButton.html#gimp-font-select-button-new">gimp_font_select_button_new</a> (const gchar *title,
65
const gchar *font_name);
66
const gchar* <a href="GimpFontSelectButton.html#gimp-font-select-button-get-font">gimp_font_select_button_get_font</a> (<a href="GimpFontSelectButton.html" title="GimpFontSelectButton">GimpFontSelectButton</a> *button);
67
void <a href="GimpFontSelectButton.html#gimp-font-select-button-set-font">gimp_font_select_button_set_font</a> (<a href="GimpFontSelectButton.html" title="GimpFontSelectButton">GimpFontSelectButton</a> *button,
68
const gchar *font_name);
72
<div class="refsect1" lang="en">
73
<a name="id2638959"></a><h2>Object Hierarchy</h2>
74
<pre class="synopsis">
77
+----GInitiallyUnowned
83
+----<a href="GimpSelectButton.html" title="GimpSelectButton">GimpSelectButton</a>
84
+----GimpFontSelectButton
87
<div class="refsect1" lang="en">
88
<a name="id2693796"></a><h2>Implemented Interfaces</h2>
90
GimpFontSelectButton implements
91
AtkImplementorIface.</p>
93
<div class="refsect1" lang="en">
94
<a name="id2693816"></a><h2>Properties</h2>
95
<pre class="synopsis">
97
"<a href="GimpFontSelectButton.html#GimpFontSelectButton--font-name">font-name</a>" gchararray : Read / Write
98
"<a href="GimpFontSelectButton.html#GimpFontSelectButton--title">title</a>" gchararray : Read / Write / Construct Only
101
<div class="refsect1" lang="en">
102
<a name="id2693857"></a><h2>Signals</h2>
103
<pre class="synopsis">
105
"<a href="GimpFontSelectButton.html#GimpFontSelectButton-font-set">font-set</a>" : Run First
108
<div class="refsect1" lang="en">
109
<a name="id2693880"></a><h2>Description</h2>
114
<div class="refsect1" lang="en">
115
<a name="id2671280"></a><h2>Details</h2>
116
<div class="refsect2" lang="en">
117
<a name="id2671290"></a><h3>
118
<a name="GimpFontSelectButton-struct"></a>GimpFontSelectButton</h3>
119
<a class="indexterm" name="id2671301"></a><pre class="programlisting">typedef struct _GimpFontSelectButton GimpFontSelectButton;</pre>
125
<div class="refsect2" lang="en">
126
<a name="id2671317"></a><h3>
127
<a name="gimp-font-select-button-new"></a>gimp_font_select_button_new ()</h3>
128
<a class="indexterm" name="id2671330"></a><pre class="programlisting">GtkWidget* gimp_font_select_button_new (const gchar *title,
129
const gchar *font_name);</pre>
131
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
132
a font. This widget is suitable for placement in a table in a
137
<div class="variablelist"><table border="0">
138
<col align="left" valign="top">
141
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
142
<td> Title of the dialog to use or <code class="literal">NULL</code> to use the default title.
146
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
147
<td> Initial font name.
151
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
152
<td> A <span class="type">GtkWidget</span> that you can use in your UI.
158
<p class="since">Since GIMP 2.4
162
<div class="refsect2" lang="en">
163
<a name="id2702757"></a><h3>
164
<a name="gimp-font-select-button-get-font"></a>gimp_font_select_button_get_font ()</h3>
165
<a class="indexterm" name="id2702770"></a><pre class="programlisting">const gchar* gimp_font_select_button_get_font (<a href="GimpFontSelectButton.html" title="GimpFontSelectButton">GimpFontSelectButton</a> *button);</pre>
167
Retrieves the name of currently selected font.</p>
171
<div class="variablelist"><table border="0">
172
<col align="left" valign="top">
175
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
176
<td> A <a href="GimpFontSelectButton.html" title="GimpFontSelectButton"><span class="type">GimpFontSelectButton</span></a>
180
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
181
<td> an internal copy of the font name which must not be freed.
187
<p class="since">Since GIMP 2.4
191
<div class="refsect2" lang="en">
192
<a name="id2702845"></a><h3>
193
<a name="gimp-font-select-button-set-font"></a>gimp_font_select_button_set_font ()</h3>
194
<a class="indexterm" name="id2702858"></a><pre class="programlisting">void gimp_font_select_button_set_font (<a href="GimpFontSelectButton.html" title="GimpFontSelectButton">GimpFontSelectButton</a> *button,
195
const gchar *font_name);</pre>
197
Sets the current font for the font select button.</p>
201
<div class="variablelist"><table border="0">
202
<col align="left" valign="top">
205
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
206
<td> A <a href="GimpFontSelectButton.html" title="GimpFontSelectButton"><span class="type">GimpFontSelectButton</span></a>
210
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
211
<td> Font name to set; <code class="literal">NULL</code> means no change.
216
<p class="since">Since GIMP 2.4
220
<div class="refsect1" lang="en">
221
<a name="id2702952"></a><h2>Property Details</h2>
222
<div class="refsect2" lang="en">
223
<a name="id2702962"></a><h3>
224
<a name="GimpFontSelectButton--font-name"></a>The "<code class="literal">font-name</code>" property</h3>
225
<a class="indexterm" name="id2702976"></a><pre class="programlisting"> "font-name" gchararray : Read / Write</pre>
227
The name of the currently selected font.</p>
231
<p>Default value: "Sans"</p>
236
<div class="refsect2" lang="en">
237
<a name="id2691536"></a><h3>
238
<a name="GimpFontSelectButton--title"></a>The "<code class="literal">title</code>" property</h3>
239
<a class="indexterm" name="id2691549"></a><pre class="programlisting"> "title" gchararray : Read / Write / Construct Only</pre>
241
The title to be used for the font selection popup dialog.</p>
245
<p>Default value: "Font Selection"</p>
250
<div class="refsect1" lang="en">
251
<a name="id2691586"></a><h2>Signal Details</h2>
252
<div class="refsect2" lang="en">
253
<a name="id2691596"></a><h3>
254
<a name="GimpFontSelectButton-font-set"></a>The "font-set" signal</h3>
255
<a class="indexterm" name="id2691606"></a><pre class="programlisting">void user_function (<a href="GimpFontSelectButton.html" title="GimpFontSelectButton">GimpFontSelectButton</a> *widget,
257
gboolean dialog_closing,
258
gpointer user_data) : Run First</pre>
260
The ::font-set signal is emitted when the user selects a font.</p>
264
<div class="variablelist"><table border="0">
265
<col align="left" valign="top">
268
<td><span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
269
<td> the object which received the signal.
273
<td><span class="term"><em class="parameter"><code>font_name</code></em> :</span></td>
274
<td> the name of the currently selected font.
278
<td><span class="term"><em class="parameter"><code>dialog_closing</code></em> :</span></td>
279
<td> whether the dialog was closed or not.
283
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
284
<td>user data set when the signal handler was connected.</td>