Gsk.TextureScaleNode

g Gsk.RenderNode Gsk.RenderNode Gsk.TextureScaleNode Gsk.TextureScaleNode Gsk.RenderNode->Gsk.TextureScaleNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (texture, bounds, filter)

get_filter ()

get_texture ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.TextureScaleNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a GdkTexture.

New in version 4.10.

classmethod new(texture, bounds, filter)
Parameters:
Returns:

A new GskRenderNode

Return type:

Gsk.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.

New in version 4.10.

get_filter()
Returns:

the GskScalingFilter

Return type:

Gsk.ScalingFilter

Retrieves the GskScalingFilter used when creating this GskRenderNode.

New in version 4.10.

get_texture()
Returns:

the GdkTexture

Return type:

Gdk.Texture

Retrieves the GdkTexture used when creating this GskRenderNode.

New in version 4.10.