Class SvgLocation

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class SvgLocation extends ProxyInstance

Provides information about a location in an SVG document.

The information should be considered approximate; it is meant to provide feedback for errors in an editor.

Since:
4.22
  • Constructor Details

    • SvgLocation

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

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

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

      public SvgLocation(long bytes, long lines, long lineChars, Arena arena)
      Allocate a new SvgLocation with the fields set to the provided values.
      Parameters:
      bytes - value for the field bytes
      lines - value for the field lines
      lineChars - value for the field lineChars
      arena - to control the memory allocation scope
    • SvgLocation

      public SvgLocation(long bytes, long lines, long lineChars)
      Allocate a new SvgLocation with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      bytes - value for the field bytes
      lines - value for the field lines
      lineChars - value for the field lineChars
  • Method Details

    • getMemoryLayout

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

      public long readBytes()
      Read the value of the field bytes.
      Returns:
      The value of the field bytes
    • writeBytes

      public void writeBytes(long bytes)
      Write a value in the field bytes.
      Parameters:
      bytes - The new value for the field bytes
    • readLines

      public long readLines()
      Read the value of the field lines.
      Returns:
      The value of the field lines
    • writeLines

      public void writeLines(long lines)
      Write a value in the field lines.
      Parameters:
      lines - The new value for the field lines
    • readLineChars

      public long readLineChars()
      Read the value of the field line_chars.
      Returns:
      The value of the field line_chars
    • writeLineChars

      public void writeLineChars(long lineChars)
      Write a value in the field line_chars.
      Parameters:
      lineChars - The new value for the field line_chars