This commit is contained in:
2024-10-22 16:25:13 +02:00
parent a86f26f0f3
commit 58ad52e1cc
7 changed files with 27 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ namespace mlx
inline int GetWidth() const noexcept { return m_width; }
inline int GetHeight() const noexcept { return m_height; }
inline std::uint32_t GetID() const noexcept { return m_id; }
inline const std::string& GetName() const { return m_name; }
inline void MoveMouse(int x, int y) { SDLManager::Get().MoveMouseOnWindow(p_window, x, y); }
inline void GetScreenSizeWindowIsOn(int* x, int* y) { SDLManager::Get().GetScreenSizeWindowIsOn(p_window, x, y); }
@@ -29,6 +30,7 @@ namespace mlx
~Window() { Destroy(); }
private:
std::string m_name;
Handle p_window = nullptr;
std::int32_t m_id;
int m_width = 0;