Package org.gnome.gsk
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gnome.gsk.RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionComponentTransferNode(MemorySegment address) Create a ComponentTransferNode proxy 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()Returns this instance as if it were its parent type.getChild()Gets the child node that is getting drawn by the givennode.getTransfer(int component) Gets the component transfer for one of the components.static @Nullable TypegetType()Get the GType of the ComponentTransferNode classMethods inherited from class org.gnome.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, getOpaqueRect, ref, serialize, unref, writeToFileMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getMemoryLayout, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ComponentTransferNode
Create a ComponentTransferNode proxy 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
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParentin classRenderNode
-
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- a value between 0 and 3 to indicate the red, green, blue or alpha component- Returns:
- the
GskComponentTransfer - Since:
- 4.20
-