Table of Contents

Class Win32Surface

Namespace
GdkWin32
Assembly
GdkWin32-4.0.dll
public class Win32Surface : Surface, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Win32Surface
Implements
Inherited Members

Constructors

Win32Surface(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 Win32Surface(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Win32Surface(CreationData)

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

Parameters

data CreationData

Win32Surface(Win32SurfaceHandle)

protected Win32Surface(Win32SurfaceHandle handle)

Parameters

handle Win32SurfaceHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetHandle()

public HWND GetHandle()

Returns

HWND

GetImplHwnd(Surface)

public static HWND GetImplHwnd(Surface surface)

Parameters

surface Surface

Returns

HWND

IsWin32(Surface)

public static bool IsWin32(Surface surface)

Parameters

surface Surface

Returns

bool

LookupForDisplay(Display, HWND)

public static Surface? LookupForDisplay(Display display, HWND anid)

Parameters

display Display
anid HWND

Returns

Surface

NewFromPointer(nint, bool)

Creates a new managed Win32Surface instance for a given pointer.

public static Win32Surface NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Win32Surface

NewWithProperties(ConstructArgument[])

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

public static Win32Surface NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Win32Surface

SetUrgencyHint(bool)

public void SetUrgencyHint(bool urgent)

Parameters

urgent bool