Table of Contents

Class WaylandToplevel

Namespace
GdkWayland
Assembly
GdkWayland-4.0.dll
public class WaylandToplevel : WaylandSurface, Toplevel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
WaylandToplevel
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

WaylandToplevel(CreationData)

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

Parameters

data CreationData

WaylandToplevel(WaylandToplevelHandle)

protected WaylandToplevel(WaylandToplevelHandle handle)

Parameters

handle WaylandToplevelHandle

Fields

ComputeSizeSignal

Signal Descriptor for OnComputeSize.

public static readonly Signal<Toplevel, Toplevel.ComputeSizeSignalArgs> ComputeSizeSignal

Field Value

Signal<Toplevel, Toplevel.ComputeSizeSignalArgs>

Properties

Capabilities

public ToplevelCapabilities Capabilities { get; }

Property Value

ToplevelCapabilities

Decorated

public bool Decorated { get; set; }

Property Value

bool

Deletable

public bool Deletable { get; set; }

Property Value

bool

FullscreenMode

public FullscreenMode FullscreenMode { get; set; }

Property Value

FullscreenMode

Gravity

public Gravity Gravity { get; set; }

Property Value

Gravity

IconList

public nint IconList { get; set; }

Property Value

nint

Modal

public bool Modal { get; set; }

Property Value

bool

ShortcutsInhibited

public bool ShortcutsInhibited { get; }

Property Value

bool

StartupId

public string? StartupId { get; set; }

Property Value

string

State

public ToplevelState State { get; }

Property Value

ToplevelState

Title

public string? Title { get; set; }

Property Value

string

TransientFor

public Surface? TransientFor { get; set; }

Property Value

Surface

Methods

BeginMove(Device, int, double, double, uint)

public void BeginMove(Device device, int button, double x, double y, uint timestamp)

Parameters

device Device
button int
x double
y double
timestamp uint

BeginResize(SurfaceEdge, Device?, int, double, double, uint)

public void BeginResize(SurfaceEdge edge, Device? device, int button, double x, double y, uint timestamp)

Parameters

edge SurfaceEdge
device Device
button int
x double
y double
timestamp uint

DropExportedHandle(string)

[Version("4.12")]
public void DropExportedHandle(string handle)

Parameters

handle string

ExportHandle(WaylandToplevelExported)

public bool ExportHandle(WaylandToplevelExported callback)

Parameters

callback WaylandToplevelExported

Returns

bool

Focus(uint)

public void Focus(uint timestamp)

Parameters

timestamp uint

GetCapabilities()

[Version("4.20")]
public ToplevelCapabilities GetCapabilities()

Returns

ToplevelCapabilities

GetGType()

public static Type GetGType()

Returns

Type

GetGravity()

[Version("4.20")]
public Gravity GetGravity()

Returns

Gravity

GetState()

public ToplevelState GetState()

Returns

ToplevelState

InhibitSystemShortcuts(Event?)

public void InhibitSystemShortcuts(Event? @event)

Parameters

event Event

Lower()

public bool Lower()

Returns

bool

Minimize()

public bool Minimize()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed WaylandToplevel instance for a given pointer.

public static WaylandToplevel NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WaylandToplevel

NewWithProperties(ConstructArgument[])

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

public static WaylandToplevel NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WaylandToplevel

Present(ToplevelLayout)

public void Present(ToplevelLayout layout)

Parameters

layout ToplevelLayout

RestoreSystemShortcuts()

public void RestoreSystemShortcuts()

SetApplicationId(string)

public void SetApplicationId(string applicationId)

Parameters

applicationId string

SetDecorated(bool)

public void SetDecorated(bool decorated)

Parameters

decorated bool

SetDeletable(bool)

public void SetDeletable(bool deletable)

Parameters

deletable bool

SetGravity(Gravity)

[Version("4.20")]
public void SetGravity(Gravity gravity)

Parameters

gravity Gravity

SetIconList(List)

public void SetIconList(List surfaces)

Parameters

surfaces List

SetModal(bool)

public void SetModal(bool modal)

Parameters

modal bool

SetStartupId(string)

public void SetStartupId(string startupId)

Parameters

startupId string

SetTitle(string)

public void SetTitle(string title)

Parameters

title string

SetTransientFor(Surface)

public void SetTransientFor(Surface parent)

Parameters

parent Surface

SetTransientForExported(string)

public bool SetTransientForExported(string parentHandleStr)

Parameters

parentHandleStr string

Returns

bool

ShowWindowMenu(Event)

public bool ShowWindowMenu(Event @event)

Parameters

event Event

Returns

bool

SupportsEdgeConstraints()

public bool SupportsEdgeConstraints()

Returns

bool

TitlebarGesture(TitlebarGesture)

[Version("4.4")]
public bool TitlebarGesture(TitlebarGesture gesture)

Parameters

gesture TitlebarGesture

Returns

bool

UnexportHandle()

public void UnexportHandle()

Events

OnComputeSize

public event SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs> OnComputeSize

Event Type

SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs>