-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
675 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 LiJianying <[email protected]> | ||
Copyright (c) 2022 LiJianying <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,34 @@ | ||
abstract class WindowListener { | ||
/// Emitted when the window gains focus. | ||
void onWindowFocus() {} | ||
|
||
/// Emitted when the window loses focus. | ||
void onWindowBlur() {} | ||
|
||
/// Emitted when window is maximized. | ||
void onWindowMaximize() {} | ||
|
||
/// Emitted when the window exits from a maximized state. | ||
void onWindowUnmaximize() {} | ||
|
||
/// Emitted when the window is minimized. | ||
void onWindowMinimize() {} | ||
|
||
/// Emitted when the window is restored from a minimized state. | ||
void onWindowRestore() {} | ||
|
||
/// Emitted after the window has been resized. | ||
void onWindowResize() {} | ||
|
||
/// Emitted when the window is being moved to a new position. | ||
void onWindowMove() {} | ||
|
||
/// Emitted when the window enters a full-screen state. | ||
void onWindowEnterFullScreen() {} | ||
|
||
/// Emitted when the window leaves a full-screen state. | ||
void onWindowLeaveFullScreen() {} | ||
|
||
/// Emitted all events. | ||
void onWindowEvent(String eventName) {} | ||
} |
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