FontButton
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_font_button_get_type ()" ) ]
public class FontButton :
Widget,
Accessible,
Buildable,
ConstraintTarget,
FontChooser
The `GtkFontButton` allows to open a font chooser dialog to change the font.
![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.
Content:
Properties:
- public bool modal { get; set; }
Whether the font chooser dialog should be modal.
- public string title { get; set; }
The title of 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 bool get_modal ()
Gets whether the dialog is modal.
- public unowned string get_title ()
Retrieves the title of the font chooser dialog.
- public bool get_use_font ()
Returns whether the selected font is used in the label.
- public bool get_use_size ()
Returns whether the selected size is used in the label.
- public void set_modal (bool modal)
Sets whether the dialog should be modal.
- public void set_title (string title)
Sets the title for the font chooser dialog.
- 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 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
All known members inherited from interface Gtk.FontChooser