Class CompositeNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.CompositeNode
- All Implemented Interfaces:
Proxy
A render node that uses Porter/Duff compositing operators to combine
its child with the background.
- Since:
- 4.22
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionCompositeNode(MemorySegment address) Create a CompositeNode instance for the provided memory address.CompositeNode(RenderNode child, RenderNode mask, PorterDuff op) Creates aGskRenderNodethat will composite the child onto the background with the given operator wherever the mask is set. -
Method Summary
Modifier and TypeMethodDescriptionprotected CompositeNodeasParent()Return this instance as if it were its parent type.getChild()Gets the child node that is getting composited by the givennode.getMask()Gets the mask node that describes the region where the compositing applies.static MemoryLayoutThe memory layout of the native struct.Gets the compositing operator used by this node.static @Nullable TypegetType()Get the GType of the CompositeNode 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
-
CompositeNode
Create a CompositeNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CompositeNode
Creates a
GskRenderNodethat will composite the child onto the background with the given operator wherever the mask is set.Note that various operations can modify the background outside of the child's bounds, so the mask may cause visual changes outside of the child.
- Parameters:
child- The child to compositemask- The mask where the compositing will applyop- The compositing operator- Since:
- 4.22
-
-
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
-
getChild
Gets the child node that is getting composited by the givennode.- Returns:
- the child
GskRenderNode - Since:
- 4.22
-
getMask
Gets the mask node that describes the region where the compositing applies.- Returns:
- the mask
GskRenderNode - Since:
- 4.22
-
getOperator
Gets the compositing operator used by this node.- Returns:
- The compositing operator
- Since:
- 4.22
-