More WIndows specific parts moved to this project

This commit is contained in:
Dan Clark
2024-11-02 20:57:13 +00:00
parent 48c63b3bb0
commit 81e39f9895
25 changed files with 528 additions and 68 deletions
@@ -0,0 +1,9 @@
namespace Toolkit.Windows;
public static class PointerLocationExtensions
{
public static bool IsWithinBounds(this PointerLocation args, Rect bounds) => args.X >= bounds.X
&& args.X <= bounds.X + bounds.Width
&& args.Y >= bounds.Y
&& args.Y <= bounds.Y + bounds.Height;
}