-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor event handling in WindowManager (#131)
- `IWindowManager` now has separate events for each event type. As a result, the `WindowUpdated` event, the `WindowUpdateEventArgs` class, and the `WindowUpdateType` enum have been removed. - The `WindowMoved` event is used for both `EVENT_OBJECT_LOCATION_CHANGE` and `EVENT_SYSTEM_MOVESIZEEND` (previously they were separate `WindowUpdateType`s). - Removed `WindowManager.Trigger*` methods in favor of the `OnWindow*` methods used for responding to Windows events. - Updated consumers of `IWindowManager` events.
- Loading branch information
Showing
10 changed files
with
141 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace Whim; | ||
|
||
/// <summary> | ||
/// Event arguments for when a <see cref="IWindow"/> has had something happen to it. | ||
/// </summary> | ||
public class WindowEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// The <see cref="IWindow"/> that had something happen to it. | ||
/// </summary> | ||
public IWindow Window { get; private set; } | ||
|
||
/// <summary> | ||
/// Create a new <see cref="WindowEventArgs"/>. | ||
/// </summary> | ||
/// <param name="window"></param> | ||
public WindowEventArgs(IWindow window) | ||
{ | ||
Window = window; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.