Class CairoContext

All Implemented Interfaces:
PointerInterface

public class CairoContext extends DrawContext
`GdkCairoContext` is an object representing the platform-specific
draw context.

`GdkCairoContext`s are created for a surface using
[method@Gdk.Surface.create_cairo_context], and the context
can then be used to draw on that surface.

https://docs.gtk.org/gdk4/class.CairoContext.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • cairoCreate

      public Context cairoCreate()
      Retrieves a Cairo context to be used to draw on the `GdkSurface`
      of @context.

      A call to [method@Gdk.DrawContext.begin_frame] with this
      @context must have been done or this function will return %NULL.

      The returned context is guaranteed to be valid until
      [method@Gdk.DrawContext.end_frame] is called.
      Returns:
      a Cairo context to draw on `GdkSurface
    • 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()