Class RepeatNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.RepeatNode
- All Implemented Interfaces:
Proxy
A render node repeating its single child node.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionRepeatNode(MemorySegment address) Create a RepeatNode instance for the provided memory address.RepeatNode(Rect bounds, RenderNode child, @Nullable Rect childBounds) Creates aGskRenderNodethat will repeat the drawing ofchildacross the givenbounds. -
Method Summary
Modifier and TypeMethodDescriptionprotected RepeatNodeasParent()Return this instance as if it were its parent type.getChild()Retrieves the child ofnode.Retrieves the bounding rectangle of the child ofnode.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the RepeatNode 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
-
RepeatNode
Create a RepeatNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
RepeatNode
Creates aGskRenderNodethat will repeat the drawing ofchildacross the givenbounds.- Parameters:
bounds- The bounds of the area to be paintedchild- The child to repeatchildBounds- The area of the child to repeat ornullto use the child's bounds
-
-
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
-
getChildBounds
Retrieves the bounding rectangle of the child ofnode.- Returns:
- a bounding rectangle
-