Package org.gnome.gsk
Class Shadow
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gsk.Shadow
-
Constructor Summary
ConstructorsConstructorDescriptionShadow()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 MemoryLayoutThe memory layout of the native struct.@Nullable RGBARead the value of the fieldcolor.floatreadDx()Read the value of the fielddx.floatreadDy()Read the value of the fielddy.floatRead the value of the fieldradius.voidwriteColor(@Nullable RGBA color) Write a value in the fieldcolor.voidwriteDx(float dx) Write a value in the fielddx.voidwriteDy(float dy) Write a value in the fielddy.voidwriteRadius(float radius) Write a value in the fieldradius.Methods inherited from class org.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 fieldcolordx- value for the fielddxdy- value for the fielddyradius- value for the fieldradiusarena- 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 fieldcolordx- value for the fielddxdy- value for the fielddyradius- value for the fieldradius
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readColor
Read the value of the fieldcolor.- Returns:
- The value of the field
color
-
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
-