Enum Class SettingsBindFlags

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

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

Flags used when creating a binding.

These flags determine in which direction the binding works. The default is to synchronize in both directions.

  • Enum Constant Details

    • DEFAULT

      public static final SettingsBindFlags DEFAULT
      Equivalent to G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET
    • GET

      public static final SettingsBindFlags GET
      Update the GObject property when the setting changes. It is an error to use this flag if the property is not writable.
    • SET

      public static final SettingsBindFlags SET
      Update the setting when the GObject property changes. It is an error to use this flag if the property is not readable.
    • NO_SENSITIVITY

      public static final SettingsBindFlags NO_SENSITIVITY
      Do not try to bind a ‘sensitivity’ property to the writability of the setting
    • GET_NO_CHANGES

      public static final SettingsBindFlags GET_NO_CHANGES
      When set in addition to Gio.SettingsBindFlags.GET, set the GObject property value initially from the setting, but do not listen for changes of the setting
    • INVERT_BOOLEAN

      public static final SettingsBindFlags INVERT_BOOLEAN
      When passed to Settings.bind(String, GObject, String, Set), uses a pair of mapping functions that invert the boolean value when mapping between the setting and the property. The setting and property must both be booleans. You cannot pass this flag to Settings.bindWithMapping(String, GObject, String, Set, Closure, Closure).
  • Method Details

    • values

      public static SettingsBindFlags[] 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 SettingsBindFlags 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
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<SettingsBindFlags> of(int flags)
      Create a new EnumSet<SettingsBindFlags> for the provided bitfield
      Parameters:
      flags - the SettingsBindFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<SettingsBindFlags> of(MemorySegment address)
      Create a new EnumSet<SettingsBindFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

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