Table of Contents

Class Display

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class Display : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Display
Implements
Inherited Members

Constructors

Display(bool, params ConstructArgument[])

protected Display(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Display(IntPtr, bool)

protected Display(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ClosedSignal

Signal Descriptor for OnClosed.

public static readonly Signal<Display, Display.ClosedSignalArgs> ClosedSignal

Field Value

Signal<Display, Display.ClosedSignalArgs>

CompositedPropertyDefinition

public static readonly Property<bool, Display> CompositedPropertyDefinition

Field Value

Property<bool, Display>

DmabufFormatsPropertyDefinition

public static readonly Property<DmabufFormats, Display> DmabufFormatsPropertyDefinition

Field Value

Property<DmabufFormats, Display>

InputShapesPropertyDefinition

public static readonly Property<bool, Display> InputShapesPropertyDefinition

Field Value

Property<bool, Display>

OpenedSignal

Signal Descriptor for OnOpened.

public static readonly Signal<Display> OpenedSignal

Field Value

Signal<Display>

RgbaPropertyDefinition

public static readonly Property<bool, Display> RgbaPropertyDefinition

Field Value

Property<bool, Display>

SeatAddedSignal

Signal Descriptor for OnSeatAdded.

public static readonly Signal<Display, Display.SeatAddedSignalArgs> SeatAddedSignal

Field Value

Signal<Display, Display.SeatAddedSignalArgs>

SeatRemovedSignal

Signal Descriptor for OnSeatRemoved.

public static readonly Signal<Display, Display.SeatRemovedSignalArgs> SeatRemovedSignal

Field Value

Signal<Display, Display.SeatRemovedSignalArgs>

SettingChangedSignal

Signal Descriptor for OnSettingChanged.

public static readonly Signal<Display, Display.SettingChangedSignalArgs> SettingChangedSignal

Field Value

Signal<Display, Display.SettingChangedSignalArgs>

ShadowWidthPropertyDefinition

public static readonly Property<bool, Display> ShadowWidthPropertyDefinition

Field Value

Property<bool, Display>

Properties

Composited

public bool Composited { get; }

Property Value

bool

DmabufFormats

public DmabufFormats DmabufFormats { get; }

Property Value

DmabufFormats

InputShapes

public bool InputShapes { get; }

Property Value

bool

Rgba

public bool Rgba { get; }

Property Value

bool

ShadowWidth

public bool ShadowWidth { get; }

Property Value

bool

Methods

Beep()

public void Beep()

Close()

public void Close()

CreateGlContext()

[Version("4.6")]
public GLContext CreateGlContext()

Returns

GLContext

DeviceIsGrabbed(Device)

public bool DeviceIsGrabbed(Device device)

Parameters

device Device

Returns

bool

Flush()

public void Flush()

GetAppLaunchContext()

public AppLaunchContext GetAppLaunchContext()

Returns

AppLaunchContext

GetClipboard()

public Clipboard GetClipboard()

Returns

Clipboard

GetDefault()

public static Display? GetDefault()

Returns

Display

GetDefaultSeat()

public Seat? GetDefaultSeat()

Returns

Seat

GetDmabufFormats()

[Version("4.14")]
public DmabufFormats GetDmabufFormats()

Returns

DmabufFormats

GetGType()

public static Type GetGType()

Returns

Type

GetMonitorAtSurface(Surface)

public Monitor? GetMonitorAtSurface(Surface surface)

Parameters

surface Surface

Returns

Monitor

GetMonitors()

public ListModel GetMonitors()

Returns

ListModel

GetName()

public string GetName()

Returns

string

GetPrimaryClipboard()

public Clipboard GetPrimaryClipboard()

Returns

Clipboard

GetSetting(string, Value)

public bool GetSetting(string name, Value value)

Parameters

name string
value Value

Returns

bool

GetStartupNotificationId()

public string? GetStartupNotificationId()

Returns

string

IsClosed()

public bool IsClosed()

Returns

bool

IsComposited()

public bool IsComposited()

Returns

bool

IsRgba()

public bool IsRgba()

Returns

bool

NotifyStartupComplete(string)

public void NotifyStartupComplete(string startupId)

Parameters

startupId string

Open(string?)

public static Display? Open(string? displayName)

Parameters

displayName string

Returns

Display

PrepareGl()

[Version("4.4")]
public bool PrepareGl()

Returns

bool

PutEvent(Event)

public void PutEvent(Event @event)

Parameters

event Event

SupportsInputShapes()

public bool SupportsInputShapes()

Returns

bool

SupportsShadowWidth()

[Version("4.14")]
public bool SupportsShadowWidth()

Returns

bool

Sync()

public void Sync()

Events

OnClosed

public event SignalHandler<Display, Display.ClosedSignalArgs> OnClosed

Event Type

SignalHandler<Display, Display.ClosedSignalArgs>

OnOpened

public event SignalHandler<Display> OnOpened

Event Type

SignalHandler<Display>

OnSeatAdded

public event SignalHandler<Display, Display.SeatAddedSignalArgs> OnSeatAdded

Event Type

SignalHandler<Display, Display.SeatAddedSignalArgs>

OnSeatRemoved

public event SignalHandler<Display, Display.SeatRemovedSignalArgs> OnSeatRemoved

Event Type

SignalHandler<Display, Display.SeatRemovedSignalArgs>

OnSettingChanged

public event SignalHandler<Display, Display.SettingChangedSignalArgs> OnSettingChanged

Event Type

SignalHandler<Display, Display.SettingChangedSignalArgs>