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
handleSurfaceHandle
Fields
ComputeSizeSignal
Signal Descriptor for OnComputeSize.
public static readonly Signal<Toplevel, Toplevel.ComputeSizeSignalArgs> ComputeSizeSignal
Field Value
Properties
Capabilities
public ToplevelCapabilities Capabilities { get; }
Property Value
Decorated
public bool Decorated { get; set; }
Property Value
Deletable
public bool Deletable { get; set; }
Property Value
FullscreenMode
public FullscreenMode FullscreenMode { get; set; }
Property Value
Gravity
public Gravity Gravity { get; set; }
Property Value
IconList
public nint IconList { get; set; }
Property Value
Modal
public bool Modal { get; set; }
Property Value
ShortcutsInhibited
public bool ShortcutsInhibited { get; }
Property Value
StartupId
public string? StartupId { get; set; }
Property Value
State
public ToplevelState State { get; }
Property Value
Title
public string? Title { get; set; }
Property Value
TransientFor
public Surface? TransientFor { get; set; }
Property Value
Methods
BeginMove(Device, int, double, double, uint)
public void BeginMove(Device device, int button, double x, double y, uint timestamp)
Parameters
BeginResize(SurfaceEdge, Device?, int, double, double, uint)
public void BeginResize(SurfaceEdge edge, Device? device, int button, double x, double y, uint timestamp)
Parameters
Focus(uint)
public void Focus(uint timestamp)
Parameters
timestampuint
GetCapabilities()
[Version("4.20")]
public ToplevelCapabilities GetCapabilities()
Returns
GetGType()
public static Type GetGType()
Returns
GetGravity()
[Version("4.20")]
public Gravity GetGravity()
Returns
GetState()
public ToplevelState GetState()
Returns
InhibitSystemShortcuts(Event?)
public void InhibitSystemShortcuts(Event? @event)
Parameters
eventEvent
Lower()
public bool Lower()
Returns
Minimize()
public bool Minimize()
Returns
Present(ToplevelLayout)
public void Present(ToplevelLayout layout)
Parameters
layoutToplevelLayout
RestoreSystemShortcuts()
public void RestoreSystemShortcuts()
SetDecorated(bool)
public void SetDecorated(bool decorated)
Parameters
decoratedbool
SetDeletable(bool)
public void SetDeletable(bool deletable)
Parameters
deletablebool
SetGravity(Gravity)
[Version("4.20")]
public void SetGravity(Gravity gravity)
Parameters
gravityGravity
SetIconList(List)
public void SetIconList(List surfaces)
Parameters
surfacesList
SetModal(bool)
public void SetModal(bool modal)
Parameters
modalbool
SetStartupId(string)
public void SetStartupId(string startupId)
Parameters
startupIdstring
SetTitle(string)
public void SetTitle(string title)
Parameters
titlestring
SetTransientFor(Surface)
public void SetTransientFor(Surface parent)
Parameters
parentSurface
ShowWindowMenu(Event)
public bool ShowWindowMenu(Event @event)
Parameters
eventEvent
Returns
SupportsEdgeConstraints()
public bool SupportsEdgeConstraints()
Returns
TitlebarGesture(TitlebarGesture)
[Version("4.4")]
public bool TitlebarGesture(TitlebarGesture gesture)
Parameters
gestureTitlebarGesture
Returns
Events
OnComputeSize
public event SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs> OnComputeSize