Enum Class InscriptionOverflow

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

@Generated("org.javagi.JavaGI") public enum InscriptionOverflow extends Enum<InscriptionOverflow> implements Enumeration
The different methods to handle text in GtkInscription when it doesn't fit the available space.
Since:
4.8
  • Enum Constant Details

    • CLIP

      public static final InscriptionOverflow CLIP
      Clip the remaining text
    • ELLIPSIZE_START

      public static final InscriptionOverflow ELLIPSIZE_START
      Omit characters at the start of the text
    • ELLIPSIZE_MIDDLE

      public static final InscriptionOverflow ELLIPSIZE_MIDDLE
      Omit characters at the middle of the text
    • ELLIPSIZE_END

      public static final InscriptionOverflow ELLIPSIZE_END
      Omit characters at the end of the text
  • Method Details

    • values

      public static InscriptionOverflow[] 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 InscriptionOverflow 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 InscriptionOverflow of(int value)
      Create a new InscriptionOverflow 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 InscriptionOverflow of(MemorySegment address)
      Create a new InscriptionOverflow 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 InscriptionOverflow class.
      Returns:
      the GType