Package org.freedesktop.wayland.shared
Enum Class XdgToplevelState
- All Implemented Interfaces:
Serializable
,Comparable<XdgToplevelState>
,Constable
types of state on the surface
The different state values used on the surface. This is designed for state values like maximized, fullscreen. It is paired with the configure event to ensure that both the client and the compositor setting the state can be synchronized.
States set in this way are double-buffered. They will get applied on the next commit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe surface is now activatedthe surface is fullscreenthe surface is maximizedthe surface is being resized -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static XdgToplevelState
of
(int i) static XdgToplevelState
Returns the enum constant of this class with the specified name.static XdgToplevelState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAXIMIZED
the surface is maximized -
FULLSCREEN
the surface is fullscreen -
RESIZING
the surface is being resized -
ACTIVATED
the surface is now activated -
TILED_LEFT
-
TILED_RIGHT
-
TILED_TOP
-
TILED_BOTTOM
-
SUSPENDED
-
-
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
-