- Adds a taskbar that displays and manages open application windows - close, minimise and restore functionality - resizeable windows - Refactored desktop event handling to manage window focus and render order
20 lines
334 B
C++
20 lines
334 B
C++
#pragma once
|
|
|
|
#include <SDL3/SDL_mouse.h>
|
|
|
|
enum class CursorType {
|
|
ARROW,
|
|
RESIZE_NWSE /* Diagonal resize arrow. */
|
|
};
|
|
|
|
class CursorManager {
|
|
public:
|
|
static void init(void);
|
|
static void set_cursor(CursorType type);
|
|
static void quit(void);
|
|
|
|
private:
|
|
static SDL_Cursor* _arrow_cursor;
|
|
static SDL_Cursor* _resize_cursor;
|
|
};
|