Class RepeatingRadialGradientNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.RepeatingRadialGradientNode
- All Implemented Interfaces:
Proxy
A render node for a repeating radial gradient.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionRepeatingRadialGradientNode(MemorySegment address) Create a RepeatingRadialGradientNode instance for the provided memory address.RepeatingRadialGradientNode(Rect bounds, Point center, float hradius, float vradius, float start, float end, @Nullable ColorStop @Nullable [] colorStops) Creates aGskRenderNodethat draws a repeating radial gradient. -
Method Summary
Modifier and TypeMethodDescriptionprotected RepeatingRadialGradientNodeasParent()Return this instance as if it were its parent type.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the RepeatingRadialGradientNode class.Methods inherited from class RenderNode
deserialize, draw, getBounds, getChildren, getNodeType, getOpaqueRect, ref, serialize, unref, writeToFileMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
RepeatingRadialGradientNode
Create a RepeatingRadialGradientNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
RepeatingRadialGradientNode
public RepeatingRadialGradientNode(Rect bounds, Point center, float hradius, float vradius, float start, float end, @Nullable ColorStop @Nullable [] colorStops) Creates a
GskRenderNodethat draws a repeating radial gradient.The radial gradient starts around
center.The size of the gradient is dictated byhradiusin horizontal orientation and byvradiusin vertical orientation.- Parameters:
bounds- the bounds of the nodecenter- the center of the gradienthradius- the horizontal radiusvradius- the vertical radiusstart- a percentage >= 0 that defines the start of the gradient aroundcenterend- a percentage >= 0 that defines the end of the gradient aroundcentercolorStops- a pointer to an array ofGskColorStopdefining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.
-
-
Method Details
-
getType
Get the GType of the RepeatingRadialGradientNode class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classRenderNode- Returns:
- the instance as if it were its parent type
-