FontButton


Object Hierarchy:

Gtk.FontButton Gtk.FontButton Gtk.FontButton Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.FontButton GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.FontButton Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.FontButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.FontButton Gtk.ConstraintTarget->Gtk.Widget Gtk.FontChooser Gtk.FontChooser Gtk.FontChooser->Gtk.FontButton

Description:

[ CCode ( type_id = "gtk_font_button_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "4.10" ) ]
public sealed class FontButton : Widget, Accessible, Buildable, ConstraintTarget, FontChooser

Warning: FontButton is deprecated since 4.10.

The `GtkFontButton` allows to open a font chooser dialog to change the font.

Note:

Use [class@Gtk.FontDialogButton] instead

![An example GtkFontButton](font-button.png)

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

CSS nodes

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

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


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget