Class ComponentTransferNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.ComponentTransferNode
- All Implemented Interfaces:
Proxy
A render node for applying a
GskComponentTransfer for each color
component of the child node.- Since:
- 4.20
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionComponentTransferNode(MemorySegment address) Create a ComponentTransferNode instance for the provided memory address.ComponentTransferNode(RenderNode child, ComponentTransfer r, ComponentTransfer g, ComponentTransfer b, ComponentTransfer a) Creates a render node that will apply component transfers to a child node. -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentTransferNodeasParent()Return this instance as if it were its parent type.getChild()Gets the child node that is getting drawn by the givennode.static MemoryLayoutThe memory layout of the native struct.getTransfer(ColorChannel component) Gets the component transfer for one of the components.static @Nullable TypegetType()Get the GType of the ComponentTransferNode 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
-
ComponentTransferNode
Create a ComponentTransferNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ComponentTransferNode
public ComponentTransferNode(RenderNode child, ComponentTransfer r, ComponentTransfer g, ComponentTransfer b, ComponentTransfer a) Creates a render node that will apply component transfers to a child node.- Parameters:
child- The child to apply component transfers tor- transfer for the red componentg- transfer for the green componentb- transfer for the blue componenta- transfer for the alpha component- Since:
- 4.20
-
-
Method Details
-
getType
Get the GType of the ComponentTransferNode 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
-
getChild
Gets the child node that is getting drawn by the givennode.- Returns:
- the child
GskRenderNode - Since:
- 4.20
-
getTransfer
Gets the component transfer for one of the components.- Parameters:
component- the component to get the transfer for- Returns:
- the
GskComponentTransfer - Since:
- 4.20
-