Class SubsurfaceNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.SubsurfaceNode
- All Implemented Interfaces:
Proxy
A render node that potentially diverts a part of the scene graph to a subsurface.
- Since:
- 4.14
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionSubsurfaceNode(MemorySegment address) Create a SubsurfaceNode instance for the provided memory address.SubsurfaceNode(RenderNode child, @Nullable MemorySegment subsurface) Creates aGskRenderNodethat will possibly divert the child node to a subsurface. -
Method Summary
Modifier and TypeMethodDescriptionprotected SubsurfaceNodeasParent()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.static @Nullable MemorySegmentgetSubsurface(DebugNode node) Gets the subsurface that was set on this nodestatic @Nullable TypegetType()Get the GType of the SubsurfaceNode 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
-
SubsurfaceNode
Create a SubsurfaceNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SubsurfaceNode
Creates a
GskRenderNodethat will possibly divert the child node to a subsurface.Note: Since subsurfaces are currently private, these nodes cannot currently be created outside of GTK. See GtkGraphicsOffload.
- Parameters:
child- The child to divert to a subsurfacesubsurface- the subsurface to use- Since:
- 4.14
-
-
Method Details
-
getType
Get the GType of the SubsurfaceNode 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
-
getSubsurface
Gets the subsurface that was set on this node- Parameters:
node- a subsurfaceGskRenderNode- Returns:
- the subsurface
- Since:
- 4.14
-
getChild
Gets the child node that is getting drawn by the givennode.- Returns:
- the child
GskRenderNode - Since:
- 4.14
-