Class

GtkFontDialogButton

since: 4.10

[]

Description [src]

final class Gtk.FontDialogButton : Gtk.Widget
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
  /* No available fields */
}

Opens a font chooser dialog to select a font.

An example GtkFontDialogButton

It is suitable widget for selecting a font in a preference dialog.

CSS nodes

fontbutton
╰── button.font
    ╰── [content]

GtkFontDialogButton has a single CSS node with name fontbutton which contains a button node with the .font style class.

Available since: 4.10

[]

Hierarchy

hierarchy this GtkFontDialogButton implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1
[]

Constructors

gtk_font_dialog_button_new

Creates a new GtkFontDialogButton with the given GtkFontDialog.

since: 4.10

[]

Instance methods

gtk_font_dialog_button_get_dialog

Returns the GtkFontDialog of self.

since: 4.10

gtk_font_dialog_button_get_font_desc

Returns the font of the button.

since: 4.10

gtk_font_dialog_button_get_font_features

Returns the font features of the button.

since: 4.10

gtk_font_dialog_button_get_language

Returns the language that is used for font features.

since: 4.10

gtk_font_dialog_button_get_level

Returns the level of detail at which this dialog lets the user select fonts.

since: 4.10

gtk_font_dialog_button_get_use_font

Returns whether the selected font is used in the label.

since: 4.10

gtk_font_dialog_button_get_use_size

Returns whether the selected font size is used in the label.

since: 4.10

gtk_font_dialog_button_set_dialog

Sets a GtkFontDialog object to use for creating the font chooser dialog that is presented when the user clicks the button.

since: 4.10

gtk_font_dialog_button_set_font_desc

Sets the font of the button.

since: 4.10

gtk_font_dialog_button_set_font_features

Sets the font features of the button.

since: 4.10

gtk_font_dialog_button_set_language

Sets the language to use for font features.

since: 4.10

gtk_font_dialog_button_set_level

Sets the level of detail at which this dialog lets the user select fonts.

since: 4.10

gtk_font_dialog_button_set_use_font

If use_font is TRUE, the font name will be written using the selected font.

since: 4.10

gtk_font_dialog_button_set_use_size

If use_size is TRUE, the font name will be written using the selected font size.

since: 4.10

Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
[]

Properties

Gtk.FontDialogButton:dialog

The GtkFontDialog that contains parameters for the font chooser dialog.

since: 4.10

Gtk.FontDialogButton:font-desc

The selected font.

since: 4.10

Gtk.FontDialogButton:font-features

The selected font features.

since: 4.10

Gtk.FontDialogButton:language

The selected language for font features.

since: 4.10

Gtk.FontDialogButton:level

The level of detail for the font chooser dialog.

Gtk.FontDialogButton:use-font

Whether the buttons label will be drawn in the selected font.

Gtk.FontDialogButton:use-size

Whether the buttons label will use the selected font size.

Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
[]

Signals

Gtk.FontDialogButton::activate

Emitted when the font dialog button is activated.

since: 4.14

Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure