Class: Gsk::TextureNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::TextureNode
- Defined in:
- (unknown)
Overview
A render node for a GdkTexture.
Instance Method Summary collapse
-
#initialize(texture, bounds) ⇒ Gsk::TextureNode
constructor
Creates a
GskRenderNodethat will render the given texture into the area given by bounds. -
#texture ⇒ Gdk::Texture
Retrieves the
GdkTextureused when creating thisGskRenderNode.
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.
Instance Method Details
#texture ⇒ Gdk::Texture
Retrieves the GdkTexture used when creating this GskRenderNode.