Class FontChooserWidget

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, FontChooser, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class FontChooserWidget extends Widget implements Accessible, Buildable, ConstraintTarget, FontChooser
Deprecated.
Direct use of GtkFontChooserWidget is deprecated.

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 FontChooser.setFont(String) or FontChooser.setFontDesc(FontDescription).

To get the selected font use FontChooser.getFont() or FontChooser.getFontDesc().

To change the text which is shown in the preview area, use FontChooser.setPreviewText(String).

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.

  • Constructor Details

    • FontChooserWidget

      public FontChooserWidget(MemorySegment address)
      Deprecated.
      Create a FontChooserWidget instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • FontChooserWidget

      public FontChooserWidget()
      Deprecated.
      Create a new FontChooserWidget.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the FontChooserWidget class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected FontChooserWidget asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Widget
      Returns:
      the instance as if it were its parent type
    • builder

      public static FontChooserWidget.Builder<? extends FontChooserWidget.Builder> builder()
      Deprecated.
      A FontChooserWidget.Builder object constructs a FontChooserWidget with the specified properties. Use the various set...() methods to set properties, and finish construction with FontChooserWidget.Builder.build().
      Returns:
      the builder object