Class TextureNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.TextureNode
- All Implemented Interfaces:
Proxy
A render node for a
GdkTexture.-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionTextureNode(MemorySegment address) Create a TextureNode instance for the provided memory address.TextureNode(Texture texture, Rect bounds) Creates aGskRenderNodethat will render the giventextureinto the area given bybounds. -
Method Summary
Modifier and TypeMethodDescriptionprotected TextureNodeasParent()Return this instance as if it were its parent type.static MemoryLayoutThe memory layout of the native struct.Retrieves theGdkTextureused when creating thisGskRenderNode.static @Nullable TypegetType()Get the GType of the TextureNode 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
-
TextureNode
Create a TextureNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TextureNode
Creates a
GskRenderNodethat will render the giventextureinto the area given bybounds.Note that GSK applies linear filtering when textures are scaled and transformed. See
TextureScaleNodefor a way to influence filtering.- Parameters:
texture- theGdkTexturebounds- the rectangle to render the texture into
-
-
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
-
getTexture
Retrieves theGdkTextureused when creating thisGskRenderNode.- Returns:
- the
GdkTexture
-