Table of Contents

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

IWorkspace

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

IWorkspace

Window

The window that was routed.
public IWindow Window { get; }

Property Value

IWindow

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

bool
true if the specified object is equal to the current object; otherwise, false.

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 IWindow
workspace IWorkspace

Returns

RouteEventArgs

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 IWindow
fromWorkspace IWorkspace
toWorkspace IWorkspace

Returns

RouteEventArgs

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 IWindow
workspace IWorkspace

Returns

RouteEventArgs