Gtkfontcombo - font combo widget for gtk+
GtkType |
gtk_font_combo_get_type |
(void); |
GtkWidget * |
gtk_font_combo_new |
(void); |
void |
gtk_font_combo_select |
(GtkFontCombo *font_combo, const gchar *family, gboolean bold, gboolean italic, gint height); |
void |
gtk_font_combo_select_nth |
(GtkFontCombo *font_combo, gint n, gboolean bold, gboolean italic, gint height); |
GtkObject |
|
|
| 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 |
struct _GtkFontCombo {
|
GtkWidget *gtk_font_combo_new (void); |
Create a new font combo widget
| Returns : | a new font combo widget |
void gtk_font_combo_select (GtkFontCombo *font_combo,
const gchar *family,
gboolean bold,
gboolean italic,
gint height);
|
Select a font from the combo which satisfies the arguments
| font_combo | font combo widget |
| family | font family |
| bold | TRUE or FALSE |
| italic | TRUE or FALSE |
| height | height of the font |
void gtk_font_combo_select_nth (GtkFontCombo *font_combo,
gint n,
gboolean bold,
gboolean italic,
gint height);
|
Select the nth font from the combo which satisfies the arguments
| font_combo | font combo widget |
| n | the nth font from font combo |
| bold | TRUE or FALSE |
| italic | TRUE or FALSE |
| height | height of the font |
void (* changed) (GtkFontCombo *font_combo); |
Should be connected if you wish to perform an action whenever a different font is choosed.
| font_combo | font combo widget |