Class DebugNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.DebugNode
- All Implemented Interfaces:
Proxy
A render node that emits a debugging message when drawing its
child node.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionDebugNode(MemorySegment address) Create a DebugNode instance for the provided memory address.DebugNode(RenderNode child, String message) Creates aGskRenderNodethat will add debug information about the givenchild. -
Method Summary
Modifier and TypeMethodDescriptionprotected DebugNodeasParent()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.Gets the debug message that was set on this nodestatic @Nullable TypegetType()Get the GType of the DebugNode 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
-
DebugNode
Create a DebugNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DebugNode
Creates a
GskRenderNodethat will add debug information about the givenchild.Adding this node has no visual effect.
- Parameters:
child- The child to add debug info formessage- The debug message
-
-
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 drawn by the givennode.- Returns:
- the child
GskRenderNode
-
getMessage
Gets the debug message that was set on this node- Returns:
- The debug message
-