Package org.gnome.gdk
Enum Class AnchorHints
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<AnchorHints>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum AnchorHints
extends Enum<AnchorHints>
implements Enumeration
Positioning hints for aligning a surface relative to a rectangle.
These hints determine how the surface should be positioned in the case that the surface would fall off-screen if placed in its ideal position.
For example, FLIP_X
will replace Gravity.NORTH_WEST
with
Gravity.NORTH_EAST
and vice versa if the surface extends beyond the left
or right edges of the monitor.
If SLIDE_X
is set, the surface can be shifted horizontally to fit
on-screen. If RESIZE_X
is set, the surface can be shrunken
horizontally to fit.
In general, when multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionallow flipping anchors on both axesallow flipping anchors horizontallyallow flipping anchors verticallyallow resizing surface on both axesallow resizing surface horizontallyallow resizing surface verticallyallow sliding surface on both axesallow sliding surface horizontallyallow sliding surface vertically -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the AnchorHints classint
getValue()
Get the numeric value of this enumstatic AnchorHints
of
(int value) Create a new AnchorHints for the provided valuestatic AnchorHints
Returns the enum constant of this class with the specified name.static AnchorHints[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLIP_X
allow flipping anchors horizontally -
FLIP_Y
allow flipping anchors vertically -
SLIDE_X
allow sliding surface horizontally -
SLIDE_Y
allow sliding surface vertically -
RESIZE_X
allow resizing surface horizontally -
RESIZE_Y
allow resizing surface vertically -
FLIP
allow flipping anchors on both axes -
SLIDE
allow sliding surface on both axes -
RESIZE
allow resizing surface on both axes
-
-
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 AnchorHints for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield 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
-