Class ValueList
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.freedesktop.gstreamer.gst.ValueList
- All Implemented Interfaces:
Proxy
A fundamental type that describes an unordered list of
GValue-
Constructor Summary
ConstructorsConstructorDescriptionValueList(MemorySegment address) Create a ValueList 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()Return this instance as if it were its parent type.static voidConcatenates copies ofvalue1andvalue2into a list.static MemoryLayoutThe memory layout of the native struct.static intGets the number of values contained invalue.static @Nullable TypegetType()Get the GType of the ValueList class.static 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 TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ValueList
Create a ValueList instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Returns:
- the instance as if it were its 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 of
value1andvalue2.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
-