HeFontButton

HeFontButton — A widget to open HeFontDialog

Synopsis

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

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkButton
                                       +----HeFontButton

Implemented Interfaces

HeFontButton implements AtkImplementorIface and GtkBuildable.

Properties

  "font"                     gchar*                : Read / Write
  "popup-shown"              gboolean              : Read

Description

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

Details

HeFontButtonPrivate

typedef struct _HeFontButtonPrivate HeFontButtonPrivate;


HeFontButton

typedef struct _HeFontButton HeFontButton;


he_font_button_new ()

GtkWidget*          he_font_button_new                  (void);

Creates a new HeFontButton

Returns : a new HeFontButton

Since 2.2


he_font_button_new_with_font ()

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


he_font_button_get_font ()

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


he_font_button_set_font ()

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


he_font_button_get_popup_shown ()

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


he_font_button_popdown ()

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

Property Details

The "font" property

  "font"                     gchar*                : Read / Write

The selected font.

Default value: "Sans 18"


The "popup-shown" property

  "popup-shown"              gboolean              : Read

If the font dialog is popped up.

Default value: FALSE

See Also

HeFontSelector, HeFontDialog