Class CairoNode

All Implemented Interfaces:
PointerInterface

public class CairoNode extends RenderNode
A render node for a Cairo surface.

https://docs.gtk.org/gsk4/class.CairoNode.html

  • Constructor Details

    • CairoNode

      public CairoNode(PointerContainer pointer)
    • CairoNode

      public CairoNode(@Nonnull Rect bounds)
      Creates a `GskRenderNode` that will render a cairo surface
      into the area given by @bounds.

      You can draw to the cairo surface using [method@Gsk.CairoNode.get_draw_context].
      Parameters:
      bounds - the rectangle to render to
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getDrawContext

      public Context getDrawContext()
      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.
      Returns:
      a Cairo context used for drawing; use cairo_destroy() when done drawing
    • getSurface

      public Surface getSurface()
      Retrieves the Cairo surface used by the render node.
      Returns:
      a Cairo surface
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()