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
constructArgumentsConstructArgument[]
DisplayManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DisplayManager(CreationData data)
Parameters
dataCreationData
DisplayManager(DisplayManagerHandle)
protected DisplayManager(DisplayManagerHandle handle)
Parameters
handleDisplayManagerHandle
Fields
DefaultDisplayPropertyDefinition
public static readonly Property<Display?, DisplayManager> DefaultDisplayPropertyDefinition
Field Value
DisplayOpenedSignal
Signal Descriptor for OnDisplayOpened.
public static readonly Signal<DisplayManager, DisplayManager.DisplayOpenedSignalArgs> DisplayOpenedSignal
Field Value
Properties
DefaultDisplay
public Display? DefaultDisplay { get; set; }
Property Value
Methods
Get()
public static DisplayManager Get()
Returns
GetDefaultDisplay()
public Display? GetDefaultDisplay()
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed DisplayManager instance for a given pointer.
public static DisplayManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DisplayManager and sets the properties specified by the construct arguments.
public static DisplayManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
OpenDisplay(string?)
public Display? OpenDisplay(string? name)
Parameters
namestring
Returns
SetDefaultDisplay(Display)
public void SetDefaultDisplay(Display display)
Parameters
displayDisplay
Events
OnDisplayOpened
public event SignalHandler<DisplayManager, DisplayManager.DisplayOpenedSignalArgs> OnDisplayOpened