:right-sidebar: True TextureNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: TextureNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a ``GdkTexture``\. Constructors ------------ .. rst-class:: interim-class .. class:: TextureNode :no-index: .. classmethod:: new(texture: ~gi.repository.Gdk.Texture, bounds: ~gi.repository.Graphene.Rect) -> ~gi.repository.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 :obj:`~gi.repository.Gsk.TextureScaleNode` for a way to influence filtering. :param texture: the ``GdkTexture`` :param bounds: the rectangle to render the texture into Methods ------- .. rst-class:: interim-class .. class:: TextureNode :no-index: .. method:: get_texture() -> ~gi.repository.Gdk.Texture Retrieves the ``GdkTexture`` used when creating this ``GskRenderNode``\.