-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented flip feature for screen mirror (#127)
- Loading branch information
1 parent
30998d6
commit 22cf3fa
Showing
20 changed files
with
801 additions
and
593 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Winleafs.Models.Enums | ||
{ | ||
public enum ScreenMirrorFlip | ||
{ | ||
None = 0, | ||
Horizontal = 1, | ||
Vertical = 2, | ||
HorizontalVertical = 3 | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using Winleafs.Models.Enums; | ||
|
||
namespace Winleafs.Wpf.Api.Layouts | ||
{ | ||
public enum FlipType | ||
{ | ||
None = 0, | ||
Horizontal = 1, | ||
Vertical = 2, | ||
HorizontalVertical = 3 | ||
} | ||
|
||
public static class FlipTypeHelper | ||
{ | ||
public static FlipType ScreenMirrorFlipToFlipType(ScreenMirrorFlip screenMirrorFlip) | ||
{ | ||
switch (screenMirrorFlip) | ||
{ | ||
case ScreenMirrorFlip.None: | ||
return FlipType.None; | ||
case ScreenMirrorFlip.Horizontal: | ||
return FlipType.Horizontal; | ||
case ScreenMirrorFlip.Vertical: | ||
return FlipType.Vertical; | ||
case ScreenMirrorFlip.HorizontalVertical: | ||
return FlipType.HorizontalVertical; | ||
default: | ||
throw new NotImplementedException($"Conversion for {nameof(ScreenMirrorFlip)}.{screenMirrorFlip} not implemented."); | ||
} | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.