Table of Contents

Class Win32Display

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

Win32Display(CreationData)

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

Parameters

data CreationData

Win32Display(Win32DisplayHandle)

protected Win32Display(Win32DisplayHandle handle)

Parameters

handle Win32DisplayHandle

Methods

GetEglDisplay()

[Version("4.4")]
public nint GetEglDisplay()

Returns

nint

GetGType()

public static Type GetGType()

Returns

Type

GetPrimaryMonitor(Display)

public static Monitor GetPrimaryMonitor(Display display)

Parameters

display Display

Returns

Monitor

GetWglVersion(Display, out int, out int)

public static bool GetWglVersion(Display display, out int major, out int minor)

Parameters

display Display
major int
minor int

Returns

bool

GetWin32hcursor(Cursor)

public Win32HCursor GetWin32hcursor(Cursor cursor)

Parameters

cursor Cursor

Returns

Win32HCursor

NewFromPointer(nint, bool)

Creates a new managed Win32Display instance for a given pointer.

public static Win32Display NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Win32Display

NewWithProperties(ConstructArgument[])

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

public static Win32Display NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Win32Display

SetCursorTheme(string?, int)

public void SetCursorTheme(string? name, int size)

Parameters

name string
size int