Class: Gsk::TextureNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node for a GdkTexture.

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(texture, bounds) ⇒ 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 [classGsk.TextureScaleNode] for a way to influence filtering.

Parameters:

  • texture (Gdk::Texture)

    the GdkTexture

  • bounds (Graphene::Rect)

    the rectangle to render the texture into

Instance Method Details

#textureGdk::Texture

Retrieves the GdkTexture used when creating this GskRenderNode.

Returns:

  • (Gdk::Texture)

    the GdkTexture