448a487b1565a80040a79fd381f3134174138add
[hildon] / doc / tmpl / hildon-font-selection-dialog.sgml
1 <!-- ##### SECTION Title ##### -->
2 HildonFontSelectionDialog
3
4 <!-- ##### SECTION Short_Description ##### -->
5 A widget is used to select a font. (Selection is made by user)
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9 Font selection can be made using this widget. User can select e.g.
10 font name, size, style, etc. User can also preview his/her selection.
11
12 <informalexample>
13 <programlisting>
14
15 HildonFontSelectionDialog *hfsd = hildon_font_selection_dialog_new( NULL, NULL );
16   gtk_widget_show_all(hfsd);
17
18 response = gtk_dialog_run(GTK_DIALOG(hfsd));
19
20 if(response == -5)
21 {
22   if(list)
23   pango_attr_list_unref( list );i
24   list = hildon_font_selection_dialog_get_font(
25                                                                                         HILDON_FONT_SELECTION_DIALOG(hfsd) );
26   gtk_label_set_attributes( GTK_LABEL(label), list );
27 }
28 gtk_widget_destroy(hfsd);
29
30 </programlisting>
31 </informalexample>
32
33 </para>
34
35 <!-- ##### SECTION See_Also ##### -->
36 <para>
37
38 </para>
39
40 <!-- ##### ENUM HildonPositioning ##### -->
41 <para>
42
43 </para>
44
45 @HILDON_POSITIONING_NORMAL: 
46 @HILDON_POSITIONING_SUPER: 
47 @HILDON_POSITIONING_SUB: 
48
49 <!-- ##### ENUM HildonFontFaceType ##### -->
50 <para>
51
52 </para>
53
54 @HILDON_FONT_FACE_NORMAL: 
55 @HILDON_FONT_FACE_ITALIC: 
56 @HILDON_FONT_FACE_BOLD: 
57 @HILDON_FONT_FACE_BOLD_ITALIC: 
58
59 <!-- ##### STRUCT HildonFontSelectionDialog ##### -->
60 <para>
61
62 </para>
63
64
65 <!-- ##### FUNCTION hildon_font_selection_dialog_new ##### -->
66 <para>
67
68 </para>
69
70 @parent: 
71 @title: 
72 @Returns: 
73
74
75 <!-- ##### FUNCTION hildon_font_selection_dialog_set_font ##### -->
76 <para>
77
78 </para>
79
80 @fsd: 
81 @list: 
82
83
84 <!-- ##### FUNCTION hildon_font_selection_dialog_get_preview_text ##### -->
85 <para>
86
87 </para>
88
89 @fsd: 
90 @Returns: 
91
92
93 <!-- ##### FUNCTION hildon_font_selection_dialog_set_preview_text ##### -->
94 <para>
95
96 </para>
97
98 @fsd: 
99 @text: 
100
101