Package org.gnome.gsk
Class ColorStop
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gsk.ColorStop
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.@Nullable RGBARead the value of the fieldcolor.floatRead the value of the fieldoffset.voidwriteColor(@Nullable RGBA color) Write a value in the fieldcolor.voidwriteOffset(float offset) Write a value in the fieldoffset.Methods inherited from class org.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 fieldoffsetcolor- 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
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
-