gtk.font_selection

Module for [FontSelection] class

Types 3

Methods
GType _gType() @property
FontSelection self()Returns `this`, for use in `with` statements.
FontSelectionGidBuilder builder()Get builder for [gtk.font_selection.FontSelection] Returns: New builder object
string fontName() @property
void fontName(string propval) @property
string previewText() @property
void previewText(string propval) @property
pango.font_face.FontFace getFace()Gets the #PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc). Returns: A #PangoFontFace representing the selected font group details. The returned o...
gtk.widget.Widget getFaceList()This returns the #GtkTreeView which lists all styles available for the selected font. For example, “Regular”, “Bold”, etc. Returns: A #GtkWidget that is part of fontsel
pango.font_family.FontFamily getFamily()Gets the #PangoFontFamily representing the selected font family. Returns: A #PangoFontFamily representing the selected font family. Font families are a collection of font faces. The returned object...
gtk.widget.Widget getFamilyList()This returns the #GtkTreeView that lists font families, for example, “Sans”, “Serif”, etc. Returns: A #GtkWidget that is part of fontsel
string getFontName()Gets the currently-selected font name.
gtk.widget.Widget getPreviewEntry()This returns the #GtkEntry used to display the font as a preview. Returns: A #GtkWidget that is part of fontsel
string getPreviewText()Gets the text displayed in the preview area. Returns: the text displayed in the preview area. This string is owned by the widget and should not be modified or freed
int getSize()The selected font size. Returns: A n integer representing the selected font size, or -1 if no font size is selected.
gtk.widget.Widget getSizeEntry()This returns the #GtkEntry used to allow the user to edit the font number manually instead of selecting it from the list of font sizes. Returns: A #GtkWidget that is part of fontsel
gtk.widget.Widget getSizeList()This returns the #GtkTreeView used to list font sizes. Returns: A #GtkWidget that is part of fontsel
bool setFontName(string fontname)Sets the currently-selected font.
void setPreviewText(string text)Sets the text displayed in the preview area. The text is used to show how the selected font looks.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkFontSelection. Returns: a new #GtkFontSelection
Methods
T fontName(string propval)
T previewText(string propval)

Fluent builder for [gtk.font_selection.FontSelection]