Table of Contents

Class CairoContext

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class CairoContext : DrawContext, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
CairoContext
Implements
Inherited Members

Constructors

CairoContext(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public CairoContext(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

CairoContext(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CairoContext(CreationData data)

Parameters

data CreationData

CairoContext(CairoContextHandle)

protected CairoContext(CairoContextHandle handle)

Parameters

handle CairoContextHandle

Methods

CairoCreate()

public Context? CairoCreate()

Returns

Context

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed CairoContext instance for a given pointer.

public static CairoContext NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

CairoContext

NewWithProperties(ConstructArgument[])

Creates a new CairoContext and sets the properties specified by the construct arguments.

public static CairoContext NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

CairoContext