Table of Contents

Class DisplayManager

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class DisplayManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
DisplayManager
Implements
Derived
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

DisplayManager(CreationData)

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

Parameters

data CreationData

DisplayManager(DisplayManagerHandle)

protected DisplayManager(DisplayManagerHandle handle)

Parameters

handle DisplayManagerHandle

Fields

DefaultDisplayPropertyDefinition

public static readonly Property<Display?, DisplayManager> DefaultDisplayPropertyDefinition

Field Value

Property<Display, DisplayManager>

DisplayOpenedSignal

Signal Descriptor for OnDisplayOpened.

public static readonly Signal<DisplayManager, DisplayManager.DisplayOpenedSignalArgs> DisplayOpenedSignal

Field Value

Signal<DisplayManager, DisplayManager.DisplayOpenedSignalArgs>

Properties

DefaultDisplay

public Display? DefaultDisplay { get; set; }

Property Value

Display

Methods

Get()

public static DisplayManager Get()

Returns

DisplayManager

GetDefaultDisplay()

public Display? GetDefaultDisplay()

Returns

Display

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed DisplayManager instance for a given pointer.

public static DisplayManager NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

DisplayManager

NewWithProperties(ConstructArgument[])

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

public static DisplayManager NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

DisplayManager

OpenDisplay(string?)

public Display? OpenDisplay(string? name)

Parameters

name string

Returns

Display

SetDefaultDisplay(Display)

public void SetDefaultDisplay(Display display)

Parameters

display Display

Events

OnDisplayOpened

public event SignalHandler<DisplayManager, DisplayManager.DisplayOpenedSignalArgs> OnDisplayOpened

Event Type

SignalHandler<DisplayManager, DisplayManager.DisplayOpenedSignalArgs>