Gsk.TextureNode

g Gsk.RenderNode Gsk.RenderNode Gsk.TextureNode Gsk.TextureNode Gsk.RenderNode->Gsk.TextureNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (texture, bounds)

get_texture ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.TextureNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a GdkTexture.

classmethod new(texture, bounds)
Parameters:
Returns:

A new GskRenderNode

Return type:

Gsk.TextureNode

Creates a GskRenderNode that will render the given texture into the area given by bounds.

Note that GSK applies linear filtering when textures are scaled and transformed. See [class`Gsk`.TextureScaleNode] for a way to influence filtering.

get_texture()
Returns:

the GdkTexture

Return type:

Gdk.Texture

Retrieves the GdkTexture used when creating this GskRenderNode.