Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: object
A render node for a GdkTexture, with control over scaling.
TextureScaleNode (texture = null, bounds = null, filter = null)
Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual. This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node.
texture is the texture to scale.bounds is the size of the texture to scale to.filter is how to scale the texture.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asRenderNode ()
Wraps this handle as
RenderNode.
A RenderNode object.get_filter ()
Retrieves the
GskScalingFilterused when creating thisGskRenderNode.
get_texture ()
Retrieves the
GdkTextureused when creating thisGskRenderNode.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.