Enum Class OptionType

java.lang.Object
java.lang.Enum<OptionType>
org.webkitgtk.jsc.OptionType
All Implemented Interfaces:
Serializable, Comparable<OptionType>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum OptionType extends Enum<OptionType> implements Enumeration
Enum values for options types.
Since:
2.24
  • Enum Constant Details

    • BOOLEAN

      public static final OptionType BOOLEAN
      A gboolean option type.
    • INT

      public static final OptionType INT
      A gint option type.
    • UINT

      public static final OptionType UINT
      A guint option type.
    • SIZE

      public static final OptionType SIZE
      A gsize options type.
    • DOUBLE

      public static final OptionType DOUBLE
      A gdouble options type.
    • STRING

      public static final OptionType STRING
      A string option type.
    • RANGE_STRING

      public static final OptionType RANGE_STRING
      A range string option type.
  • Method Details

    • values

      public static OptionType[] 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 OptionType 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 OptionType of(int value)
      Create a new OptionType 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 OptionType of(MemorySegment address)
      Create a new OptionType 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