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
constructArgumentsConstructArgument[]
WaylandToplevel(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WaylandToplevel(CreationData data)
Parameters
dataCreationData
WaylandToplevel(WaylandToplevelHandle)
protected WaylandToplevel(WaylandToplevelHandle handle)
Parameters
handleWaylandToplevelHandle
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
DropExportedHandle(string)
[Version("4.12")]
public void DropExportedHandle(string handle)
Parameters
handlestring
ExportHandle(WaylandToplevelExported)
public bool ExportHandle(WaylandToplevelExported callback)
Parameters
callbackWaylandToplevelExported
Returns
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
NewFromPointer(nint, bool)
Creates a new managed WaylandToplevel instance for a given pointer.
public static WaylandToplevel NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WaylandToplevel and sets the properties specified by the construct arguments.
public static WaylandToplevel NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Present(ToplevelLayout)
public void Present(ToplevelLayout layout)
Parameters
layoutToplevelLayout
RestoreSystemShortcuts()
public void RestoreSystemShortcuts()
SetApplicationId(string)
public void SetApplicationId(string applicationId)
Parameters
applicationIdstring
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
SetTransientForExported(string)
public bool SetTransientForExported(string parentHandleStr)
Parameters
parentHandleStrstring
Returns
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
UnexportHandle()
public void UnexportHandle()
Events
OnComputeSize
public event SignalHandler<Toplevel, Toplevel.ComputeSizeSignalArgs> OnComputeSize