Package org.gnome.gtk
Enum Class ConstraintAttribute
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<ConstraintAttribute>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum ConstraintAttribute
extends Enum<ConstraintAttribute>
implements Enumeration
The widget attributes that can be used when creating a
Constraint
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe baseline of a widgetThe bottom edge of a widgetThe center of a widget, on the horizontal axisThe center of a widget, on the vertical axisThe height of a widgetThe left edge of a widget, regardless of text directionNo attribute, used for constant relationsThe right edge of a widget, regardless of text directionThe top edge of a widgetThe width of a widget -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the ConstraintAttribute classint
getValue()
Get the numeric value of this enumstatic ConstraintAttribute
of
(int value) Create a new ConstraintAttribute for the provided valuestatic ConstraintAttribute
Returns the enum constant of this class with the specified name.static ConstraintAttribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No attribute, used for constant relations -
LEFT
The left edge of a widget, regardless of text direction -
RIGHT
The right edge of a widget, regardless of text direction -
TOP
The top edge of a widget -
BOTTOM
The bottom edge of a widget -
START
-
END
-
WIDTH
The width of a widget -
HEIGHT
The height of a widget -
CENTER_X
The center of a widget, on the horizontal axis -
CENTER_Y
The center of a widget, on the vertical axis -
BASELINE
The baseline of a widget
-
-
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 ConstraintAttribute 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
-