FontChooser
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_font_chooser_get_type ()" ) ]
public interface FontChooser : Object
All known implementing classes:
Content:
Properties:
- public abstract string font { owned get; set; }
The font description as a string, e.
- public abstract FontDescription font_desc { owned get; set; }
The font description as a `PangoFontDescription`.
- public abstract string font_features { owned get; }
The selected font features.
- public abstract string language { owned get; set; }
The language for which the font features were selected.
- public abstract FontChooserLevel level { get; set; }
The level of granularity to offer for selecting fonts.
- public abstract string preview_text { owned get; set; }
The string with which to preview the font.
- public abstract bool show_preview_entry { get; set; }
Whether to show an entry to change the preview text.
Methods:
- public string? get_font ()
Gets the currently-selected font name.
- public FontDescription? get_font_desc ()
Gets the currently-selected font.
- public abstract unowned FontFace? get_font_face ()
Gets the `PangoFontFace` representing the selected font group details
(i.
- public abstract unowned FontFamily? get_font_family ()
Gets the `PangoFontFamily` representing the selected font family.
- public string get_font_features ()
Gets the currently-selected font features.
- public abstract FontMap? get_font_map ()
Gets the custom font map of this font chooser widget, or
null if it does not have one.
- public abstract int get_font_size ()
The selected font size.
- public string get_language ()
Gets the language that is used for font features.
- public FontChooserLevel get_level ()
Returns the current level of granularity for selecting fonts.
- public string get_preview_text ()
Gets the text displayed in the preview area.
- public bool get_show_preview_entry ()
Returns whether the preview entry is shown or not.
- public abstract void set_filter_func (owned FontFilterFunc? filter)
Adds a filter function that decides which fonts to display in the font
chooser.
- public void set_font (string fontname)
Sets the currently-selected font.
- public void set_font_desc (FontDescription font_desc)
Sets the currently-selected font from font_desc
.
- public abstract void set_font_map (FontMap? fontmap)
Sets a custom font map to use for this font chooser widget.
- public void set_language (string language)
Sets the language to use for font features.
- public void set_level (FontChooserLevel level)
Sets the desired level of granularity for selecting fonts.
- public void set_preview_text (string text)
Sets the text displayed in the preview area.
- public void set_show_preview_entry (bool show_preview_entry)
Shows or hides the editable preview entry.
Signals:
Inherited Members:
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