Merge branch 'feature-clip-cursor' of https://github.com/ScottLongley/FlaxEngine into ScottLongley-feature-clip-cursor

This commit is contained in:
Wojtek Figat
2022-07-16 09:03:47 +02:00
6 changed files with 73 additions and 0 deletions

View File

@@ -288,6 +288,7 @@ protected:
bool _isUsingMouseOffset;
Rectangle _mouseOffsetScreenSize;
bool _isTrackingMouse;
bool _isClippingCursor;
explicit WindowBase(const CreateWindowSettings& settings);
virtual ~WindowBase();
@@ -694,6 +695,29 @@ public:
{
}
/// <summary>
/// Starts the cursor clipping.
/// </summary>
/// <param name="bounds">The bounds that the cursor will be confined to.</param>
API_FUNCTION() virtual void StartClippingCursor(const Rectangle& bounds)
{
}
/// <summary>
/// Gets the value indicating whenever the cursor is being clipped.
/// </summary>
API_PROPERTY() bool IsCursorClipping() const
{
return _isClippingCursor;
}
/// <summary>
/// Ends the cursor clipping.
/// </summary>
API_FUNCTION() virtual void EndClippingCursor()
{
}
/// <summary>
/// Gets the mouse cursor.
/// </summary>