FontDialogButton
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_font_dialog_button_get_type ()" ) ]
[
Version ( since =
"4.10" ) ]
public sealed class FontDialogButton :
Widget,
Accessible,
Buildable,
ConstraintTarget
The `GtkFontDialogButton` is wrapped around a [class@Gtk.
FontDialog] and allows to open a font chooser dialog to change the 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.
Content:
Properties:
- public FontDialog dialog { get; set; }
The `GtkFontDialog` that contains parameters for the font chooser
dialog.
- public FontDescription font_desc { get; set; }
The selected font.
- public string font_features { get; set; }
The selected font features.
- public Language language { owned get; set; }
The selected language for font features.
- public FontLevel level { get; set; }
The level of detail for the font chooser dialog.
- public bool use_font { get; set; }
Whether the buttons label will be drawn in the selected font.
- public bool use_size { get; set; }
Whether the buttons label will use the selected font size.
Creation methods:
Methods:
- public unowned FontDialog? get_dialog ()
Returns the `GtkFontDialog` of this.
- public unowned FontDescription? get_font_desc ()
Returns the font of the button.
- public unowned string? get_font_features ()
Returns the font features of the button.
- public Language? get_language ()
Returns the language that is used for font features.
- public FontLevel get_level ()
Returns the level of detail at which this dialog lets the user select
fonts.
- public bool get_use_font ()
Returns whether the selected font is used in the label.
- public bool get_use_size ()
Returns whether the selected font size is used in the label.
- public void set_dialog (FontDialog dialog)
Sets a `GtkFontDialog` object to use for creating the font chooser
dialog that is presented when the user clicks the button.
- public void set_font_desc (FontDescription font_desc)
Sets the font of the button.
- public void set_font_features (string? font_features)
Sets the font features of the button.
- public void set_language (Language? language)
Sets the language to use for font features.
- public void set_level (FontLevel level)
Sets the level of detail at which this dialog lets the user select
fonts.
- public void set_use_font (bool use_font)
If use_font
is `TRUE`, the font name will be written
using the selected font.
- public void set_use_size (bool use_size)
If use_size
is `TRUE`, the font name will be written
using the selected font size.
Signals:
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable