Class SvgLocation
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.SvgLocation
- All Implemented Interfaces:
Proxy
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 Summary
ConstructorsConstructorDescriptionAllocate a new SvgLocation.SvgLocation(long bytes, long lines, long lineChars) Allocate a new SvgLocation with the fields set to the provided values.SvgLocation(long bytes, long lines, long lineChars, Arena arena) Allocate a new SvgLocation with the fields set to the provided values.SvgLocation(Arena arena) Allocate a new SvgLocation.SvgLocation(MemorySegment address) Create a SvgLocation proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.longRead the value of the fieldbytes.longRead the value of the fieldline_chars.longRead the value of the fieldlines.voidwriteBytes(long bytes) Write a value in the fieldbytes.voidwriteLineChars(long lineChars) Write a value in the fieldline_chars.voidwriteLines(long lines) Write a value in the fieldlines.Methods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SvgLocation
Create a SvgLocation proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SvgLocation
Allocate a new SvgLocation.- Parameters:
arena- to control the memory allocation scope
-
SvgLocation
public SvgLocation()Allocate a new SvgLocation. The memory is allocated withArena.ofAuto(). -
SvgLocation
Allocate a new SvgLocation with the fields set to the provided values.- Parameters:
bytes- value for the fieldbyteslines- value for the fieldlineslineChars- value for the fieldlineCharsarena- 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 withArena.ofAuto().- Parameters:
bytes- value for the fieldbyteslines- value for the fieldlineslineChars- value for the fieldlineChars
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readBytes
public long readBytes()Read the value of the fieldbytes.- Returns:
- The value of the field
bytes
-
writeBytes
public void writeBytes(long bytes) Write a value in the fieldbytes.- Parameters:
bytes- The new value for the fieldbytes
-
readLines
public long readLines()Read the value of the fieldlines.- Returns:
- The value of the field
lines
-
writeLines
public void writeLines(long lines) Write a value in the fieldlines.- Parameters:
lines- The new value for the fieldlines
-
readLineChars
public long readLineChars()Read the value of the fieldline_chars.- Returns:
- The value of the field
line_chars
-
writeLineChars
public void writeLineChars(long lineChars) Write a value in the fieldline_chars.- Parameters:
lineChars- The new value for the fieldline_chars
-