1.40 <GskTextureScaleNode>

Class: <GskTextureScaleNode>

It derives from <GskRenderNode>.

A render node for a <GdkTexture>, with control over scaling.

Procedures

Method: texture-scale-node:get-filter self ⇒ %return
Method: get-filter self ⇒ %return

Retrieves the <GskScalingFilter> used when creating this <GskRenderNode>.

self

Passed: a <GskTextureScaleNode>.

a <GskRenderNode> of type texture-scale-node

%return

Returned: a <GskScalingFilter>.

the <GskScalingFilter>

Method: texture-scale-node:get-texture self ⇒ %return
Method: get-texture self ⇒ %return

Retrieves the <GdkTexture> used when creating this <GskRenderNode>.

self

Passed: a <GskTextureScaleNode>.

a <GskRenderNode> of type texture-scale-node

%return

Returned: a <GdkTexture>.

the <GdkTexture>

Procedure: texture-scale-node:new texture bounds filter ⇒ %return

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

Passed: a <GdkTexture>.

the texture to scale

bounds

Passed: a <GrapheneRect>.

the size of the texture to scale to

filter

Passed: a <GskScalingFilter>, or one of its symbols.

how to scale the texture

%return

Returned: a <GskTextureScaleNode>.

A new <GskRenderNode>