Interface IWindowManager
- Namespace
- Whim
- Assembly
- Whim.dll
The manager for IWindows.
[Obsolete("Use transforms and pickers to interact with the store instead.")]
public interface IWindowManager : IEnumerable<IWindow>, IEnumerable, IDisposable
- Inherited Members
Methods
CreateWindow(HWND)
Creates a new window. If the window cannot be created, null is returned.
This will try reuse existing IWindows if possible.
[Obsolete("Use IContext.CreateWindow instead.")]
Result<IWindow> CreateWindow(HWND hWnd)
Parameters
hWnd
HWND- The window handle.
Returns
Remarks
This does not add the window to the IWindowManager or to the IWorkspaceManager.
Initialize()
Initialize the windows event hooks.
void Initialize()
Events
WindowAdded
Event for when a window is added by the IWindowManager.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowAdded event instead.")]
event EventHandler<WindowAddedEventArgs>? WindowAdded
Event Type
WindowFocused
Event for when a window is focused.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowFocused event instead.")]
event EventHandler<WindowFocusedEventArgs>? WindowFocused
Event Type
WindowMinimizeEnd
Event for when a window has ended being minimized.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowMinimizeEnded event instead.")]
event EventHandler<WindowMinimizeEndedEventArgs>? WindowMinimizeEnd
Event Type
WindowMinimizeStart
Event for when a window has started being minimized.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowMinimizeStarted event instead.")]
event EventHandler<WindowMinimizeStartedEventArgs>? WindowMinimizeStart
Event Type
WindowMoveEnd
Event for when a window has changed location, shape, or size.
This event is fired when Windows sends the
Windows.Win32.PInvoke.EVENT_SYSTEM_MOVESIZEEND event.
See https://docs.microsoft.com/en-us/windows/win32/winauto/event-constants for more information.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowMoveEnded event instead.")]
event EventHandler<WindowMoveEndedEventArgs>? WindowMoveEnd
Event Type
WindowMoveStart
Event for when a window is being moved or resized.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowMoveStarted event instead.")]
event EventHandler<WindowMoveStartedEventArgs>? WindowMoveStart
Event Type
WindowMoved
Event for when a window has changed location, shape, or size.
This event is fired when Windows sends the
Windows.Win32.PInvoke.EVENT_OBJECT_LOCATIONCHANGE event.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowMoved event instead.")]
event EventHandler<WindowMovedEventArgs>? WindowMoved
Event Type
WindowRemoved
Event for when a window is removed from Whim.
[Obsolete("Use the IStore.IWindowSectorEvents.WindowRemoved event instead.")]
event EventHandler<WindowRemovedEventArgs>? WindowRemoved