Enum Class PositionType

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

@Generated("org.javagi.JavaGI") public enum PositionType extends Enum<PositionType> implements Enumeration

Describes which edge of a widget a certain feature is positioned at.

For examples, see the tabs of a Notebook, or the label of a Scale.

  • Enum Constant Details

    • LEFT

      public static final PositionType LEFT
      The feature is at the left edge.
    • TOP

      public static final PositionType TOP
      The feature is at the top edge.
    • BOTTOM

      public static final PositionType BOTTOM
      The feature is at the bottom edge.
  • Method Details

    • values

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