Enum Class SystemSetting

java.lang.Object
java.lang.Enum<SystemSetting>
org.gnome.gtk.SystemSetting
All Implemented Interfaces:
Serializable, Comparable<SystemSetting>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SystemSetting extends Enum<SystemSetting> implements Enumeration

Values that can be passed to the Widget.systemSettingChanged(SystemSetting) vfunc.

The values indicate which system setting has changed. Widgets may need to drop caches, or react otherwise.

Most of the values correspond to Settings properties.

More values may be added over time.

  • Enum Constant Details

    • DPI

      public static final SystemSetting DPI
      the Gtk.Settings:gtk-xft-dpi setting has changed
    • FONT_NAME

      public static final SystemSetting FONT_NAME
      The Gtk.Settings:gtk-font-name setting has changed
    • FONT_CONFIG

      public static final SystemSetting FONT_CONFIG
      The font configuration has changed in a way that requires text to be redrawn. This can be any of the Gtk.Settings:gtk-xft-antialias, Gtk.Settings:gtk-xft-hinting, Gtk.Settings:gtk-xft-hintstyle, Gtk.Settings:gtk-xft-rgba or Gtk.Settings:gtk-fontconfig-timestamp settings
    • DISPLAY

      public static final SystemSetting DISPLAY
      The display has changed
    • ICON_THEME

      public static final SystemSetting ICON_THEME
      The icon theme has changed in a way that requires icons to be looked up again
  • Method Details

    • values

      public static SystemSetting[] 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 SystemSetting 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 SystemSetting of(int value)
      Create a new SystemSetting 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 SystemSetting of(MemorySegment address)
      Create a new SystemSetting 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 SystemSetting class.
      Returns:
      the GType