Enum Class SurfaceEdge

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

@Generated("org.javagi.JavaGI") public enum SurfaceEdge extends Enum<SurfaceEdge> implements Enumeration
Determines a surface edge or corner.
  • Enum Constant Details

    • NORTH_WEST

      public static final SurfaceEdge NORTH_WEST
      the top left corner.
    • NORTH

      public static final SurfaceEdge NORTH
      the top edge.
    • NORTH_EAST

      public static final SurfaceEdge NORTH_EAST
      the top right corner.
    • WEST

      public static final SurfaceEdge WEST
      the left edge.
    • EAST

      public static final SurfaceEdge EAST
      the right edge.
    • SOUTH_WEST

      public static final SurfaceEdge SOUTH_WEST
      the lower left corner.
    • SOUTH

      public static final SurfaceEdge SOUTH
      the lower edge.
    • SOUTH_EAST

      public static final SurfaceEdge SOUTH_EAST
      the lower right corner.
  • Method Details

    • values

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