More WIndows specific parts moved to this project
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user