Package org.freedesktop.wayland.shared
Enum Class XdgPositionerConstraintAdjustment
java.lang.Object
java.lang.Enum<XdgPositionerConstraintAdjustment>
org.freedesktop.wayland.shared.XdgPositionerConstraintAdjustment
- All Implemented Interfaces:
Serializable
,Comparable<XdgPositionerConstraintAdjustment>
,Constable
constraint adjustments
The constraint adjustment value define ways the compositor will adjust the position of the surface, if the unadjusted position would result in the surface being partly constrained.
Whether a surface is considered 'constrained' is left to the compositor to determine. For example, the surface may be partly outside the compositor's defined 'work area', thus necessitating the child surface's position be adjusted until it is entirely inside the work area.
The adjustments can be combined, according to a defined precedence: 1) Flip, 2) Slide, 3) Resize.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
of
(int i) Returns the enum constant of this class with the specified name.static XdgPositionerConstraintAdjustment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
SLIDE_X
-
SLIDE_Y
-
FLIP_X
-
FLIP_Y
-
RESIZE_X
-
RESIZE_Y
-
-
Field Details
-
value
public final int value
-
-
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
-
getValue
public int getValue() -
of
-