-
-
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.
EditorCanvasView
is the camera class
- Loading branch information
1 parent
363aaee
commit e5610a4
Showing
2 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,6 +1,39 @@ | ||
namespace TestEditor.Editor | ||
using Windows.Foundation; | ||
|
||
namespace TestEditor.Editor | ||
{ | ||
internal class EditorCanvasView | ||
{ | ||
private Rect myRect; | ||
|
||
public Rect Region | ||
{ | ||
get => myRect; | ||
set => myRect = value; | ||
} | ||
public double X | ||
{ | ||
get => myRect.X; | ||
set => myRect.X = value; | ||
} | ||
public double Y | ||
{ | ||
get => myRect.Y; | ||
set => myRect.Y = value; | ||
} | ||
public double W | ||
{ | ||
get => myRect.Width; | ||
set => myRect.Width = value; | ||
} | ||
public double H | ||
{ | ||
get => myRect.Height; | ||
set => myRect.Height = value; | ||
} | ||
public double Left => myRect.Left; | ||
public double Right => myRect.Right; | ||
public double Top => myRect.Top; | ||
public double Bottom => myRect.Bottom; | ||
} | ||
} |
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