:right-sidebar: True CairoNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: CairoNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a Cairo surface. Constructors ------------ .. rst-class:: interim-class .. class:: CairoNode :no-index: .. classmethod:: new(bounds: ~gi.repository.Graphene.Rect) -> ~gi.repository.Gsk.CairoNode Creates a ``GskRenderNode`` that will render a cairo surface into the area given by ``bounds``\. You can draw to the cairo surface using :obj:`~gi.repository.Gsk.CairoNode.get_draw_context`\. :param bounds: the rectangle to render to Methods ------- .. rst-class:: interim-class .. class:: CairoNode :no-index: .. method:: get_draw_context() -> ~gi.repository.cairo.Context Creates a Cairo context for drawing using the surface associated to the render node. If no surface exists yet, a surface will be created optimized for rendering to ``renderer``\. .. method:: get_surface() -> ~gi.repository.cairo.Surface Retrieves the Cairo surface used by the render node.