Enum Class WindowGravity

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

@Generated("org.javagi.JavaGI") public enum WindowGravity extends Enum<WindowGravity> implements Enumeration
Determines which point or edge of a window is meant to remain fixed when a window changes size.
Since:
4.20
  • Enum Constant Details

    • TOP_LEFT

      public static final WindowGravity TOP_LEFT
      The top left corner
    • TOP

      public static final WindowGravity TOP
      The top edge
    • TOP_RIGHT

      public static final WindowGravity TOP_RIGHT
      The top right corner
    • LEFT

      public static final WindowGravity LEFT
      The left edge
    • CENTER

      public static final WindowGravity CENTER
      The center pointer
    • BOTTOM_LEFT

      public static final WindowGravity BOTTOM_LEFT
      The bottom left corner
    • BOTTOM

      public static final WindowGravity BOTTOM
      the bottom edge
    • BOTTOM_RIGHT

      public static final WindowGravity BOTTOM_RIGHT
      The bottom right corner
    • TOP_START

      public static final WindowGravity TOP_START
      The top left or top right corner, depending on the text direction
    • TOP_END

      public static final WindowGravity TOP_END
      The top right or top left corner, depending on the text direction
    • START

      public static final WindowGravity START
      The left or right edge, depending on the text direction
    • END

      public static final WindowGravity END
      The right or left edge, depending on the text direction
    • BOTTOM_START

      public static final WindowGravity BOTTOM_START
      The bottom left or top right corner, depending on the text direction
    • BOTTOM_END

      public static final WindowGravity BOTTOM_END
      The bottom right or top left corner, depending on the text direction
  • Method Details

    • values

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