Package org.freedesktop.gstreamer.gst
Class ValueList
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.freedesktop.gstreamer.gst.ValueList
-
Constructor Summary
ConstructorsConstructorDescriptionValueList(MemorySegment address) Create a ValueList proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendAndTakeValue(Value value, Value appendValue) AppendsappendValueto the GstValueList invalue.static voidappendValue(Value value, Value appendValue) AppendsappendValueto the GstValueList invalue.protected ValueListasParent()Returns this instance as if it were its parent type.static voidConcatenates copies ofvalue1andvalue2into a list.static intGets the number of values contained invalue.static @Nullable TypegetType()Get the GType of the ValueList classstatic ValueGets the value that is a member of the list contained invalueand has the indexindex.static ValueInitializes and pre-allocates aGValueof typeGST_TYPE_LIST.static voidMerges copies ofvalue1andvalue2.Values that are not of typeGST_TYPE_LISTare treated as if they were lists of length 1.static voidprependValue(Value value, Value prependValue) PrependsprependValueto the GstValueList invalue.Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getMemoryLayout, getPrivate, readGClass, writeGClassMethods inherited from class org.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 Javasuperkeyword, 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 ofvalue1andvalue2into a list. Values that are not of typeGST_TYPE_LISTare treated as if they were lists of length 1.destwill be initialized to the typeGST_TYPE_LIST.- Parameters:
dest- an uninitializedGValueto take the resultvalue1- aGValuevalue2- aGValue
-
getSize
Gets the number of values contained invalue.- Parameters:
value- aGValueof typeGST_TYPE_LIST- Returns:
- the number of values
-
getValue
-
init
Initializes and pre-allocates aGValueof typeGST_TYPE_LIST.- Parameters:
value- A zero-filled (uninitialized)GValuestructureprealloc- The number of entries to pre-allocate in the list- Returns:
- The
GValuestructure that has been passed in - Since:
- 1.18
-
merge
Merges copies ofvalue1andvalue2.Values that are not of typeGST_TYPE_LISTare treated as if they were lists of length 1.The result will be put into
destand will either be a list that will not contain any duplicates, or a non-list type (ifvalue1andvalue2were equal).- Parameters:
dest- an uninitializedGValueto take the resultvalue1- aGValuevalue2- aGValue
-
prependValue
-