Class ColorNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.ColorNode
- All Implemented Interfaces:
Proxy
A render node for a solid color.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionColorNode(MemorySegment address) Create a ColorNode instance for the provided memory address.Creates aGskRenderNodethat will render the color specified byrgbainto the area given bybounds. -
Method Summary
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
-
ColorNode
Create a ColorNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ColorNode
-
-
Method Details
-
getType
-
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
-
getColor
Retrieves the color of the given
node.The value returned by this function will not be correct if the render node was created for a non-sRGB color.
- Returns:
- the color of the node
-