Table of Contents

Class ToplevelHelper

Namespace
Gdk
Assembly
Gdk-4.0.dll
public sealed class ToplevelHelper : Surface, Toplevel, NativeObject, IDisposable, InstanceFactory, GTypeProvider
Inheritance
ToplevelHelper
Implements
Inherited Members

Constructors

ToplevelHelper(SurfaceHandle)

public ToplevelHelper(SurfaceHandle handle)

Parameters

handle SurfaceHandle

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

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

Present(ToplevelLayout)

public void Present(ToplevelLayout layout)

Parameters

layout ToplevelLayout

RestoreSystemShortcuts()

public void RestoreSystemShortcuts()

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

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

Events

OnComputeSize

public event SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs> OnComputeSize

Event Type

SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs>