Package org.freedesktop.gstreamer.gst
Class ParamSpecFraction
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ParamSpecFraction
- All Implemented Interfaces:
Proxy
A GParamSpec derived structure that contains the meta data for fractional
properties.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new ParamSpecFraction.ParamSpecFraction(Arena arena) Allocate a new ParamSpecFraction.ParamSpecFraction(MemorySegment address) Create a ParamSpecFraction proxy instance for the provided memory address.ParamSpecFraction(ParamSpec parentInstance, int minNum, int minDen, int maxNum, int maxDen, int defNum, int defDen) Allocate a new ParamSpecFraction with the fields set to the provided values.ParamSpecFraction(ParamSpec parentInstance, int minNum, int minDen, int maxNum, int maxDen, int defNum, int defDen, Arena arena) Allocate a new ParamSpecFraction with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.intRead the value of the fielddef_den.intRead the value of the fielddef_num.intRead the value of the fieldmax_den.intRead the value of the fieldmax_num.intRead the value of the fieldmin_den.intRead the value of the fieldmin_num.@Nullable ParamSpecRead the value of the fieldparent_instance.voidwriteDefDen(int defDen) Write a value in the fielddef_den.voidwriteDefNum(int defNum) Write a value in the fielddef_num.voidwriteMaxDen(int maxDen) Write a value in the fieldmax_den.voidwriteMaxNum(int maxNum) Write a value in the fieldmax_num.voidwriteMinDen(int minDen) Write a value in the fieldmin_den.voidwriteMinNum(int minNum) Write a value in the fieldmin_num.voidwriteParentInstance(@Nullable ParamSpec parentInstance) Write a value in the fieldparent_instance.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ParamSpecFraction
Create a ParamSpecFraction proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ParamSpecFraction
Allocate a new ParamSpecFraction.- Parameters:
arena- to control the memory allocation scope
-
ParamSpecFraction
public ParamSpecFraction()Allocate a new ParamSpecFraction. The memory is allocated withArena.ofAuto(). -
ParamSpecFraction
public ParamSpecFraction(ParamSpec parentInstance, int minNum, int minDen, int maxNum, int maxDen, int defNum, int defDen, Arena arena) Allocate a new ParamSpecFraction with the fields set to the provided values.- Parameters:
parentInstance- value for the fieldparentInstanceminNum- value for the fieldminNumminDen- value for the fieldminDenmaxNum- value for the fieldmaxNummaxDen- value for the fieldmaxDendefNum- value for the fielddefNumdefDen- value for the fielddefDenarena- to control the memory allocation scope
-
ParamSpecFraction
public ParamSpecFraction(ParamSpec parentInstance, int minNum, int minDen, int maxNum, int maxDen, int defNum, int defDen) Allocate a new ParamSpecFraction with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
parentInstance- value for the fieldparentInstanceminNum- value for the fieldminNumminDen- value for the fieldminDenmaxNum- value for the fieldmaxNummaxDen- value for the fieldmaxDendefNum- value for the fielddefNumdefDen- value for the fielddefDen
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readParentInstance
Read the value of the fieldparent_instance.- Returns:
- The value of the field
parent_instance
-
writeParentInstance
Write a value in the fieldparent_instance.- Parameters:
parentInstance- The new value for the fieldparent_instance
-
readMinNum
public int readMinNum()Read the value of the fieldmin_num.- Returns:
- The value of the field
min_num
-
writeMinNum
public void writeMinNum(int minNum) Write a value in the fieldmin_num.- Parameters:
minNum- The new value for the fieldmin_num
-
readMinDen
public int readMinDen()Read the value of the fieldmin_den.- Returns:
- The value of the field
min_den
-
writeMinDen
public void writeMinDen(int minDen) Write a value in the fieldmin_den.- Parameters:
minDen- The new value for the fieldmin_den
-
readMaxNum
public int readMaxNum()Read the value of the fieldmax_num.- Returns:
- The value of the field
max_num
-
writeMaxNum
public void writeMaxNum(int maxNum) Write a value in the fieldmax_num.- Parameters:
maxNum- The new value for the fieldmax_num
-
readMaxDen
public int readMaxDen()Read the value of the fieldmax_den.- Returns:
- The value of the field
max_den
-
writeMaxDen
public void writeMaxDen(int maxDen) Write a value in the fieldmax_den.- Parameters:
maxDen- The new value for the fieldmax_den
-
readDefNum
public int readDefNum()Read the value of the fielddef_num.- Returns:
- The value of the field
def_num
-
writeDefNum
public void writeDefNum(int defNum) Write a value in the fielddef_num.- Parameters:
defNum- The new value for the fielddef_num
-
readDefDen
public int readDefDen()Read the value of the fielddef_den.- Returns:
- The value of the field
def_den
-
writeDefDen
public void writeDefDen(int defDen) Write a value in the fielddef_den.- Parameters:
defDen- The new value for the fielddef_den
-