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
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
Returns
AddProcessFileNameRoute(string, IWorkspace)
Adds a router which moves windows matching ProcessFileName to the
workspace
.IRouterManager AddProcessFileNameRoute(string processFileName, IWorkspace workspace)
Parameters
processFileName
stringworkspace
IWorkspace
Returns
AddTitleMatchRoute(string, string)
Adds a router which moves windows matching regex
match
string to the
workspaceName
.IRouterManager AddTitleMatchRoute(string match, string workspaceName)
Parameters
Returns
AddTitleMatchRoute(string, IWorkspace)
Adds a router which moves windows matching regex
match
string to the
workspace
.IRouterManager AddTitleMatchRoute(string match, IWorkspace workspace)
Parameters
match
stringworkspace
IWorkspace
Returns
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
Returns
AddTitleRoute(string, IWorkspace)
Adds a router which moves windows matching
title
to the
workspace
.IRouterManager AddTitleRoute(string title, IWorkspace workspace)
Parameters
title
stringworkspace
IWorkspace
Returns
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
Returns
AddWindowClassRoute(string, IWorkspace)
Adds a router which moves windows matching
windowClass
to the
workspace
.IRouterManager AddWindowClassRoute(string windowClass, IWorkspace workspace)
Parameters
windowClass
stringworkspace
IWorkspace
Returns
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.