Class to generate an operating system cursor. More...
Public Member Functions | |
OSCursorImage () noexcept | |
Default constructor. | |
~OSCursorImage () | |
Default destructor. | |
eError | CreateMonoChromeImage (const uint8_t *pXor, const uint8_t *pAnd, uint_t uWidth, uint_t uHeight, int_t iHotX, int_t iHotY) noexcept |
Generate a monochrome cursor. | |
void | Shutdown (void) noexcept |
Release memory. | |
Private Member Functions | |
OSCursorImage (const OSCursorImage &)=delete | |
OSCursorImage & | operator= (const OSCursorImage &)=delete |
OSCursorImage (OSCursorImage &&)=delete | |
OSCursorImage & | operator= (OSCursorImage &&)=delete |
Private Attributes | |
HICON__ * | m_pCursorImage |
Windows only, handle to the cursor image. | |
uint_t | m_uWidth |
Width of the cursor in pixels. | |
uint_t | m_uHeight |
Height of the cursor in pixels. | |
int_t | m_iHotX |
Anchor X coordinate of the cursor. | |
int_t | m_iHotY |
Anchor Y coordinate of the cursor. | |
Friends | |
class | OSCursor |
Class to generate an operating system cursor.
For desktop operating systems like MacOS, Windows and Linux, a mouse cursor is drawn and updated by the operating system. This class allows the creation of cursors from monochrome or color bitmaps for run time creation of a hardware cursor.
|
privatedelete |
|
privatedelete |
|
noexcept |
Default constructor.
Power up defaults. No cursor is generated.
Burger::OSCursorImage::~OSCursorImage | ( | ) |
|
noexcept |
Generate a monochrome cursor.
Given a black and white image, create a cursor.
pXor | Pointer to the 1 bit per pixel bit map that is exclusive ored with the screen |
pAnd | Pointer to the 1 bit per pixel bit map that is and'd with the screen before the exclusive or |
uWidth | Width of the cursor image in pixels |
uHeight | Height of the cursor image in pixels |
iHotX | X coordinate of the hot spot in the cursor |
iHotY | Y coordinate of the hot spot in the cursor |
|
privatedelete |
|
privatedelete |
|
noexcept |
Release memory.
Release all allocated resources in the class.
|
private |
Anchor X coordinate of the cursor.
|
private |
Anchor Y coordinate of the cursor.
|
private |
Windows only, handle to the cursor image.
|
private |
Height of the cursor in pixels.
|
private |
Width of the cursor in pixels.