Utility/Cursor: Rework Cursor as a handled object
This commit is contained in:
@@ -67,6 +67,11 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
inline const CursorRef& Window::GetCursor() const
|
||||
{
|
||||
return m_cursor;
|
||||
}
|
||||
|
||||
inline CursorController& Nz::Window::GetCursorController()
|
||||
{
|
||||
return m_cursorController;
|
||||
@@ -101,6 +106,11 @@ namespace Nz
|
||||
return m_impl != nullptr;
|
||||
}
|
||||
|
||||
inline void Window::SetCursor(SystemCursor systemCursor)
|
||||
{
|
||||
SetCursor(Cursor::Get(systemCursor));
|
||||
}
|
||||
|
||||
inline void Window::HandleEvent(const WindowEvent& event)
|
||||
{
|
||||
if (m_eventPolling)
|
||||
|
||||
Reference in New Issue
Block a user