Enum Class ConstraintAttribute

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

@Generated("org.javagi.JavaGI") public enum ConstraintAttribute extends Enum<ConstraintAttribute> implements Enumeration
The widget attributes that can be used when creating a Constraint.
  • Enum Constant Details

    • NONE

      public static final ConstraintAttribute NONE
      No attribute, used for constant relations
    • LEFT

      public static final ConstraintAttribute LEFT
      The left edge of a widget, regardless of text direction
    • TOP

      public static final ConstraintAttribute TOP
      The top edge of a widget
    • BOTTOM

      public static final ConstraintAttribute BOTTOM
      The bottom edge of a widget
    • START

      public static final ConstraintAttribute START
      The leading edge of a widget, depending on text direction; equivalent to LEFT for LTR languages, and RIGHT for RTL ones
    • END

      public static final ConstraintAttribute END
      The trailing edge of a widget, depending on text direction; equivalent to RIGHT for LTR languages, and LEFT for RTL ones
    • WIDTH

      public static final ConstraintAttribute WIDTH
      The width of a widget
    • HEIGHT

      public static final ConstraintAttribute HEIGHT
      The height of a widget
    • CENTER_X

      public static final ConstraintAttribute CENTER_X
      The center of a widget, on the horizontal axis
    • CENTER_Y

      public static final ConstraintAttribute CENTER_Y
      The center of a widget, on the vertical axis
    • BASELINE

      public static final ConstraintAttribute BASELINE
      The baseline of a widget
  • Method Details

    • values

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