Package org.freedesktop.gstreamer.gst
Class ValueList
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.freedesktop.gstreamer.gst.ValueList
-
Constructor Summary
ConstructorDescriptionValueList
(MemorySegment address) Create a ValueList proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendAndTakeValue
(Value value, Value appendValue) AppendsappendValue
to the GstValueList invalue
.static void
appendValue
(Value value, Value appendValue) AppendsappendValue
to the GstValueList invalue
.protected ValueList
asParent()
Returns this instance as if it were its parent type.static void
Concatenates copies ofvalue1
andvalue2
into a list.static int
Gets the number of values contained invalue
.static Type
getType()
Get the GType of the ValueList classstatic Value
Gets the value that is a member of the list contained invalue
and has the indexindex
.static Value
Initializes and pre-allocates aGValue
of typeGST_TYPE_LIST
.static void
Merges copies ofvalue1
andvalue2
.static void
prependValue
(Value value, Value prependValue) PrependsprependValue
to the GstValueList invalue
.Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getMemoryLayout, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ValueList
Create a ValueList proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
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. -
appendAndTakeValue
-
appendValue
-
concat
Concatenates copies ofvalue1
andvalue2
into a list. Values that are not of typeGST_TYPE_LIST
are treated as if they were lists of length 1.dest
will be initialized to the typeGST_TYPE_LIST
.- Parameters:
dest
- an uninitializedGValue
to take the resultvalue1
- aGValue
value2
- aGValue
-
getSize
Gets the number of values contained invalue
.- Parameters:
value
- aGValue
of typeGST_TYPE_LIST
- Returns:
- the number of values
-
getValue
-
init
-
merge
Merges copies ofvalue1
andvalue2
. Values that are not of typeGST_TYPE_LIST
are treated as if they were lists of length 1.The result will be put into
dest
and will either be a list that will not contain any duplicates, or a non-list type (ifvalue1
andvalue2
were equal).- Parameters:
dest
- an uninitializedGValue
to take the resultvalue1
- aGValue
value2
- aGValue
-
prependValue
-