Package org.gnome.gtk
Class CssLocation
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.CssLocation
-
Constructor Summary
ConstructorDescriptionAllocate a new CssLocation.CssLocation
(long bytes, long chars, long lines, long lineBytes, long lineChars) Allocate a new CssLocation with the fields set to the provided values.CssLocation
(long bytes, long chars, long lines, long lineBytes, long lineChars, Arena arena) Allocate a new CssLocation with the fields set to the provided values.CssLocation
(Arena arena) Allocate a new CssLocation.CssLocation
(MemorySegment address) Create a CssLocation proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.long
Read the value of the fieldbytes
.long
Read the value of the fieldchars
.long
Read the value of the fieldline_bytes
.long
Read the value of the fieldline_chars
.long
Read the value of the fieldlines
.void
writeBytes
(long bytes) Write a value in the fieldbytes
.void
writeChars
(long chars) Write a value in the fieldchars
.void
writeLineBytes
(long lineBytes) Write a value in the fieldline_bytes
.void
writeLineChars
(long lineChars) Write a value in the fieldline_chars
.void
writeLines
(long lines) Write a value in the fieldlines
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CssLocation
Create a CssLocation proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
CssLocation
Allocate a new CssLocation.- Parameters:
arena
- to control the memory allocation scope
-
CssLocation
public CssLocation()Allocate a new CssLocation. The memory is allocated withArena.ofAuto()
. -
CssLocation
Allocate a new CssLocation with the fields set to the provided values.- Parameters:
bytes
- value for the fieldbytes
chars
- value for the fieldchars
lines
- value for the fieldlines
lineBytes
- value for the fieldlineBytes
lineChars
- value for the fieldlineChars
arena
- to control the memory allocation scope
-
CssLocation
public CssLocation(long bytes, long chars, long lines, long lineBytes, long lineChars) Allocate a new CssLocation with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
bytes
- value for the fieldbytes
chars
- value for the fieldchars
lines
- value for the fieldlines
lineBytes
- value for the fieldlineBytes
lineChars
- 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
-
readChars
public long readChars()Read the value of the fieldchars
.- Returns:
- The value of the field
chars
-
writeChars
public void writeChars(long chars) Write a value in the fieldchars
.- Parameters:
chars
- The new value for the fieldchars
-
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
-
readLineBytes
public long readLineBytes()Read the value of the fieldline_bytes
.- Returns:
- The value of the field
line_bytes
-
writeLineBytes
public void writeLineBytes(long lineBytes) Write a value in the fieldline_bytes
.- Parameters:
lineBytes
- The new value for the fieldline_bytes
-
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
-