MostlyHarmless 0.0.1
Loading...
Searching...
No Matches
mostly_harmless::gui::cursor Namespace Reference

Functions

auto setCursorState (bool show) -> void
auto getCursorPosition (std::uint32_t *x, std::uint32_t *y) -> void
auto setCursorPosition (std::uint32_t x, std::uint32_t y) -> void

Function Documentation

◆ getCursorPosition()

auto mostly_harmless::gui::cursor::getCursorPosition ( std::uint32_t * x,
std::uint32_t * y ) -> void

Retrieves the screen x & y for the cursor, and stores the results in x and y.

Parameters
xA pointer to a var to store the cursor's x position in.
yA pointer to a var to store the cursor's y position in.

◆ setCursorPosition()

auto mostly_harmless::gui::cursor::setCursorPosition ( std::uint32_t x,
std::uint32_t y ) -> void

Sets the cursor's position to the specified (screen) x & y coords.

Parameters
xThe new x position for the cursor (in screen bounds).
yThe new y position for the cursor (in screen bounds).

◆ setCursorState()

auto mostly_harmless::gui::cursor::setCursorState ( bool show) -> void

Shows or hides the cursor

Parameters
showWhether the cursor should be shown or hidden.