Table of Contents

Interface IRouterManager

Namespace
Whim
Assembly
Whim.dll
Manages routers for IWindows.
public interface IRouterManager

Properties

RouterOptions

Describes how to route windows when they are added to Whim. RouteWindow(IWindow) takes precedence over this.
RouterOptions RouterOptions { get; set; }

Property Value

RouterOptions

Methods

Add(Router)

Add a router.
void Add(Router router)

Parameters

router Router

AddProcessFileNameRoute(string, string)

Adds a router which moves windows matching ProcessFileName to the workspaceName.
IRouterManager AddProcessFileNameRoute(string processFileName, string workspaceName)

Parameters

processFileName string
workspaceName string

Returns

IRouterManager

AddProcessFileNameRoute(string, IWorkspace)

Adds a router which moves windows matching ProcessFileName to the workspace.
IRouterManager AddProcessFileNameRoute(string processFileName, IWorkspace workspace)

Parameters

processFileName string
workspace IWorkspace

Returns

IRouterManager

AddTitleMatchRoute(string, string)

Adds a router which moves windows matching regex match string to the workspaceName.
IRouterManager AddTitleMatchRoute(string match, string workspaceName)

Parameters

match string
workspaceName string

Returns

IRouterManager

AddTitleMatchRoute(string, IWorkspace)

Adds a router which moves windows matching regex match string to the workspace.
IRouterManager AddTitleMatchRoute(string match, IWorkspace workspace)

Parameters

match string
workspace IWorkspace

Returns

IRouterManager

AddTitleRoute(string, string)

Adds a router which moves windows matching title to the workspace with the name workspaceName.
IRouterManager AddTitleRoute(string title, string workspaceName)

Parameters

title string
workspaceName string

Returns

IRouterManager

AddTitleRoute(string, IWorkspace)

Adds a router which moves windows matching title to the workspace.
IRouterManager AddTitleRoute(string title, IWorkspace workspace)

Parameters

title string
workspace IWorkspace

Returns

IRouterManager

AddWindowClassRoute(string, string)

Adds a router which moves windows matching windowClass to the workspace with the name workspaceName.
IRouterManager AddWindowClassRoute(string windowClass, string workspaceName)

Parameters

windowClass string
workspaceName string

Returns

IRouterManager

AddWindowClassRoute(string, IWorkspace)

Adds a router which moves windows matching windowClass to the workspace.
IRouterManager AddWindowClassRoute(string windowClass, IWorkspace workspace)

Parameters

windowClass string
workspace IWorkspace

Returns

IRouterManager

Clear()

Clear all the routes.
void Clear()

RouteWindow(IWindow)

Routes a window to a workspace.
IWorkspace? RouteWindow(IWindow window)

Parameters

window IWindow

Returns

IWorkspace
null when the window should be ignored, otherwise the IWorkspace to route the window to.