HeFontDialog

HeFontDialog — A dialog to allow the user to select fonts

Synopsis

                    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);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----HeFontDialog

Implemented Interfaces

HeFontDialog implements AtkImplementorIface and GtkBuildable.

Description

HeFontDialog enables the user to select a font and font attributes from a list of available fonts

Details

HeFontDialogPrivate

typedef struct _HeFontDialogPrivate HeFontDialogPrivate;


HeFontDialog

typedef struct _HeFontDialog HeFontDialog;


he_font_dialog_new ()

GtkWidget*          he_font_dialog_new                  (void);

Creates a new HeFontDialog

Returns : a new HeFontDialog

Since 2.2


he_font_dialog_get_font ()

gchar*              he_font_dialog_get_font             (HeFontDialog *fd);

fd : the HeFontDialog
Returns : a gchar* string representing the current font

Since 2.2


he_font_dialog_set_font ()

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


he_font_dialog_present ()

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.)

he_font_dialog_present_interop ()

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.

See Also

HeFontSelector, HeFontButton