Class FontsetSimple

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class FontsetSimple extends Fontset

PangoFontsetSimple is a implementation of the abstract PangoFontset base class as an array of fonts.

When creating a PangoFontsetSimple, you have to provide the array of fonts that make up the fontset.

  • Constructor Details

    • FontsetSimple

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

      public FontsetSimple(Language language)
      Creates a new PangoFontsetSimple for the given language.
      Parameters:
      language - a PangoLanguage tag
    • FontsetSimple

      public FontsetSimple()
      Create a new FontsetSimple.
  • Method Details

    • getType

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

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

      protected FontsetSimple asParent()
      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 Fontset
      Returns:
      the instance as if it were its parent type
    • append

      public void append(Font font)

      Adds a font to the fontset.

      The fontset takes ownership of font.

      Parameters:
      font - a PangoFont.
    • size

      public int size()
      Returns the number of fonts in the fontset.
      Returns:
      the size of this FontsetSimple
    • builder

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