About my projects, examples and tutorials
Gnome::Gsk4::TextureScaleNode

Gnome::Gsk4::TextureScaleNode

Description§

A render node for a Gnome::Gdk4::Texture.

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-texturescalenode§

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.

method new-texturescalenode ( N-Object() $texture, N-Object $bounds, GskScalingFilter $filter --> Gnome::Gsk4::TextureScaleNode \)
Code
  • $texture; the texture to scale.
  • $bounds; the size of the texture to scale to
  • $filter; how to scale the texture.

Methods§

get-filter§

Retrieves the enumeration GskScalingFilter defined in Gnome::Gsk4::T-enums used when creating this Gnome::Gsk4::RenderNode.

method get-filter (--> GskScalingFilter )
Code

Return value; the enumeration GskScalingFilter defined in Gnome::Gsk4::T-enums.

get-texture§

Retrieves the Gnome::Gdk4::Texture used when creating this Gnome::Gsk4::RenderNode.

method get-texture (--> N-Object )
Code

Return value; the Gnome::Gdk4::Texture.