Class PasteNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.PasteNode
- All Implemented Interfaces:
Proxy
A render node for a paste.
- Since:
- 4.22
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionPasteNode(MemorySegment address) Create a PasteNode instance for the provided memory address.Creates aGskRenderNodethat will paste copied contents. -
Method Summary
Modifier and TypeMethodDescriptionprotected PasteNodeasParent()Return this instance as if it were its parent type.longgetDepth()Retrieves the index of the copy that should be pasted.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the PasteNode 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
-
PasteNode
Create a PasteNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
PasteNode
Creates aGskRenderNodethat will paste copied contents.- Parameters:
bounds- the rectangle to render the paste intodepth- the index of which copy to paste. This will usually be 0.- 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
-
getDepth
public long getDepth()Retrieves the index of the copy that should be pasted.- Returns:
- the index of the copy to paste.
- Since:
- 4.22
-