MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / StartClippingCursor

Method StartClippingCursor

Source/Engine/Platform/Windows/WindowsWindow.cpp:665–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665void WindowsWindow::StartClippingCursor(const Rectangle& bounds)
666{
667 _isClippingCursor = true;
668 *(RECT*)_clipCursorRect = {
669 (LONG)bounds.GetUpperLeft().X,
670 (LONG)bounds.GetUpperLeft().Y,
671 (LONG)bounds.GetBottomRight().X,
672 (LONG)bounds.GetBottomRight().Y
673 };
674 if (IsFocused())
675 {
676 _clipCursorSet = true;
677 ClipCursor((RECT*)_clipCursorRect);
678 }
679}
680
681void WindowsWindow::EndClippingCursor()
682{

Callers

nothing calls this directly

Calls 1

IsFocusedFunction · 0.85

Tested by

no test coverage detected