Class ParamSpecVariant

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ParamSpecVariant extends ParamSpec

A GParamSpec derived structure that contains the meta data for GVariant properties.

When comparing values with g_param_values_cmp(), scalar values with the same type will be compared with g_variant_compare(). Other non-null variants will be checked for equality with g_variant_equal(), and their sort order is otherwise undefined. null is ordered before non-null variants. Two null values compare equal.

Since:
2.26
  • Constructor Details

    • ParamSpecVariant

      public ParamSpecVariant(MemorySegment address)
      Create a ParamSpecVariant instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static Type getType()
      Get the GType of the GParamSpecVariant class.
      Returns:
      always Types.PARAM
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ParamSpecVariant asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class ParamSpec
      Returns:
      the instance as if it were its parent type