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