Enum Class ReducedMotion

java.lang.Object
java.lang.Enum<ReducedMotion>
org.gnome.gtk.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
  • Enum Constant Details

    • NO_PREFERENCE

      public static final ReducedMotion NO_PREFERENCE
      The user has made no preference known to the system
    • REDUCE

      public static final ReducedMotion 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

      public static ReducedMotion[] 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

      public static ReducedMotion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static ReducedMotion of(int value)
      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:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static ReducedMotion of(MemorySegment address)
      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

      public static @Nullable Type getType()
      Get the GType of the ReducedMotion class.
      Returns:
      the GType