Table of Contents

Method cairo_create

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

cairo_create(nint)

Creates a new cairo_t drawing context for the given target surface.

public static extern nint cairo_create(nint target)

Parameters

target nint

Pointer to the target surface (for example, a GDK/GTK surface).

Returns

nint

Pointer to the newly created cairo_t. Returns IntPtr.Zero on failure. The caller is responsible for calling cairo_destroy(nint) when finished.