Package org.freedesktop.gstreamer.gst
Class ParamSpecFraction
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.int
Read the value of the fielddef_den
.int
Read the value of the fielddef_num
.int
Read the value of the fieldmax_den
.int
Read the value of the fieldmax_num
.int
Read the value of the fieldmin_den
.int
Read the value of the fieldmin_num
.Read the value of the fieldparent_instance
.void
writeDefDen
(int defDen) Write a value in the fielddef_den
.void
writeDefNum
(int defNum) Write a value in the fielddef_num
.void
writeMaxDen
(int maxDen) Write a value in the fieldmax_den
.void
writeMaxNum
(int maxNum) Write a value in the fieldmax_num
.void
writeMinDen
(int minDen) Write a value in the fieldmin_den
.void
writeMinNum
(int minNum) Write a value in the fieldmin_num
.void
writeParentInstance
(ParamSpec parentInstance) Write a value in the fieldparent_instance
.Methods inherited from class io.github.jwharm.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 fieldparentInstance
minNum
- value for the fieldminNum
minDen
- value for the fieldminDen
maxNum
- value for the fieldmaxNum
maxDen
- value for the fieldmaxDen
defNum
- value for the fielddefNum
defDen
- value for the fielddefDen
arena
- 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 fieldparentInstance
minNum
- value for the fieldminNum
minDen
- value for the fieldminDen
maxNum
- value for the fieldmaxNum
maxDen
- value for the fieldmaxDen
defNum
- value for the fielddefNum
defDen
- 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
-