Klasse FontChooserDialog

Alle implementierten Schnittstellen:
PointerInterface

public class FontChooserDialog extends Dialog
The `GtkFontChooserDialog` widget is a dialog for selecting a font.

<picture>
<source srcset="fontchooser-dark.png" media="(prefers-color-scheme: dark)">
<img alt="An example GtkFontChooserDialog" src="fontchooser.png">
</picture>

`GtkFontChooserDialog` implements the [iface@Gtk.FontChooser] interface
and does not provide much API of its own.

To create a `GtkFontChooserDialog`, use [ctor@Gtk.FontChooserDialog.new].

# GtkFontChooserDialog as GtkBuildable

The `GtkFontChooserDialog` implementation of the `GtkBuildable`
interface exposes the buttons with the names “select_button”
and “cancel_button”.

## CSS nodes

`GtkFontChooserDialog` has a single CSS node with the name `window` and style
class `.fontchooser`.

https://docs.gtk.org/gtk4/class.FontChooserDialog.html

  • Konstruktordetails

    • FontChooserDialog

      public FontChooserDialog(PointerContainer pointer)
    • FontChooserDialog

      @Deprecated public FontChooserDialog(@Nullable Str title, @Nullable Window parent)
      Veraltet.
      Creates a new `GtkFontChooserDialog`.
      Parameter:
      title - Title of the dialog
      parent - Transient parent of the dialog
    • FontChooserDialog

      @Deprecated public FontChooserDialog(String title, @Nullable Window parent)
      Veraltet.
      Creates a new `GtkFontChooserDialog`.
      Parameter:
      title - Title of the dialog
      parent - Transient parent of the dialog
  • Methodendetails