Package org.gnome.rsvg
Class PositionData
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.rsvg.PositionData
- All Implemented Interfaces:
Proxy
Deprecated.
Position of an SVG fragment from
Handle.getPositionSub(org.gnome.rsvg.PositionData, java.lang.String). Please
the deprecation documentation for that function.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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.PositionData(Arena arena) Deprecated.Allocate a new PositionData.PositionData(MemorySegment address) Deprecated.Create a PositionData proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutDeprecated.The memory layout of the native struct.intreadX()Deprecated.Read the value of the fieldx.intreadY()Deprecated.Read the value of the fieldy.voidwriteX(int x) Deprecated.Write a value in the fieldx.voidwriteY(int y) Deprecated.Write a value in the fieldy.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PositionData
Deprecated.Create a PositionData proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
PositionData
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 withArena.ofAuto(). -
PositionData
Deprecated.Allocate a new PositionData with the fields set to the provided values.- Parameters:
x- value for the fieldxy- value for the fieldyarena- 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 withArena.ofAuto().- Parameters:
x- value for the fieldxy- value for the fieldy
-
-
Method Details
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
readX
public int readX()Deprecated.Read the value of the fieldx.- Returns:
- The value of the field
x
-
writeX
public void writeX(int x) Deprecated.Write a value in the fieldx.- Parameters:
x- The new value for the fieldx
-
readY
public int readY()Deprecated.Read the value of the fieldy.- Returns:
- The value of the field
y
-
writeY
public void writeY(int y) Deprecated.Write a value in the fieldy.- Parameters:
y- The new value for the fieldy
-
Handle.getGeometryForLayer(java.lang.String, org.gnome.rsvg.Rectangle, org.gnome.rsvg.Rectangle, org.gnome.rsvg.Rectangle)instead.