Class ParamSpecFraction

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ParamSpecFraction
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ParamSpecFraction extends ProxyInstance
A GParamSpec derived structure that contains the meta data for fractional properties.
  • Constructor Details

    • ParamSpecFraction

      public ParamSpecFraction(MemorySegment address)
      Create a ParamSpecFraction proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ParamSpecFraction

      public ParamSpecFraction(Arena arena)
      Allocate a new ParamSpecFraction.
      Parameters:
      arena - to control the memory allocation scope
    • ParamSpecFraction

      public ParamSpecFraction()
      Allocate a new ParamSpecFraction. The memory is allocated with Arena.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 field parentInstance
      minNum - value for the field minNum
      minDen - value for the field minDen
      maxNum - value for the field maxNum
      maxDen - value for the field maxDen
      defNum - value for the field defNum
      defDen - value for the field defDen
      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 with Arena.ofAuto().
      Parameters:
      parentInstance - value for the field parentInstance
      minNum - value for the field minNum
      minDen - value for the field minDen
      maxNum - value for the field maxNum
      maxDen - value for the field maxDen
      defNum - value for the field defNum
      defDen - value for the field defDen
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readParentInstance

      public @Nullable ParamSpec readParentInstance()
      Read the value of the field parent_instance.
      Returns:
      The value of the field parent_instance
    • writeParentInstance

      public void writeParentInstance(@Nullable ParamSpec parentInstance)
      Write a value in the field parent_instance.
      Parameters:
      parentInstance - The new value for the field parent_instance
    • readMinNum

      public int readMinNum()
      Read the value of the field min_num.
      Returns:
      The value of the field min_num
    • writeMinNum

      public void writeMinNum(int minNum)
      Write a value in the field min_num.
      Parameters:
      minNum - The new value for the field min_num
    • readMinDen

      public int readMinDen()
      Read the value of the field min_den.
      Returns:
      The value of the field min_den
    • writeMinDen

      public void writeMinDen(int minDen)
      Write a value in the field min_den.
      Parameters:
      minDen - The new value for the field min_den
    • readMaxNum

      public int readMaxNum()
      Read the value of the field max_num.
      Returns:
      The value of the field max_num
    • writeMaxNum

      public void writeMaxNum(int maxNum)
      Write a value in the field max_num.
      Parameters:
      maxNum - The new value for the field max_num
    • readMaxDen

      public int readMaxDen()
      Read the value of the field max_den.
      Returns:
      The value of the field max_den
    • writeMaxDen

      public void writeMaxDen(int maxDen)
      Write a value in the field max_den.
      Parameters:
      maxDen - The new value for the field max_den
    • readDefNum

      public int readDefNum()
      Read the value of the field def_num.
      Returns:
      The value of the field def_num
    • writeDefNum

      public void writeDefNum(int defNum)
      Write a value in the field def_num.
      Parameters:
      defNum - The new value for the field def_num
    • readDefDen

      public int readDefDen()
      Read the value of the field def_den.
      Returns:
      The value of the field def_den
    • writeDefDen

      public void writeDefDen(int defDen)
      Write a value in the field def_den.
      Parameters:
      defDen - The new value for the field def_den