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 *button);
void                he_font_button_set_font             (HeFontButton *button,
                                                         const gchar *font_string);
gboolean            he_font_button_get_popup_shown      (HeFontButton *button);
void                he_font_button_popdown              (HeFontButton *button);

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 :
Returns : a new HeFontButton

Since 2.2


he_font_button_get_font ()

gchar*              he_font_button_get_font             (HeFontButton *button);

returns: a gchar* string representing the font

button :
Returns :

Since 2.2


he_font_button_set_font ()

void                he_font_button_set_font             (HeFontButton *button,
                                                         const gchar *font_string);

Sets the current font on the HeFontButton widget

button :
font_string :

Since 2.2


he_font_button_get_popup_shown ()

gboolean            he_font_button_get_popup_shown      (HeFontButton *button);

button :
Returns :

he_font_button_popdown ()

void                he_font_button_popdown              (HeFontButton *button);

If the font dialog is currently popped-up (visible) it will be popped-down (hidden).

button :

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