Package org.gnome.rsvg
Class DimensionData
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.rsvg.DimensionData
- All Implemented Interfaces:
Proxy
Deprecated.
Dimensions of an SVG image from
Handle.getDimensions(org.gnome.rsvg.DimensionData), or an
individual element from Handle.getDimensionsSub(org.gnome.rsvg.DimensionData, java.lang.String). Please see
the deprecation documentation for those functions.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Allocate a new DimensionData.DimensionData(int width, int height, double em, double ex) Deprecated.Allocate a new DimensionData with the fields set to the provided values.DimensionData(int width, int height, double em, double ex, Arena arena) Deprecated.Allocate a new DimensionData with the fields set to the provided values.DimensionData(Arena arena) Deprecated.Allocate a new DimensionData.DimensionData(MemorySegment address) Deprecated.Create a DimensionData proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutDeprecated.The memory layout of the native struct.doublereadEm()Deprecated.Read the value of the fieldem.doublereadEx()Deprecated.Read the value of the fieldex.intDeprecated.Read the value of the fieldheight.intDeprecated.Read the value of the fieldwidth.voidwriteEm(double em) Deprecated.Write a value in the fieldem.voidwriteEx(double ex) Deprecated.Write a value in the fieldex.voidwriteHeight(int height) Deprecated.Write a value in the fieldheight.voidwriteWidth(int width) Deprecated.Write a value in the fieldwidth.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DimensionData
Deprecated.Create a DimensionData proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DimensionData
Deprecated.Allocate a new DimensionData.- Parameters:
arena- to control the memory allocation scope
-
DimensionData
public DimensionData()Deprecated.Allocate a new DimensionData. The memory is allocated withArena.ofAuto(). -
DimensionData
Deprecated.Allocate a new DimensionData with the fields set to the provided values.- Parameters:
width- value for the fieldwidthheight- value for the fieldheightem- value for the fieldemex- value for the fieldexarena- to control the memory allocation scope
-
DimensionData
public DimensionData(int width, int height, double em, double ex) Deprecated.Allocate a new DimensionData with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
width- value for the fieldwidthheight- value for the fieldheightem- value for the fieldemex- value for the fieldex
-
-
Method Details
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
readWidth
public int readWidth()Deprecated.Read the value of the fieldwidth.- Returns:
- The value of the field
width
-
writeWidth
public void writeWidth(int width) Deprecated.Write a value in the fieldwidth.- Parameters:
width- The new value for the fieldwidth
-
readHeight
public int readHeight()Deprecated.Read the value of the fieldheight.- Returns:
- The value of the field
height
-
writeHeight
public void writeHeight(int height) Deprecated.Write a value in the fieldheight.- Parameters:
height- The new value for the fieldheight
-
readEm
public double readEm()Deprecated.Read the value of the fieldem.- Returns:
- The value of the field
em
-
writeEm
public void writeEm(double em) Deprecated.Write a value in the fieldem.- Parameters:
em- The new value for the fieldem
-
readEx
public double readEx()Deprecated.Read the value of the fieldex.- Returns:
- The value of the field
ex
-
writeEx
public void writeEx(double ex) Deprecated.Write a value in the fieldex.- Parameters:
ex- The new value for the fieldex
-
Handle.getIntrinsicSizeInPixels(org.javagi.base.Out<java.lang.Double>, org.javagi.base.Out<java.lang.Double>)orHandle.getGeometryForLayer(java.lang.String, org.gnome.rsvg.Rectangle, org.gnome.rsvg.Rectangle, org.gnome.rsvg.Rectangle)instead.