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.gtk/Ocgtk_gtk/Gtk/Wrappers/Native/index.html

Module Wrappers.Native

type t = [ `native ] Gobject.obj
val from_gobject : 'a Gobject.obj -> t
val unrealize : t -> unit

Unrealizes a `GtkNative`.

This should only be used by subclasses.

val realize : t -> unit

Realizes a `GtkNative`.

This should only be used by subclasses.

val get_surface_transform : t -> float * float

Retrieves the surface transform of @self.

This is the translation from @self's surface coordinates into @self's widget coordinates.

val get_surface : t -> Ocgtk_gdk.Gdk.Wrappers.Surface.t option

Returns the surface of this `GtkNative`.

val get_renderer : t -> Ocgtk_gsk.Gsk.Wrappers.Renderer.t option

Returns the renderer that is used for this `GtkNative`.