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.
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
Constructors
gtk_font_dialog_button_new
Creates a new GtkFontDialogButton
with the
given GtkFontDialog
.
since: 4.10
Instance methods
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_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 GtkAccessible (20)
Methods inherited from GtkBuildable (1)
Properties
Gtk.FontDialogButton:dialog
The GtkFontDialog
that contains parameters for
the font chooser dialog.
since: 4.10