Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FontChooserWidget

[19:7] extends: object

The GtkFontChooserWidget widget lets the user select a font. It is used in the GtkFontChooserDialog widget to provide a dialog for selecting fonts. To set the font which is initially selected, use [method@Gtk.FontChooser.set_font] or [method@Gtk.FontChooser.set_font_desc]. To get the selected font use [method@Gtk.FontChooser.get_font] or [method@Gtk.FontChooser.get_font_desc]. To change the text which is shown in the preview area, use [method@Gtk.FontChooser.set_preview_text]. # CSS nodes GtkFontChooserWidget has a single CSS node with name fontchooser.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • FontChooserWidget ()

    Creates a new GtkFontChooserWidget.

  • 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.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asFontChooser ()

    Wraps this handle as FontChooser.

    • @r A FontChooser object.

class: FontChooserWidgetMeta

[134:14] static extends: object

Generated metadata helpers for FontChooserWidget class surfaces.

Methods

  • properties ()

    Returns property metadata for FontChooserWidget.

    • @r A list.