| hildon-extras Reference Manual | ||||
|---|---|---|---|---|
HeFontDialogPrivate;
HeFontDialog;
GtkWidget* he_font_dialog_new (void);
gchar* he_font_dialog_get_font (HeFontDialog *dialog);
void he_font_dialog_set_font (HeFontDialog *dialog,
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 *dialog);
returns: a gchar* string representing the current font
dialog : |
|
| Returns : |
Since 2.2
void he_font_dialog_set_font (HeFontDialog *dialog, gchar *font_string);
Sets the current font on the HeFontDialog widget
dialog : |
|
font_string : |
Since 2.2
gchar* he_font_dialog_present (GtkWindow *parent,
gchar *default_font,
gchar *title);
parent: Optional. The parent window of the dialog.
default_font: Optional. The default selected font of the dialog.
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.)
parent : |
|
default_font : |
|
title : |
|
| Returns : |
gchar* he_font_dialog_present_interop (GdkNativeWindow parent_winid,
gchar *default_font,
gchar *title);
parent_winid: The parent native window of the dialog.
default_font: Optional. The default selected font of the dialog.
title: Optional. The title of the dialog. (If not specified, the default is used.)
returns: A gchar* representing the selected font of the dialog.
parent_winid : |
|
default_font : |
|
title : |
|
| Returns : |