Enum Class ReducedMotion
- All Implemented Interfaces:
Serializable, Comparable<ReducedMotion>, Constable, Enumeration
@Generated("org.javagi.JavaGI")
public enum ReducedMotion
extends Enum<ReducedMotion>
implements Enumeration
Values for the Gtk.Settings:gtk-interface-reduced-motion
and Gtk.CssProvider:prefers-reduced-motion properties
that indicates the preferred level of motion animations.
This information can be used inside CSS via media queries.
- Since:
- 4.22
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user has made no preference known to the systemThe user has notified the system that they prefer an interface that removes or replaces the types of motion-based animation that either trigger discomfort for those with vestibular motion sensitivity, or distraction for those with attention deficits -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the ReducedMotion class.intgetValue()Get the numeric value of this enumstatic ReducedMotionof(int value) Create a new ReducedMotion for the provided valuestatic ReducedMotionof(MemorySegment address) Create a new ReducedMotion for the value in the provided memory address.static ReducedMotionReturns the enum constant of this class with the specified name.static ReducedMotion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_PREFERENCE
The user has made no preference known to the system -
REDUCE
The user has notified the system that they prefer an interface that removes or replaces the types of motion-based animation that either trigger discomfort for those with vestibular motion sensitivity, or distraction for those with attention deficits
-
-
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 ReducedMotion 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 ReducedMotion 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
-