Gnome::Gtk4::FontChooserWidget
Description
The Gnome::Gtk4::FontChooserWidget widget lets the user select a font.
It is used in the Gnome::Gtk4::FontChooserDialog widget to provide a dialog for selecting fonts.
To set the font which is initially selected, use .set-font() in class Gnome::Gtk4::R-FontChooser
or .set-font-desc() in class Gnome::Gtk4::R-FontChooser
.
To get the selected font use .get-font() in class Gnome::Gtk4::R-FontChooser
or .get-font-desc() in class Gnome::Gtk4::R-FontChooser
.
To change the text which is shown in the preview area, use .set-preview-text() in class Gnome::Gtk4::R-FontChooser
.
CSS nodes
Gnome::Gtk4::FontChooserWidget has a single CSS node with name fontchooser.
Class initialization
Note: The native version of this class is deprecated in gtk4-lib() since version 4.10
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-fontchooserwidget
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Creates a new Gnome::Gtk4::FontChooserWidget.
method new-fontchooserwidget ( --> Gnome::Gtk4::FontChooserWidget \)