Table of Contents

Interface IWindowProcessor

Namespace
Whim
Assembly
Whim.dll
Represents a processor for events from Windows. This is for windows with non-standard behavior. For example, Firefox will try reset the window position on startup. The FirefoxWindowProcessor will ignore these events.
public interface IWindowProcessor

Remarks

Window processors are expected to implement a method which accepts an IContext and an IWindow. If the window matches the processor, it should return an instance of the processor. Otherwise, it should return null. The processor will then be used to handle events for that window.

Properties

Window

The window that this processor is for.
IWindow Window { get; }

Property Value

IWindow

Methods

ProcessEvent(uint, int, int, uint, uint)

Processes the given event. For more about the arguments, see https://docs.microsoft.com/en-us/windows/win32/api/winuser/nc-winuser-wineventproc
WindowProcessorResult ProcessEvent(uint eventType, int idObject, int idChild, uint idEventThread, uint dwmsEventTime)

Parameters

eventType uint
idObject int
idChild int
idEventThread uint
dwmsEventTime uint

Returns

WindowProcessorResult
Whether the event should be ignored by Whim.