forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e0c850b
commit 8408032
Showing
2 changed files
with
77 additions
and
10 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
67 changes: 67 additions & 0 deletions
67
src/Uno.UWP/Microsoft/UI/Windowing/AppWindowChangedEventArgs.cs
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,67 @@ | ||
namespace Microsoft.UI.Windowing; | ||
|
||
/// <summary> | ||
/// Provides data for the AppWindow.Changed event. | ||
/// </summary> | ||
public partial class AppWindowChangedEventArgs | ||
{ | ||
internal AppWindowChangedEventArgs( | ||
bool didPositionChange, | ||
bool didPresenterChange, | ||
bool didSizeChange, | ||
bool didVisibilityChange, | ||
bool didZOrderChange, | ||
bool isZOrderAtBottom, | ||
bool isZOrderAtTop, | ||
WindowId zOrderBelowWindowId) | ||
{ | ||
DidPositionChange = didPositionChange; | ||
DidPresenterChange = didPresenterChange; | ||
DidSizeChange = didSizeChange; | ||
DidVisibilityChange = didVisibilityChange; | ||
DidZOrderChange = didZOrderChange; | ||
IsZOrderAtBottom = isZOrderAtBottom; | ||
IsZOrderAtTop = isZOrderAtTop; | ||
ZOrderBelowWindowId = zOrderBelowWindowId; | ||
} | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the AppWindow.Position property changed. | ||
/// </summary> | ||
public bool DidPositionChange { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the AppWindow.Presenter property changed. | ||
/// </summary> | ||
public bool DidPresenterChange { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the AppWindow.Size property changed. | ||
/// </summary> | ||
public bool DidSizeChange { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the AppWindow.IsVisible property changed. | ||
/// </summary> | ||
public bool DidVisibilityChange { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the window's position in the Z-order changed. | ||
/// </summary> | ||
public bool DidZOrderChange { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the window is now at the bottom of the Z-order. | ||
/// </summary> | ||
public bool IsZOrderAtBottom { get; } | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the window is now at the top of the Z-order. | ||
/// </summary> | ||
public bool IsZOrderAtTop { get; } | ||
|
||
/// <summary> | ||
/// Gets the ID of the window directly above this window in Z-order, if Z-order changed and this window is not the top window. | ||
/// </summary> | ||
public WindowId ZOrderBelowWindowId { get; } | ||
} |