Package org.gnome.gtk
Class CssLocation
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.CssLocation
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.longRead the value of the fieldbytes.longRead the value of the fieldchars.longRead the value of the fieldline_bytes.longRead the value of the fieldline_chars.longRead the value of the fieldlines.voidwriteBytes(long bytes) Write a value in the fieldbytes.voidwriteChars(long chars) Write a value in the fieldchars.voidwriteLineBytes(long lineBytes) Write a value in the fieldline_bytes.voidwriteLineChars(long lineChars) Write a value in the fieldline_chars.voidwriteLines(long lines) Write a value in the fieldlines.Methods inherited from class org.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 fieldbyteschars- value for the fieldcharslines- value for the fieldlineslineBytes- value for the fieldlineByteslineChars- value for the fieldlineCharsarena- 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 fieldbyteschars- value for the fieldcharslines- value for the fieldlineslineBytes- value for the fieldlineByteslineChars- 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
-