Class

GtkFontChooserWidget

since: 3.2

[]

Description [src]

class Gtk.FontChooserWidget : Gtk.Box
  implements Atk.ImplementorIface, Gtk.Buildable, Gtk.FontChooser, Gtk.Orientable {
  /* No available fields */
}

The GtkFontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the GtkFontChooserDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use gtk_font_chooser_set_font() or gtk_font_chooser_set_font_desc().

To get the selected font use gtk_font_chooser_get_font() or gtk_font_chooser_get_font_desc().

To change the text which is shown in the preview area, use gtk_font_chooser_set_preview_text().

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.

Available since: 3.2

[]

Hierarchy

hierarchy this GtkFontChooserWidget implements_0 AtkImplementorIface this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkFontChooser this--implements_2 implements_3 GtkOrientable this--implements_3 ancestor_0 GtkBox ancestor_0--this ancestor_1 GtkContainer ancestor_1--ancestor_0 ancestor_2 GtkWidget ancestor_2--ancestor_1 ancestor_3 GInitiallyUnowned ancestor_3--ancestor_2 ancestor_4 GObject ancestor_4--ancestor_3
[]

Constructors

gtk_font_chooser_widget_new

Creates a new GtkFontChooserWidget.

since: 3.2

[]

Instance methods

Methods inherited from GtkBox (13)
Methods inherited from GtkContainer (33)
Methods inherited from GtkWidget (263)
Methods inherited from GObject (43)
Methods inherited from GtkBuildable (10)
Methods inherited from GtkFontChooser (19)
Methods inherited from GtkOrientable (2)
[]

Properties

Gtk.FontChooserWidget:tweak-action

A toggle action that can be used to switch to the tweak page of the font chooser widget, which lets the user tweak the OpenType features and variation axes of the selected font.

Properties inherited from GtkBox (3)
Properties inherited from GtkContainer (3)
Properties inherited from GtkWidget (39)
Properties inherited from GtkFontChooser (7)
Properties inherited from GtkOrientable (1)
[]

Signals

Signals inherited from GtkContainer (4)
Signals inherited from GtkWidget (69)
Signals inherited from GObject (1)
Signals inherited from GtkFontChooser (1)

Class structure