Class ContainerNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.ContainerNode
- All Implemented Interfaces:
Proxy
A render node that can contain other render nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionContainerNode(MemorySegment address) Create a ContainerNode instance for the provided memory address.ContainerNode(@Nullable RenderNode @Nullable [] children) Creates a newGskRenderNodeinstance for holding the givenchildren. -
Method Summary
Modifier and TypeMethodDescriptionprotected ContainerNodeasParent()Return this instance as if it were its parent type.getChild(int idx) Gets one of the children ofcontainer.static MemoryLayoutThe memory layout of the native struct.intRetrieves the number of direct children ofnode.static @Nullable TypegetType()Get the GType of the ContainerNode 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
-
ContainerNode
Create a ContainerNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ContainerNode
Creates a new
GskRenderNodeinstance for holding the givenchildren.The new node will acquire a reference to each of the children.
- Parameters:
children- The children of the node
-
-
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 one of the children ofcontainer.- Parameters:
idx- the position of the child to get- Returns:
- the
idx'thchild ofcontainer
-
getNChildren
public int getNChildren()Retrieves the number of direct children ofnode.- Returns:
- the number of children of the
GskRenderNode
-