Package org.gnome.gobject
Class ParamSpecVariant
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.ParamSpec
org.gnome.gobject.ParamSpecVariant
- All Implemented Interfaces:
Proxy
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gnome.gobject.ParamSpec
ParamSpec.ParamSpecClass, ParamSpec.ParamSpecImpl
-
Constructor Summary
ConstructorDescriptionParamSpecVariant
(MemorySegment address) Create a ParamSpecVariant proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected ParamSpecVariant
asParent()
Returns this instance as if it were its parent type.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the GParamSpecVariant classMethods inherited from class org.gnome.gobject.ParamSpec
finalize_, getBlurb, getDefaultValue, getName, getNameQuark, getNick, getQdata, getRedirectTarget, internal, internal, isValidName, ref, refSink, setQdata, setQdataFull, sink, stealQdata, unref, valueIsValid, valuesCmp, valueSetDefault, valueValidate
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ParamSpecVariant
Create a ParamSpecVariant proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
Get the GType of the GParamSpecVariant class- Returns:
- always
Types.PARAM
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type.
-