package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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`.