added show and hide cursor support, fixing technological debt from original mlx, fixed missaligned comments in mlx.h

This commit is contained in:
2024-10-31 15:16:01 +01:00
parent 6669d78323
commit a662427097
7 changed files with 205 additions and 205 deletions

View File

@@ -137,7 +137,7 @@ namespace mlx
CHECK_WINDOW_PTR(win);
if(str == nullptr)
{
Error("wrong text (NULL)");
Error("invalid text (NULL)");
return;
}
if(std::strlen(str) == 0)

View File

@@ -22,6 +22,9 @@ namespace mlx
void GetScreenSizeWindowIsOn(Handle window, int* x, int* y) const noexcept;
void SetWindowPosition(Handle window, int x, int y) const noexcept;
static void HideCursor() noexcept;
static void ShowCursor() noexcept;
std::int32_t GetX() const noexcept;
std::int32_t GetY() const noexcept;
std::int32_t GetXRel() const noexcept;