Interface
GtkFontChooser
Description [src]
interface Gtk.FontChooser : GObject.Object
GtkFontChooser
is an interface that can be implemented by widgets
for choosing fonts.
In GTK, the main objects that implement this interface are
GtkFontChooserWidget
, GtkFontChooserDialog
and
GtkFontButton
.
Prerequisite
In order to implement FontChooser, your type must inherit from
GObject
.
Instance methods
gtk_font_chooser_get_font_face
Gets the PangoFontFace
representing the selected font group
details (i.e. family, slant, weight, width, etc).
gtk_font_chooser_get_font_map
Gets the custom font map of this font chooser widget,
or NULL
if it does not have one.
gtk_font_chooser_set_filter_func
Adds a filter function that decides which fonts to display in the font chooser.
Interface structure
struct GtkFontChooserIface {
GTypeInterface base_iface;
PangoFontFamily* (* get_font_family) (
GtkFontChooser* fontchooser
);
PangoFontFace* (* get_font_face) (
GtkFontChooser* fontchooser
);
int (* get_font_size) (
GtkFontChooser* fontchooser
);
void (* set_filter_func) (
GtkFontChooser* fontchooser,
GtkFontFilterFunc filter,
gpointer user_data,
GDestroyNotify destroy
);
void (* font_activated) (
GtkFontChooser* chooser,
const char* fontname
);
void (* set_font_map) (
GtkFontChooser* fontchooser,
PangoFontMap* fontmap
);
PangoFontMap* (* get_font_map) (
GtkFontChooser* fontchooser
);
}
Interface members
base_iface |
|
No description available. | |
get_font_family |
|
No description available. | |
get_font_face |
|
No description available. | |
get_font_size |
|
No description available. | |
set_filter_func |
|
No description available. | |
font_activated |
|
No description available. | |
set_font_map |
|
No description available. | |
get_font_map |
|
No description available. |
Virtual methods
Gtk.FontChooser.get_font_face
Gets the PangoFontFace
representing the selected font group
details (i.e. family, slant, weight, width, etc).
Gtk.FontChooser.get_font_map
Gets the custom font map of this font chooser widget,
or NULL
if it does not have one.
Gtk.FontChooser.set_filter_func
Adds a filter function that decides which fonts to display in the font chooser.