Enum Class Gravity

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

@Generated("org.javagi.JavaGI") public enum Gravity extends Enum<Gravity> implements Enumeration
Defines the reference point of a surface and is used in GdkPopupLayout.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    the reference point is at the center of the surface.
    the reference point is at the middle of the right edge.
    the reference point is in the middle of the top edge.
    the reference point is at the top right corner.
    the reference point is at the top left corner.
    the reference point is at the middle of the lower edge.
    the reference point is at the lower right corner.
    the reference point is at the lower left corner.
    the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
    the reference point is at the middle of the left edge.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the Gravity class.
    int
    Get the numeric value of this enum
    static Gravity
    of(int value)
    Create a new Gravity for the provided value
    static Gravity
    of(MemorySegment address)
    Create a new Gravity for the value in the provided memory address.
    static Gravity
    Returns the enum constant of this class with the specified name.
    static Gravity[]
    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

    • NORTH_WEST

      public static final Gravity NORTH_WEST
      the reference point is at the top left corner.
    • NORTH

      public static final Gravity NORTH
      the reference point is in the middle of the top edge.
    • NORTH_EAST

      public static final Gravity NORTH_EAST
      the reference point is at the top right corner.
    • WEST

      public static final Gravity WEST
      the reference point is at the middle of the left edge.
    • CENTER

      public static final Gravity CENTER
      the reference point is at the center of the surface.
    • EAST

      public static final Gravity EAST
      the reference point is at the middle of the right edge.
    • SOUTH_WEST

      public static final Gravity SOUTH_WEST
      the reference point is at the lower left corner.
    • SOUTH

      public static final Gravity SOUTH
      the reference point is at the middle of the lower edge.
    • SOUTH_EAST

      public static final Gravity SOUTH_EAST
      the reference point is at the lower right corner.
    • STATIC

      public static final Gravity STATIC
      the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
  • Method Details

    • values

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