| hildon-extras Reference Manual | ||||
|---|---|---|---|---|
HeFontDialogPrivate;
HeFontDialog;
GtkWidget* he_font_dialog_new (void);
gchar* he_font_dialog_get_font (HeFontDialog *fd);
void he_font_dialog_set_font (HeFontDialog *fd,
gchar *font_string);
gchar* he_font_dialog_present (GtkWindow *parent,
gchar *default_font,
gchar *title);
gchar* he_font_dialog_present_interop (GdkNativeWindow parent_winid,
gchar *default_font,
gchar *title);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkWindow
+----GtkDialog
+----HeFontDialog
HeFontDialog enables the user to select a font and font attributes from a list of available fonts
GtkWidget* he_font_dialog_new (void);
Creates a new HeFontDialog
| Returns : | a new HeFontDialog |
Since 2.2
gchar* he_font_dialog_get_font (HeFontDialog *fd);
fd : |
the HeFontDialog |
| Returns : | a gchar* string representing the current font |
Since 2.2
void he_font_dialog_set_font (HeFontDialog *fd, gchar *font_string);
Sets the current font on the HeFontDialog widget
fd : |
the HeFontDialog |
font_string : |
the font to set |
Since 2.2
gchar* he_font_dialog_present (GtkWindow *parent, gchar *default_font, gchar *title);
Presents the user with a HeFontDialog.
parent : |
Optional. The parent window of the dialog, or NULL
|
default_font : |
Optional. The default selected font of the dialog, or NULL
|
title : |
Optional. The title of the dialog. (If not specified, the default is used.) |
| Returns : | A gchar* representing the selected font of the dialog, or a copy of default_font, if the dialog is cancelled.
(Or NULL, if it is NULL.)
|
gchar* he_font_dialog_present_interop (GdkNativeWindow parent_winid, gchar *default_font, gchar *title);
Presents the user with a HeFontDialog, allowing for a native parent window to be set.
parent_winid : |
The parent native window of the dialog. |
default_font : |
Optional. The default selected font of the dialog, or NULL
|
title : |
Optional. The title of the dialog. (If not specified, the default is used.) |
| Returns : | A gchar* representing the selected font of the dialog. |