FontChooserWidget


Object Hierarchy:

Object hierarchy for FontChooserWidget

Description:

[ CCode ( type_id = "gtk_font_chooser_widget_get_type ()" ) ]
public class FontChooserWidget : Widget, Accessible, Buildable, ConstraintTarget, FontChooser

The FontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font.

It is used in the FontChooserDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use set_font or set_font_desc.

To get the selected font use get_font or get_font_desc.

To change the text which is shown in the preview area, use set_preview_text.

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Widget