Class PositionData

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.rsvg.PositionData
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class PositionData extends ProxyInstance
Position of an SVG fragment from Handle.getPositionSub(PositionData, String). Please the deprecation documentation for that function.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Allocate a new PositionData.
    PositionData(int x, int y)
    Deprecated.
    Allocate a new PositionData with the fields set to the provided values.
    PositionData(int x, int y, Arena arena)
    Deprecated.
    Allocate a new PositionData with the fields set to the provided values.
    Deprecated.
    Allocate a new PositionData.
    Deprecated.
    Create a PositionData proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    The memory layout of the native struct.
    int
    Deprecated.
    Read the value of the field x.
    int
    Deprecated.
    Read the value of the field y.
    void
    writeX(int x)
    Deprecated.
    Write a value in the field x.
    void
    writeY(int y)
    Deprecated.
    Write a value in the field y.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PositionData

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

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

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

      public PositionData(int x, int y, Arena arena)
      Deprecated.
      Allocate a new PositionData with the fields set to the provided values.
      Parameters:
      x - value for the field x
      y - value for the field y
      arena - to control the memory allocation scope
    • PositionData

      public PositionData(int x, int y)
      Deprecated.
      Allocate a new PositionData with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      x - value for the field x
      y - value for the field y
  • Method Details

    • getMemoryLayout

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

      public int readX()
      Deprecated.
      Read the value of the field x.
      Returns:
      The value of the field x
    • writeX

      public void writeX(int x)
      Deprecated.
      Write a value in the field x.
      Parameters:
      x - The new value for the field x
    • readY

      public int readY()
      Deprecated.
      Read the value of the field y.
      Returns:
      The value of the field y
    • writeY

      public void writeY(int y)
      Deprecated.
      Write a value in the field y.
      Parameters:
      y - The new value for the field y