GNOME UI Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----GnomeFontPicker |
"title" gchararray : Read / Write "mode" GnomeFontPickerMode : Read / Write "font-name" gchararray : Read / Write "preview-text" gchararray : Read / Write "use-font-in-label" gboolean : Read / Write "label-font-size" gint : Read / Write "show-size" gboolean : Read / Write "font" gpointer : Read |
"font-set" void user_function (GnomeFontPicker *fontpicker, gchar *arg1, gpointer user_data); |
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; |
void gnome_font_picker_set_title (GnomeFontPicker *gfp, const gchar *title); |
Sets the title for the font selection dialog. If title is NULL, then the default is used.
const gchar* gnome_font_picker_get_title (GnomeFontPicker *gfp); |
Retrieve name of the font selection dialog title
GnomeFontPickerMode gnome_font_picker_get_mode (GnomeFontPicker *gfp); |
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.
void gnome_font_picker_set_mode (GnomeFontPicker *gfp, GnomeFontPickerMode mode); |
Set value of subsequent font picker button mode (or what to show).
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.
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.
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.
GtkWidget* gnome_font_picker_uw_get_widget (GnomeFontPicker *gfp); |
Get the user-supplied widget inside of the font picker. This only applies with GNOME_FONT_PICKER_MODE_USER_WIDGET.
const gchar* gnome_font_picker_get_font_name (GnomeFontPicker *gfp); |
Retrieve name of font from font selection dialog.
GdkFont* gnome_font_picker_get_font (GnomeFontPicker *gfp); |
Retrieve font info from font selection dialog.
gboolean gnome_font_picker_set_font_name (GnomeFontPicker *gfp, const gchar *fontname); |
Set or update currently-displayed font in font picker dialog.
const gchar* gnome_font_picker_get_preview_text (GnomeFontPicker *gfp); |
Retrieve preview text from font selection dialog if available.
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.
The title of the selection dialog box
The mode of operation of the font picker
Name of the selected font
Preview text shown in the dialog
Use font in the label in font info mode
Font size for label in font info mode
Show size in font info mode
The selected GtkFont
void user_function (GnomeFontPicker *fontpicker, gchar *arg1, gpointer user_data); |