Class DimensionData

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

@Generated("org.javagi.JavaGI") @Deprecated public class DimensionData extends ProxyInstance
Dimensions of an SVG image from Handle.getDimensions(DimensionData), or an individual element from Handle.getDimensionsSub(DimensionData, String). Please see the deprecation documentation for those functions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    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.
    Deprecated.
    Allocate a new DimensionData.
    Deprecated.
    Create a DimensionData proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    The memory layout of the native struct.
    double
    Deprecated.
    Read the value of the field em.
    double
    Deprecated.
    Read the value of the field ex.
    int
    Deprecated.
    Read the value of the field height.
    int
    Deprecated.
    Read the value of the field width.
    void
    writeEm(double em)
    Deprecated.
    Write a value in the field em.
    void
    writeEx(double ex)
    Deprecated.
    Write a value in the field ex.
    void
    writeHeight(int height)
    Deprecated.
    Write a value in the field height.
    void
    writeWidth(int width)
    Deprecated.
    Write a value in the field width.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

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

    • DimensionData

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

      public DimensionData(Arena arena)
      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 with Arena.ofAuto().
    • DimensionData

      public DimensionData(int width, int height, double em, double ex, Arena arena)
      Deprecated.
      Allocate a new DimensionData with the fields set to the provided values.
      Parameters:
      width - value for the field width
      height - value for the field height
      em - value for the field em
      ex - value for the field ex
      arena - 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 with Arena.ofAuto().
      Parameters:
      width - value for the field width
      height - value for the field height
      em - value for the field em
      ex - value for the field ex
  • Method Details

    • getMemoryLayout

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

      public int readWidth()
      Deprecated.
      Read the value of the field width.
      Returns:
      The value of the field width
    • writeWidth

      public void writeWidth(int width)
      Deprecated.
      Write a value in the field width.
      Parameters:
      width - The new value for the field width
    • readHeight

      public int readHeight()
      Deprecated.
      Read the value of the field height.
      Returns:
      The value of the field height
    • writeHeight

      public void writeHeight(int height)
      Deprecated.
      Write a value in the field height.
      Parameters:
      height - The new value for the field height
    • readEm

      public double readEm()
      Deprecated.
      Read the value of the field em.
      Returns:
      The value of the field em
    • writeEm

      public void writeEm(double em)
      Deprecated.
      Write a value in the field em.
      Parameters:
      em - The new value for the field em
    • readEx

      public double readEx()
      Deprecated.
      Read the value of the field ex.
      Returns:
      The value of the field ex
    • writeEx

      public void writeEx(double ex)
      Deprecated.
      Write a value in the field ex.
      Parameters:
      ex - The new value for the field ex