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

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

returns: a gchar* string representing the current font

dialog :
Returns :

Since 2.2


he_font_dialog_set_font ()

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


he_font_dialog_present ()

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 :

he_font_dialog_present_interop ()

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 :

See Also

HeFontSelector, HeFontButton