![]() |
![]() |
![]() |
hildon-extras Reference Manual | ![]() |
---|---|---|---|---|
HeFontButtonHeFontButton — A widget to open HeFontDialog |
![]() |
HeFontButtonPrivate; HeFontButton; GtkWidget* he_font_button_new (void); GtkWidget* he_font_button_new_with_font (const gchar *font_string); gchar* he_font_button_get_font (HeFontButton *fb); void he_font_button_set_font (HeFontButton *fb, const gchar *font_string); gboolean he_font_button_get_popup_shown (HeFontButton *fb); void he_font_button_popdown (HeFontButton *fb);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----HeFontButton
HeFontButton is a widget to open a HeFontDialog. The selected font is shown in the button. The selected font is a property of the button. The property name is "font" and its type is gchar*.
GtkWidget* he_font_button_new (void);
Creates a new HeFontButton
Returns : | a new HeFontButton |
Since 2.2
GtkWidget* he_font_button_new_with_font (const gchar *font_string);
Creates a new HeFontButton with a specific font.
font_string : |
the font to initialize to |
Returns : | a new HeFontButton |
Since 2.2
gchar* he_font_button_get_font (HeFontButton *fb);
Retrieve the currently selected font.
fb : |
the HeFontButton |
Returns : | a gchar* string representing the font |
Since 2.2
void he_font_button_set_font (HeFontButton *fb, const gchar *font_string);
Sets the current font on the HeFontButton widget
fb : |
the HeFontButton |
font_string : |
the font to set |
Since 2.2
gboolean he_font_button_get_popup_shown (HeFontButton *fb);
This function checks if the font button has the font dialog currently popped-up
fb : |
the HeFontButton |
Returns : | TRUE if the dialog is popped-up (visible to user)
|
Since 2.2
void he_font_button_popdown (HeFontButton *fb);
If the font dialog is currently popped-up (visible) it will be popped-down (hidden).
fb : |
the HeFontButton |
Since 2.2
"popup-shown"
property"popup-shown" gboolean : Read
If the font dialog is popped up.
Default value: FALSE