![]() |
![]() |
![]() |
hildon-extras Reference Manual | ![]() |
---|---|---|---|---|
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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----HeFontSelector
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()
.
GtkWidget* he_font_selector_new (void);
Creates a new HeFontSelector
Returns : | a new HeFontSelector |
Since 2.2
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
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
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
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
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