HeFontSelector

HeFontSelector — A widget to select a font.

Synopsis

                    HeFontSelectorPrivate;
                    HeFontSelector;
GtkWidget*          he_font_selector_new                (void);
GtkWidget*          he_font_selector_new_with_default_font
                                                        (gchar *default_font);
gboolean            he_font_selector_select_family      (HeFontSelector *selector,
                                                         gchar *family);
gboolean            he_font_selector_select_size        (HeFontSelector *selector,
                                                         guint size);
gboolean            he_font_selector_set_font           (HeFontSelector *selector,
                                                         gchar *font_string);
gchar*              he_font_selector_get_font           (HeFontSelector *selector);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkVBox
                                       +----HeFontSelector

Implemented Interfaces

HeFontSelector implements AtkImplementorIface and GtkBuildable.

Description

HeFontSelector is a font widget with multiple columns. Users can choose a font by selecting values in the family, style and size columns.

The currently selected family can be altered with he_font_selector_select_family(). The size can be selected with he_font_selector_select_size().

Details

HeFontSelectorPrivate

typedef struct _HeFontSelectorPrivate HeFontSelectorPrivate;


HeFontSelector

typedef struct _HeFontSelector HeFontSelector;


he_font_selector_new ()

GtkWidget*          he_font_selector_new                (void);

Creates a new HeFontSelector

Returns : a new HeFontSelector

Since 2.2


he_font_selector_new_with_default_font ()

GtkWidget*          he_font_selector_new_with_default_font
                                                        (gchar *default_font);

Creates a new HeFontSelector with a specific font.

default_font : the string representation of a font
Returns : a new HeFontSelector

Since 2.2


he_font_selector_select_family ()

gboolean            he_font_selector_select_family      (HeFontSelector *selector,
                                                         gchar *family);

Sets the current active font on the HeFontSelector widget

selector : the HeFontSelector
family : the family to select
Returns : TRUE on success, FALSE otherwise

Since 2.2


he_font_selector_select_size ()

gboolean            he_font_selector_select_size        (HeFontSelector *selector,
                                                         guint size);

Sets the current active font on the HeFontSelector widget

selector : the HeFontSelector
size : the size to select
Returns : TRUE on success, FALSE otherwise

Since 2.2


he_font_selector_set_font ()

gboolean            he_font_selector_set_font           (HeFontSelector *selector,
                                                         gchar *font_string);

Sets the current active font on the HeFontSelector widget

selector : the HeFontSelector
font_string : the font to set
Returns : TRUE

Since 2.2


he_font_selector_get_font ()

gchar*              he_font_selector_get_font           (HeFontSelector *selector);

Gets the current active date on the HildonDateSelector widget

selector : the HeFontSelector
Returns : A string of text representing the current font

Since 2.2