Details
enum GnomeFontPickerMode
typedef enum {
GNOME_FONT_PICKER_MODE_PIXMAP,
GNOME_FONT_PICKER_MODE_FONT_INFO,
GNOME_FONT_PICKER_MODE_USER_WIDGET,
GNOME_FONT_PICKER_MODE_UNKNOWN
} GnomeFontPickerMode; |
gnome_font_picker_new ()
GtkWidget* gnome_font_picker_new (void); |
Create new font picker widget.
gnome_font_picker_set_title ()
void gnome_font_picker_set_title (GnomeFontPicker *gfp,
const gchar *title); |
Sets the title for the font selection dialog.
gnome_font_picker_get_mode ()
Returns current font picker button mode (or what to show). Possible
values include GNOME_FONT_PICKER_MODE_PIXMAP,
GNOME_FONT_PICKER_MODE_FONT_INFO, and
GNOME_FONT_PICKER_MODE_USER_WIDGET.
gnome_font_picker_set_mode ()
Set value of subsequent font picker button mode (or what to show).
gnome_font_picker_fi_set_use_font_in_label ()
void gnome_font_picker_fi_set_use_font_in_label
(GnomeFontPicker *gfp,
gboolean use_font_in_label,
gint size); |
If use_font_in_label is TRUE, font name will be written using font chosen
by user and using size passed to this function. This only applies if
current button mode is GNOME_FONT_PICKER_MODE_FONT_INFO.
gnome_font_picker_fi_set_show_size ()
void gnome_font_picker_fi_set_show_size
(GnomeFontPicker *gfp,
gboolean show_size); |
If show_size is TRUE, font size will be displayed along with font chosen
by user. This only applies if current button mode is
GNOME_FONT_PICKER_MODE_FONT_INFO.
gnome_font_picker_uw_set_widget ()
void gnome_font_picker_uw_set_widget (GnomeFontPicker *gfp,
GtkWidget *widget); |
Set the user-supplied widget as the inside of the font picker.
This only applies with GNOME_FONT_PICKER_MODE_USER_WIDGET.
gnome_font_picker_get_font_name ()
Retrieve name of font from font selection dialog.
gnome_font_picker_get_font ()
Retrieve font info from font selection dialog.
gnome_font_picker_set_font_name ()
gboolean gnome_font_picker_set_font_name (GnomeFontPicker *gfp,
const gchar *fontname); |
Set or update currently-displayed font in font picker dialog.
gnome_font_picker_get_preview_text ()
Retrieve preview text from font selection dialog if available.
gnome_font_picker_set_preview_text ()
void gnome_font_picker_set_preview_text
(GnomeFontPicker *gfp,
const gchar *text); |
Set preview text in font picker, and in font selection dialog if one
is being displayed.