Class RouteEventArgs
- Namespace
- Whim
- Assembly
- Whim.dll
Describes how an IWindow has been routed between workspaces.
This implicitly describes hypothetical `WindowAdded` and `WindowRemoved` events
for a workspace.
public class RouteEventArgs : EventArgs
- Inheritance
-
RouteEventArgs
- Inherited Members
Properties
CurrentWorkspace
The workspace that the window was routed to. If the window has just
been removed, this will be null.
public IWorkspace? CurrentWorkspace { get; }
Property Value
PreviousWorkspace
The workspace that the window was routed from. If the window has just
been added, this will be null.
public IWorkspace? PreviousWorkspace { get; }
Property Value
Window
The window that was routed.
public IWindow Window { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
object- The object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
- A hash code for the current object.
WindowAdded(IWindow, IWorkspace)
Helper method for creating a new RouteEventArgs for when a window is added to a workspace.
public static RouteEventArgs WindowAdded(IWindow window, IWorkspace workspace)
Parameters
window
IWindowworkspace
IWorkspace
Returns
WindowMoved(IWindow, IWorkspace, IWorkspace)
Helper method for creating a new RouteEventArgs for when a window is routed between workspaces.
public static RouteEventArgs WindowMoved(IWindow window, IWorkspace fromWorkspace, IWorkspace toWorkspace)
Parameters
window
IWindowfromWorkspace
IWorkspacetoWorkspace
IWorkspace
Returns
WindowRemoved(IWindow, IWorkspace)
Helper method for creating a new RouteEventArgs for when a window is removed from a workspace.
public static RouteEventArgs WindowRemoved(IWindow window, IWorkspace workspace)
Parameters
window
IWindowworkspace
IWorkspace