Package org.gnome.gsk
Class Shadow
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gsk.Shadow
-
Constructor Summary
ConstructorDescriptionShadow()
Allocate a new Shadow.Allocate a new Shadow.Shadow
(MemorySegment address) Create a Shadow proxy instance for the provided memory address.Allocate a new Shadow with the fields set to the provided values.Allocate a new Shadow with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldcolor
.float
readDx()
Read the value of the fielddx
.float
readDy()
Read the value of the fielddy
.float
Read the value of the fieldradius
.void
writeColor
(RGBA color) Write a value in the fieldcolor
.void
writeDx
(float dx) Write a value in the fielddx
.void
writeDy
(float dy) Write a value in the fielddy
.void
writeRadius
(float radius) Write a value in the fieldradius
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Shadow
Create a Shadow proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Shadow
Allocate a new Shadow.- Parameters:
arena
- to control the memory allocation scope
-
Shadow
public Shadow()Allocate a new Shadow. The memory is allocated withArena.ofAuto()
. -
Shadow
Allocate a new Shadow with the fields set to the provided values.- Parameters:
color
- value for the fieldcolor
dx
- value for the fielddx
dy
- value for the fielddy
radius
- value for the fieldradius
arena
- to control the memory allocation scope
-
Shadow
Allocate a new Shadow with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
color
- value for the fieldcolor
dx
- value for the fielddx
dy
- value for the fielddy
radius
- value for the fieldradius
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readColor
-
writeColor
Write a value in the fieldcolor
.- Parameters:
color
- The new value for the fieldcolor
-
readDx
public float readDx()Read the value of the fielddx
.- Returns:
- The value of the field
dx
-
writeDx
public void writeDx(float dx) Write a value in the fielddx
.- Parameters:
dx
- The new value for the fielddx
-
readDy
public float readDy()Read the value of the fielddy
.- Returns:
- The value of the field
dy
-
writeDy
public void writeDy(float dy) Write a value in the fielddy
.- Parameters:
dy
- The new value for the fielddy
-
readRadius
public float readRadius()Read the value of the fieldradius
.- Returns:
- The value of the field
radius
-
writeRadius
public void writeRadius(float radius) Write a value in the fieldradius
.- Parameters:
radius
- The new value for the fieldradius
-