package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gdk/Ocgtk_gdk/Gdk/Wrappers/Cairo_context/index.html

Module Wrappers.Cairo_context

type t = [ `cairo_context | `draw_context | `object_ ] Gobject.obj
val cairo_create : t -> Ocgtk_cairo.Cairo.Wrappers.Context.t option

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.