Package org.freedesktop.gstreamer.gst
Class FormatDefinition
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.FormatDefinition
-
Constructor Summary
ConstructorDescriptionAllocate a new FormatDefinition.FormatDefinition
(Arena arena) Allocate a new FormatDefinition.FormatDefinition
(MemorySegment address) Create a FormatDefinition proxy instance for the provided memory address.FormatDefinition
(Format value, String nick, String description, Quark quark) Allocate a new FormatDefinition with the fields set to the provided values.Allocate a new FormatDefinition with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fielddescription
.readNick()
Read the value of the fieldnick
.Read the value of the fieldquark
.Read the value of the fieldvalue
.void
writeDescription
(String description, Arena _arena) Write a value in the fielddescription
.void
Write a value in the fieldnick
.void
writeQuark
(Quark quark) Write a value in the fieldquark
.void
writeValue
(Format value) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FormatDefinition
Create a FormatDefinition proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
FormatDefinition
Allocate a new FormatDefinition.- Parameters:
arena
- to control the memory allocation scope
-
FormatDefinition
public FormatDefinition()Allocate a new FormatDefinition. The memory is allocated withArena.ofAuto()
. -
FormatDefinition
Allocate a new FormatDefinition with the fields set to the provided values.- Parameters:
value
- value for the fieldvalue
nick
- value for the fieldnick
description
- value for the fielddescription
quark
- value for the fieldquark
arena
- to control the memory allocation scope
-
FormatDefinition
Allocate a new FormatDefinition with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
value
- value for the fieldvalue
nick
- value for the fieldnick
description
- value for the fielddescription
quark
- value for the fieldquark
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readValue
-
writeValue
Write a value in the fieldvalue
.- Parameters:
value
- The new value for the fieldvalue
-
readNick
-
writeNick
-
readDescription
Read the value of the fielddescription
.- Returns:
- The value of the field
description
-
writeDescription
-
readQuark
-
writeQuark
Write a value in the fieldquark
.- Parameters:
quark
- The new value for the fieldquark
-