Enum Class Variant

java.lang.Object
java.lang.Enum<Variant>
org.gnome.pango.Variant
All Implemented Interfaces:
Serializable, Comparable<Variant>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum Variant extends Enum<Variant> implements Enumeration
An enumeration specifying capitalization variant of the font.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A font with all characters replaced by smaller variants of the capital characters.
    A font with all characters replaced by smaller variants of the capital characters.
    A normal font.
    A font with the lower case characters replaced by smaller variants of the capital characters.
    A font with the lower case characters replaced by smaller variants of the capital characters.
    A font with capital letters that are more suitable for all-uppercase titles.
    A font with the upper case characters replaced by smaller variants of the capital letters.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the Variant class.
    int
    Get the numeric value of this enum
    static Variant
    of(int value)
    Create a new Variant for the provided value
    static Variant
    of(MemorySegment address)
    Create a new Variant for the value in the provided memory address.
    static Variant
    Returns the enum constant of this class with the specified name.
    static Variant[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NORMAL

      public static final Variant NORMAL
      A normal font.
    • SMALL_CAPS

      public static final Variant SMALL_CAPS
      A font with the lower case characters replaced by smaller variants of the capital characters.
    • ALL_SMALL_CAPS

      public static final Variant ALL_SMALL_CAPS
      A font with all characters replaced by smaller variants of the capital characters. Since: 1.50
    • PETITE_CAPS

      public static final Variant PETITE_CAPS
      A font with the lower case characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50
    • ALL_PETITE_CAPS

      public static final Variant ALL_PETITE_CAPS
      A font with all characters replaced by smaller variants of the capital characters. Petite Caps can be even smaller than Small Caps. Since: 1.50
    • UNICASE

      public static final Variant UNICASE
      A font with the upper case characters replaced by smaller variants of the capital letters. Since: 1.50
    • TITLE_CAPS

      public static final Variant TITLE_CAPS
      A font with capital letters that are more suitable for all-uppercase titles. Since: 1.50
  • Method Details

    • values

      public static Variant[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Variant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static Variant of(int value)
      Create a new Variant for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Variant of(MemorySegment address)
      Create a new Variant for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

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