Class DrawState

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.DrawState
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DrawState extends ProxyInstance
Current drawing state.
Since:
4.0.0
  • Constructor Details

    • DrawState

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

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

      public DrawState()
      Allocate a new DrawState. The memory is allocated with Arena.ofAuto().
    • DrawState

      public DrawState(Bool pathOpen, float pathStartX, float pathStartY, float currentX, float currentY, Arena arena)
      Allocate a new DrawState with the fields set to the provided values.
      Parameters:
      pathOpen - value for the field pathOpen
      pathStartX - value for the field pathStartX
      pathStartY - value for the field pathStartY
      currentX - value for the field currentX
      currentY - value for the field currentY
      arena - to control the memory allocation scope
    • DrawState

      public DrawState(Bool pathOpen, float pathStartX, float pathStartY, float currentX, float currentY)
      Allocate a new DrawState with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      pathOpen - value for the field pathOpen
      pathStartX - value for the field pathStartX
      pathStartY - value for the field pathStartY
      currentX - value for the field currentX
      currentY - value for the field currentY
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the DrawState class.
      Returns:
      the GType
    • getMemoryLayout

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

      public Bool readPathOpen()
      Read the value of the field path_open.
      Returns:
      The value of the field path_open
    • writePathOpen

      public void writePathOpen(Bool pathOpen)
      Write a value in the field path_open.
      Parameters:
      pathOpen - The new value for the field path_open
    • readPathStartX

      public float readPathStartX()
      Read the value of the field path_start_x.
      Returns:
      The value of the field path_start_x
    • writePathStartX

      public void writePathStartX(float pathStartX)
      Write a value in the field path_start_x.
      Parameters:
      pathStartX - The new value for the field path_start_x
    • readPathStartY

      public float readPathStartY()
      Read the value of the field path_start_y.
      Returns:
      The value of the field path_start_y
    • writePathStartY

      public void writePathStartY(float pathStartY)
      Write a value in the field path_start_y.
      Parameters:
      pathStartY - The new value for the field path_start_y
    • readCurrentX

      public float readCurrentX()
      Read the value of the field current_x.
      Returns:
      The value of the field current_x
    • writeCurrentX

      public void writeCurrentX(float currentX)
      Write a value in the field current_x.
      Parameters:
      currentX - The new value for the field current_x
    • readCurrentY

      public float readCurrentY()
      Read the value of the field current_y.
      Returns:
      The value of the field current_y
    • writeCurrentY

      public void writeCurrentY(float currentY)
      Write a value in the field current_y.
      Parameters:
      currentY - The new value for the field current_y