Package org.gnome.gdk
Enum Class Gravity
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Gravity>
,Constable
@Generated("io.github.jwharm.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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe 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 TypeMethodDescriptionstatic Type
getType()
Get the GType of the Gravity classint
getValue()
Get the numeric value of this enumstatic Gravity
of
(int value) Create a new Gravity for the provided valuestatic Gravity
Returns the enum constant of this class with the specified name.static Gravity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORTH_WEST
the reference point is at the top left corner. -
NORTH
the reference point is in the middle of the top edge. -
NORTH_EAST
the reference point is at the top right corner. -
WEST
the reference point is at the middle of the left edge. -
CENTER
the reference point is at the center of the surface. -
EAST
the reference point is at the middle of the right edge. -
SOUTH_WEST
the reference point is at the lower left corner. -
SOUTH
the reference point is at the middle of the lower edge. -
SOUTH_EAST
the reference point is at the lower right corner. -
STATIC
the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-