File: gtkfontcombo.xml

package info (click to toggle)
gtkextra 3.3.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,580 kB
  • sloc: ansic: 60,728; xml: 28,485; sh: 4,758; makefile: 476
file content (267 lines) | stat: -rw-r--r-- 16,083 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<!--ENTITY index-Objects-Grouped SYSTEM "objects_grouped.sgml"-->
<refentry id="GtkFontCombo">
<refmeta>
<refentrytitle role="top_of_page" id="GtkFontCombo.top_of_page">GtkFontCombo</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTKEXTRA Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkFontCombo</refname>
<refpurpose>A font combo widget for GTK.</refpurpose>
</refnamediv>

<refsect1 id="GtkFontCombo.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_return" colwidth="150px"/>
<colspec colname="functions_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-font-combo-new">gtk_font_combo_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-font-combo-select">gtk_font_combo_select</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-font-combo-select-nth">gtk_font_combo_select_nth</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gint"><returnvalue>gint</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-font-combo-get-font-height">gtk_font_combo_get_font_height</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkPSFont"><returnvalue>GtkPSFont</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-font-combo-get-psfont">gtk_font_combo_get_psfont</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="PangoFontDescription"><returnvalue>PangoFontDescription</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-font-combo-get-font-description">gtk_font_combo_get_font_description</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GdkFont"><returnvalue>GdkFont</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-font-combo-get-gdkfont">gtk_font_combo_get_gdkfont</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFontCombo.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="signals_return" colwidth="150px"/>
<colspec colname="signals_name" colwidth="300px"/>
<colspec colname="signals_flags" colwidth="200px"/>
<tbody>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkFontCombo-changed">changed</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFontCombo.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="name" colwidth="150px"/>
<colspec colname="description"/>
<tbody>
<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="GtkFontCombo-struct">GtkFontCombo</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFontCombo.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkObject">GtkObject</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkWidget">GtkWidget</link>
                <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkContainer">GtkContainer</link>
                    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkToolbar">GtkToolbar</link>
                        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkFontCombo
</screen>
</refsect1>
<refsect1 id="GtkFontCombo.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkFontCombo implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link>,  <link linkend="GtkToolShell">GtkToolShell</link> and  <link linkend="GtkOrientable">GtkOrientable</link>.</para>

</refsect1>

<refsect1 id="GtkFontCombo.includes"><title>Includes</title><synopsis>#include &lt;gtkextra.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkFontCombo.description" role="desc">
<title role="desc.title">Description</title>
<para>It is a GtkToolBar subclass with two combos to select among the 35 standard Adobe PostScript fonts with different sizes. 
It has also two buttons to select bold and italics.
When you select a new font, it returns the name of the corresponding Postscript font and the equivalent Xfont. 
This is what we all expect to have on the top of a GUI for a spreadsheet or word processor.</para>

