gtk.font_selection

Module for [FontSelection] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
FontSelection self() nothrowReturns `this`, for use in `with` statements.
FontSelectionGidBuilder builder() static nothrowGet builder for [gtk.font_selection.FontSelection] Returns: New builder object
string fontName() @property nothrow
void fontName(string propval) @property nothrow
string previewText() @property nothrow
void previewText(string propval) @property nothrow
pango.font_face.FontFace getFace() nothrowGets 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() nothrowThis 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() nothrowGets 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() nothrowThis returns the #GtkTreeView that lists font families, for example, “Sans”, “Serif”, etc. Returns: A #GtkWidget that is part of fontsel
string getFontName() nothrowGets the currently-selected font name.
gtk.widget.Widget getPreviewEntry() nothrowThis returns the #GtkEntry used to display the font as a preview. Returns: A #GtkWidget that is part of fontsel
string getPreviewText() nothrowGets 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() nothrowThe selected font size. Returns: A n integer representing the selected font size, or -1 if no font size is selected.
gtk.widget.Widget getSizeEntry() nothrowThis 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() nothrowThis returns the #GtkTreeView used to list font sizes. Returns: A #GtkWidget that is part of fontsel
bool setFontName(string fontname) nothrowSets the currently-selected font.
void setPreviewText(string text) nothrowSets 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

Fluent builder implementation template for gtk.font_selection.FontSelection

Methods
T fontName(string propval) nothrow
T previewText(string propval) nothrow
Methods
FontSelection build() nothrowCreate object from builder. Returns: New object