:right-sidebar: True TextureScaleNode =================================================================== .. currentmodule:: gi.repository.Gsk .. versionadded:: 4.10 .. class:: TextureScaleNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a ``GdkTexture``\. Constructors ------------ .. rst-class:: interim-class .. class:: TextureScaleNode :no-index: .. classmethod:: new(texture: ~gi.repository.Gdk.Texture, bounds: ~gi.repository.Graphene.Rect, filter: ~gi.repository.Gsk.ScalingFilter) -> ~gi.repository.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. .. versionadded:: 4.10 :param texture: the texture to scale :param bounds: the size of the texture to scale to :param filter: how to scale the texture Methods ------- .. rst-class:: interim-class .. class:: TextureScaleNode :no-index: .. method:: get_filter() -> ~gi.repository.Gsk.ScalingFilter Retrieves the ``GskScalingFilter`` used when creating this ``GskRenderNode``\. .. versionadded:: 4.10 .. method:: get_texture() -> ~gi.repository.Gdk.Texture Retrieves the ``GdkTexture`` used when creating this ``GskRenderNode``\. .. versionadded:: 4.10