Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkToolbar ╰── GtkFontCombo
GtkFontCombo implements AtkImplementorIface, GtkBuildable, GtkToolShell and GtkOrientable.
It is a GtkToolBar subclass with two combos to select among the 35 standard Adobe PostScript fonts with different sizes. It has also two buttons to select bold and italics. When you select a new font, it returns the name of the corresponding Postscript font and the equivalent Xfont. This is what we all expect to have on the top of a GUI for a spreadsheet or word processor.
void gtk_font_combo_select (GtkFontCombo *font_combo
,const gchar *family
,gboolean bold
,gboolean italic
,gint height
);
Select from the combo a font which satisfies the arguments.
void gtk_font_combo_select_nth (GtkFontCombo *font_combo
,gint n
,gboolean bold
,gboolean italic
,gint height
);
Select from the combo the nth font which satisfies the arguments.
PangoFontDescription *
gtk_font_combo_get_font_description (GtkFontCombo *font_combo
);
“changed”
signalvoid user_function (GtkFontCombo *bfont_combo, gpointer user_data)
Emmited whenever a different font is choosed.
bfont_combo |
the GtkFontCombo object that received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last