Package org.gnome.gtk
Enum Class WindowGravity
- All Implemented Interfaces:
Serializable,Comparable<WindowGravity>,Constable,Enumeration
@Generated("io.github.jwharm.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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe bottom edgeThe bottom right or top left corner, depending on the text directionThe bottom left cornerThe bottom right cornerThe bottom left or top right corner, depending on the text directionThe center pointerThe right or left edge, depending on the text directionThe left edgeThe right edgeThe left or right edge, depending on the text directionThe top edgeThe top right or top left corner, depending on the text directionThe top left cornerThe top right cornerThe top left or top right corner, depending on the text direction -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the WindowGravity classintgetValue()Get the numeric value of this enumstatic WindowGravityof(int value) Create a new WindowGravity for the provided valuestatic WindowGravityof(MemorySegment address) Create a new WindowGravity for the value in the provided memory address.static WindowGravityReturns the enum constant of this class with the specified name.static WindowGravity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP_LEFT
The top left corner -
TOP
The top edge -
TOP_RIGHT
The top right corner -
LEFT
The left edge -
CENTER
The center pointer -
RIGHT
The right edge -
BOTTOM_LEFT
The bottom left corner -
BOTTOM
the bottom edge -
BOTTOM_RIGHT
The bottom right corner -
TOP_START
The top left or top right corner, depending on the text direction -
TOP_END
The top right or top left corner, depending on the text direction -
START
The left or right edge, depending on the text direction -
END
The right or left edge, depending on the text direction -
BOTTOM_START
The bottom left or top right corner, depending on the text direction -
BOTTOM_END
The bottom right or top left corner, depending on the text direction
-
-
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 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
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
-