API Documentation
Static Public Member Functions | List of all members
nkWinUi::CursorUtils Class Referencefinal

A utility class to interact with the cursor. More...

Static Public Member Functions

static nkMaths::Point getCursorPosition ()
 
static void setCursorPosition (nkMaths::Point absPos)
 

Detailed Description

A utility class to interact with the cursor.

Member Function Documentation

◆ getCursorPosition()

static nkMaths::Point nkWinUi::CursorUtils::getCursorPosition ( )
static

Allows to retrieve the cursor position on screen (absolute coordinates).

Returns
The cursor screen position, on the screen, in pixels.

◆ setCursorPosition()

static void nkWinUi::CursorUtils::setCursorPosition ( nkMaths::Point  absPos)
static

Sets the position of the mouse cursor, on screen.

Parameters
absPosThe absolute position, on screen, to put the cursor at.

The documentation for this class was generated from the following file: