FontDialog

open class FontDialog(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GtkFontDialog object collects the arguments that are needed to present a font chooser dialog to the user, such as a title for the dialog and whether it should be modal.

The dialog is shown with the method@Gtk.FontDialog.choose_font function or its variants.

See class@Gtk.FontDialogButton for a convenient control that uses GtkFontDialog and presents the results.

Skipped during bindings generation

  • parameter font_desc: font_desc: Out parameter is not supported

  • method language: Property TypeInfo of getter and setter do not match

Since

4.10

Constructors

Link copied to clipboard
constructor()

Creates a new GtkFontDialog object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var filter: Filter?

Sets a filter to restrict what fonts are shown in the font chooser dialog.

Link copied to clipboard
open var fontMap: <Error class: unknown class>?

Sets a custom font map to select fonts from.

Link copied to clipboard
val gtkFontDialogPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var modal: Boolean

Whether the font chooser dialog is modal.

Link copied to clipboard
open var title: String

A title that may be shown on the font chooser dialog that is presented by method@Gtk.FontDialog.choose_font.

Functions

Link copied to clipboard
open fun chooseFace(parent: Window? = null, initialValue: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function initiates a font selection operation by presenting a dialog to the user for selecting a font face (i.e. a font family and style, but not a specific font size).

Link copied to clipboard
open fun chooseFaceFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>

Finishes the method@Gtk.FontDialog.choose_face call and returns the resulting font face.

Link copied to clipboard
open fun chooseFamily(parent: Window? = null, initialValue: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function initiates a font selection operation by presenting a dialog to the user for selecting a font family.

Link copied to clipboard
open fun chooseFamilyFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>

Finishes the method@Gtk.FontDialog.choose_family call and returns the resulting family.

Link copied to clipboard
open fun chooseFont(parent: Window? = null, initialValue: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function initiates a font selection operation by presenting a dialog to the user for selecting a font.

Link copied to clipboard
open fun chooseFontAndFeatures(parent: Window? = null, initialValue: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

This function initiates a font selection operation by presenting a dialog to the user for selecting a font and font features.

Link copied to clipboard
open fun chooseFontFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>

Finishes the method@Gtk.FontDialog.choose_font call and returns the resulting font description.

Link copied to clipboard
open fun getFilter(): Filter?

Returns the filter that decides which fonts to display in the font chooser dialog.

Link copied to clipboard
open fun getFontMap(): <Error class: unknown class>?

Returns the fontmap from which fonts are selected, or NULL for the default fontmap.

Link copied to clipboard
open fun getLanguage(): <Error class: unknown class>?

Returns the language for which font features are applied.

Link copied to clipboard
open fun getModal(): Boolean

Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.

Link copied to clipboard
open fun getTitle(): String

Returns the title that will be shown on the font chooser dialog.

Link copied to clipboard
open fun setFilter(filter: Filter? = null)

Adds a filter that decides which fonts to display in the font chooser dialog.

Link copied to clipboard
open fun setFontMap(fontmap: <Error class: unknown class>? = null)

Sets the fontmap from which fonts are selected.

Link copied to clipboard
open fun setLanguage(language: <Error class: unknown class>)

Sets the language for which font features are applied.

Link copied to clipboard
open fun setModal(modal: Boolean)

Sets whether the font chooser dialog blocks interaction with the parent window while it is presented.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title that will be shown on the font chooser dialog.