gtk.font_dialog_button
Module for [FontDialogButton] class
Types 3
The gtk.font_dialog_button.FontDialogButton is wrapped around a gtk.font_dialog.FontDialog and allows to open a font chooser dialog to change the font.
!An example GtkFontDialogButton
It is suitable widget for selecting a font in a preference dialog.
CSS nodes
fontbutton
╰── button.font
╰── [content]gtk.font_dialog_button.FontDialogButton has a single CSS node with name fontbutton which contains a button node with the .font style class.
Methods
FontDialogButtonGidBuilder builder() static nothrowGet builder for [gtk.font_dialog_button.FontDialogButton] Returns: New builder objectgtk.font_dialog.FontDialog dialog() @property nothrowGet `dialog` property. Returns: The [gtk.font_dialog.FontDialog] that contains parameters for the font chooser dialog.void dialog(gtk.font_dialog.FontDialog propval) @property nothrowSet `dialog` property. Params: propval = The [gtk.font_dialog.FontDialog] that contains parameters for the font chooser dialog.pango.font_description.FontDescription fontDesc() @property nothrowGet `fontDesc` property. Returns: The selected font.void fontDesc(pango.font_description.FontDescription propval) @property nothrowSet `fontDesc` property. Params: propval = The selected font.string fontFeatures() @property nothrowGet `fontFeatures` property. Returns: The selected font features.void fontFeatures(string propval) @property nothrowSet `fontFeatures` property. Params: propval = The selected font features.pango.language.Language language() @property nothrowGet `language` property. Returns: The selected language for font features.void language(pango.language.Language propval) @property nothrowSet `language` property. Params: propval = The selected language for font features.gtk.types.FontLevel level() @property nothrowGet `level` property. Returns: The level of detail for the font chooser dialog.void level(gtk.types.FontLevel propval) @property nothrowSet `level` property. Params: propval = The level of detail for the font chooser dialog.bool useFont() @property nothrowGet `useFont` property. Returns: Whether the buttons label will be drawn in the selected font.void useFont(bool propval) @property nothrowSet `useFont` property. Params: propval = Whether the buttons label will be drawn in the selected font.bool useSize() @property nothrowGet `useSize` property. Returns: Whether the buttons label will use the selected font size.void useSize(bool propval) @property nothrowSet `useSize` property. Params: propval = Whether the buttons label will use the selected font size.gtk.font_dialog.FontDialog getDialog() nothrowReturns the [gtk.font_dialog.FontDialog] of self. Returns: the [gtk.font_dialog.FontDialog]pango.language.Language getLanguage() nothrowReturns the language that is used for font features. Returns: the languagegtk.types.FontLevel getLevel() nothrowReturns the level of detail at which this dialog lets the user select fonts. Returns: the level of detailbool getUseFont() nothrowReturns whether the selected font is used in the label. Returns: whether the selected font is used in the labelbool getUseSize() nothrowReturns whether the selected font size is used in the label. Returns: whether the selected font size is used in the labelvoid setDialog(gtk.font_dialog.FontDialog dialog) nothrowSets a [gtk.font_dialog.FontDialog] object to use for creating the font chooser dialog that is presented when the user clicks the button.void setFontDesc(pango.font_description.FontDescription fontDesc) nothrowSets the font of the button.void setLanguage(pango.language.Language language = null) nothrowSets the language to use for font features.void setLevel(gtk.types.FontLevel level) nothrowSets the level of detail at which this dialog lets the user select fonts.void setUseFont(bool useFont) nothrowIf use_font is `TRUE`, the font name will be written using the selected font.void setUseSize(bool useSize) nothrowIf use_size is `TRUE`, the font name will be written using the selected font size.gulong connectActivate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.font_dialog_button.FontDialogButton)))
&& Parameters!T.length < 2) nothrowConnect to `Activate` signal.Constructors
this(gtk.font_dialog.FontDialog dialog = null)Creates a new [gtk.font_dialog_button.FontDialogButton] with the given [gtk.font_dialog.FontDialog].Fluent builder implementation template for gtk.font_dialog_button.FontDialogButton
Methods
T dialog(gtk.font_dialog.FontDialog propval) nothrowSet `dialog` property. Params: propval = The [gtk.font_dialog.FontDialog] that contains parameters for the font chooser dialog. Returns: Builder instance for fluent chainingT fontDesc(pango.font_description.FontDescription propval) nothrowSet `fontDesc` property. Params: propval = The selected font.T fontFeatures(string propval) nothrowSet `fontFeatures` property. Params: propval = The selected font features.T language(pango.language.Language propval) nothrowSet `language` property. Params: propval = The selected language for font features.T level(gtk.types.FontLevel propval) nothrowSet `level` property. Params: propval = The level of detail for the font chooser dialog. Returns: Builder instance for fluent chainingT useFont(bool propval) nothrowSet `useFont` property. Params: propval = Whether the buttons label will be drawn in the selected font. Returns: Builder instance for fluent chainingT useSize(bool propval) nothrowSet `useSize` property. Params: propval = Whether the buttons label will use the selected font size. Returns: Builder instance for fluent chainingFluent builder for gtk.font_dialog_button.FontDialogButton
Methods