Synopsis
#include <gtk/gtk.h>
GtkFontButton;
GtkWidget* gtk_font_button_new (void);
GtkWidget* gtk_font_button_new_with_font (const gchar *fontname);
gboolean gtk_font_button_set_font_name (GtkFontButton *font_button,
const gchar *fontname);
const gchar* gtk_font_button_get_font_name (GtkFontButton *font_button);
void gtk_font_button_set_show_style (GtkFontButton *font_button,
gboolean show_style);
gboolean gtk_font_button_get_show_style (GtkFontButton *font_button);
void gtk_font_button_set_show_size (GtkFontButton *font_button,
gboolean show_size);
gboolean gtk_font_button_get_show_size (GtkFontButton *font_button);
void gtk_font_button_set_use_font (GtkFontButton *font_button,
gboolean use_font);
gboolean gtk_font_button_get_use_font (GtkFontButton *font_button);
void gtk_font_button_set_use_size (GtkFontButton *font_button,
gboolean use_size);
gboolean gtk_font_button_get_use_size (GtkFontButton *font_button);
void gtk_font_button_set_title (GtkFontButton *font_button,
const gchar *title);
const gchar* gtk_font_button_get_title (GtkFontButton *font_button);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkButton
+----GtkFontButton
Properties"font-name" gchar* : Read / Write "show-size" gboolean : Read / Write "show-style" gboolean : Read / Write "title" gchar* : Read / Write "use-font" gboolean : Read / Write "use-size" gboolean : Read / Write DescriptionThe GtkFontButton is a button which displays the currently selected font an allows to open a font selection dialog to change the font. It is suitable widget for selecting a font in a preference dialog. DetailsGtkFontButtontypedef struct _GtkFontButton GtkFontButton; The GtkFontButton struct has only private members and should not be used directly. gtk_font_button_new ()GtkWidget* gtk_font_button_new (void); Creates a new font picker widget.
Since 2.4 gtk_font_button_new_with_font ()GtkWidget* gtk_font_button_new_with_font (const gchar *fontname); Creates a new font picker widget.
Since 2.4 gtk_font_button_set_font_name ()gboolean gtk_font_button_set_font_name (GtkFontButton *font_button, const gchar *fontname); Sets or updates the currently-displayed font in font picker dialog.
Since 2.4 gtk_font_button_get_font_name ()const gchar* gtk_font_button_get_font_name (GtkFontButton *font_button); Retrieves the name of the currently selected font.
Since 2.4 gtk_font_button_set_show_style ()void gtk_font_button_set_show_style (GtkFontButton *font_button, gboolean show_style);
If
Since 2.4 gtk_font_button_get_show_style ()gboolean gtk_font_button_get_show_style (GtkFontButton *font_button); Returns whether the name of the font style will be shown in the label.
Since 2.4 gtk_font_button_set_show_size ()void gtk_font_button_set_show_size (GtkFontButton *font_button, gboolean show_size);
If
Since 2.4 gtk_font_button_get_show_size ()gboolean gtk_font_button_get_show_size (GtkFontButton *font_button); Returns whether the font size will be shown in the label.
Since 2.4 gtk_font_button_set_use_font ()void gtk_font_button_set_use_font (GtkFontButton *font_button, gboolean use_font);
If
Since 2.4 gtk_font_button_get_use_font ()gboolean gtk_font_button_get_use_font (GtkFontButton *font_button); Returns whether the selected font is used in the label.
Since 2.4 gtk_font_button_set_use_size ()void gtk_font_button_set_use_size (GtkFontButton *font_button, gboolean use_size);
If
Since 2.4 gtk_font_button_get_use_size ()gboolean gtk_font_button_get_use_size (GtkFontButton *font_button); Returns whether the selected size is used in the label.
Since 2.4 gtk_font_button_set_title ()void gtk_font_button_set_title (GtkFontButton *font_button, const gchar *title); Sets the title for the font selection dialog.
Since 2.4 gtk_font_button_get_title ()const gchar* gtk_font_button_get_title (GtkFontButton *font_button); Retrieves the title of the font selection dialog.
Since 2.4 Property DetailsThe
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
Since 2.4