Class: Gsk::TextureScaleNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::TextureScaleNode
- Defined in:
- (unknown)
Overview
A render node for a GdkTexture.
Instance Method Summary collapse
-
#filter ⇒ Gsk::ScalingFilter
Retrieves the
GskScalingFilterused when creating thisGskRenderNode. -
#initialize(texture, bounds, filter) ⇒ Gsk::TextureScaleNode
constructor
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.
-
#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, filter) ⇒ 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.
Instance Method Details
#filter ⇒ Gsk::ScalingFilter
Retrieves the GskScalingFilter used when creating this GskRenderNode.
#texture ⇒ Gdk::Texture
Retrieves the GdkTexture used when creating this GskRenderNode.