Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FontDialog

[17:7] extends: object

Asynchronous API to present a font chooser dialog. GtkFontDialog collects the arguments that are needed to present the 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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • FontDialog ()

    Creates a new GtkFontDialog object.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setFilter (object Value)

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

    • @p Value is the new property value.
    • @r None.
  • setFontmap (object Value)

    A custom font map to select fonts from. A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.

    • @p Value is the new property value.
    • @r None.
  • setLanguage (object Value)

    The language for which the font features are selected.

    • @p Value is the new property value.
    • @r None.
  • setModal (bool Value)

    Whether the font chooser dialog is modal.

    • @p Value is the new property value.
    • @r None.
  • setTitle (string Value)

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

    • @p Value is the new property value.
    • @r None.
  • choose_face_finish (object result)

    Finishes the [method@Gtk.FontDialog.choose_face] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.

    • @p result is the result.
  • choose_family_finish (object result)

    Finishes the [method@Gtk.FontDialog.choose_family] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.

    • @p result is the result.
  • choose_font_finish (object result)

    Finishes the [method@Gtk.FontDialog.choose_font] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.

    • @p result is the result.
  • get_filter ()

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

  • get_font_map ()

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

  • get_language ()

    Returns the language for which font features are applied.

  • get_modal ()

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

  • get_title ()

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

  • set_filter (object filter)

    Adds a filter that decides which fonts to display in the font chooser dialog. The filter must be able to handle both PangoFontFamily and PangoFontFace objects.

    • @p filter is the filter.
    • @r None.
  • set_font_map (object fontmap)

    Sets the fontmap from which fonts are selected. If @fontmap is NULL, the default fontmap is used.

    • @p fontmap is the fontmap.
    • @r None.
  • set_language (object language)

    Sets the language for which font features are applied.

    • @p language is the language for font features.
    • @r None.
  • set_modal (bool modal)

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

    • @p modal is the new value.
    • @r None.
  • set_title (string title)

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

    • @p title is the new title.
    • @r None.

class: FontDialogMeta

[331:14] static extends: object

Generated metadata helpers for FontDialog class surfaces.

Methods

  • properties ()

    Returns property metadata for FontDialog.

    • @r A list.