</refsect1>
<refsect1 id="GtkFontCombo.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-font-combo-new" role="function">
<title>gtk_font_combo_new&#160;()</title>
<indexterm zone="gtk-font-combo-new"><primary>gtk_font_combo_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_font_combo_new (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="gtk-font-combo-select" role="function">
<title>gtk_font_combo_select&#160;()</title>
<indexterm zone="gtk-font-combo-select"><primary>gtk_font_combo_select</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_combo_select (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>,
                       <parameter>const <link linkend="gchar"><type>gchar</type></link> *family</parameter>,
                       <parameter><link linkend="gboolean"><type>gboolean</type></link> bold</parameter>,
                       <parameter><link linkend="gboolean"><type>gboolean</type></link> italic</parameter>,
                       <parameter><link linkend="gint"><type>gint</type></link> height</parameter>);</programlisting>
<para>Select from the combo a font which satisfies the arguments.</para>
<refsect3 id="gtk-font-combo-select.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>font_combo</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> </para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>family</para></entry>
<entry role="parameter_description"><para>font family</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>bold</para></entry>
<entry role="parameter_description"><para>TRUE or FALSE</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>italic</para></entry>
<entry role="parameter_description"><para>TRUE or FALSE</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>height of the font</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-font-combo-select-nth" role="function">
<title>gtk_font_combo_select_nth&#160;()</title>
<indexterm zone="gtk-font-combo-select-nth"><primary>gtk_font_combo_select_nth</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_combo_select_nth (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>,
                           <parameter><link linkend="gint"><type>gint</type></link> n</parameter>,
                           <parameter><link linkend="gboolean"><type>gboolean</type></link> bold</parameter>,
                           <parameter><link linkend="gboolean"><type>gboolean</type></link> italic</parameter>,
                           <parameter><link linkend="gint"><type>gint</type></link> height</parameter>);</programlisting>
<para>Select from the combo the nth font which satisfies the arguments.</para>
<refsect3 id="gtk-font-combo-select-nth.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>font_combo</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> </para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>n</para></entry>
<entry role="parameter_description"><para>nth font</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>bold</para></entry>
<entry role="parameter_description"><para>TRUE or FALSE</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>italic</para></entry>
<entry role="parameter_description"><para>TRUE or FALSE</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>height of the font</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-font-combo-get-font-height" role="function">
<title>gtk_font_combo_get_font_height&#160;()</title>
<indexterm zone="gtk-font-combo-get-font-height"><primary>gtk_font_combo_get_font_height</primary></indexterm>
<programlisting language="C"><link linkend="gint"><returnvalue>gint</returnvalue></link>
gtk_font_combo_get_font_height (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>);</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="gtk-font-combo-get-psfont" role="function">
<title>gtk_font_combo_get_psfont&#160;()</title>
<indexterm zone="gtk-font-combo-get-psfont"><primary>gtk_font_combo_get_psfont</primary></indexterm>
<programlisting language="C"><link linkend="GtkPSFont"><returnvalue>GtkPSFont</returnvalue></link>&#160;*
gtk_font_combo_get_psfont (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>);</programlisting>
<refsect3 id="gtk-font-combo-get-psfont.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>font_combo</para></entry>
<entry role="parameter_description"><para>the <link linkend="GtkFontCombo"><type>GtkFontCombo</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-combo-get-psfont.returns" role="returns">
<title>Returns</title>
<para> (transfer none) the <link linkend="GtkPSFont"><type>GtkPSFont</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-font-combo-get-font-description" role="function">
<title>gtk_font_combo_get_font_description&#160;()</title>
<indexterm zone="gtk-font-combo-get-font-description"><primary>gtk_font_combo_get_font_description</primary></indexterm>
<programlisting language="C"><link linkend="PangoFontDescription"><returnvalue>PangoFontDescription</returnvalue></link>&#160;*
gtk_font_combo_get_font_description (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>);</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="gtk-font-combo-get-gdkfont" role="function">
<title>gtk_font_combo_get_gdkfont&#160;()</title>
<indexterm zone="gtk-font-combo-get-gdkfont"><primary>gtk_font_combo_get_gdkfont</primary></indexterm>
<programlisting language="C"><link linkend="GdkFont"><returnvalue>GdkFont</returnvalue></link>&#160;*
gtk_font_combo_get_gdkfont (<parameter><link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *font_combo</parameter>);</programlisting>
<para>
</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFontCombo.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkFontCombo-struct" role="struct">
<title>struct GtkFontCombo</title>
<indexterm zone="GtkFontCombo-struct"><primary>GtkFontCombo</primary></indexterm>
<programlisting language="C">struct GtkFontCombo;</programlisting>
<para>The GtkFontCombo struct contains only private data.
It should only be accessed through the functions described below.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFontCombo.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkFontCombo-changed" role="signal"><title>The <literal>“changed”</literal> signal</title>
<indexterm zone="GtkFontCombo-changed"><primary>GtkFontCombo::changed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> *bfont_combo,
               <link linkend="gpointer"><type>gpointer</type></link>      user_data)</programlisting>
<para>Emmited whenever a different font is choosed.</para>
<refsect3 id="GtkFontCombo-changed.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>bfont_combo</para></entry>
<entry role="parameter_description"><para>the <link linkend="GtkFontCombo"><type>GtkFontCombo</type></link> object that received the signal.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-RUN-LAST:CAPS">Run Last</link></para>
</refsect2>
</refsect1>

</refentry>