![]() |
RGFW
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
|
Macros | |
#define | RGFW_MAX_EVENTS 32 |
#define | RGFW_eventQueuePushEx(eventInit) { RGFW_event e; eventInit; RGFW_eventQueuePush(e); } |
Functions | |
RGFWDEF double | RGFW_getTime (void) |
RGFWDEF u64 | RGFW_getTimeNS (void) |
RGFWDEF void | RGFW_sleep (u64 milisecond) |
RGFWDEF void | RGFW_setTime (double time) |
RGFWDEF u64 | RGFW_getTimerValue (void) |
RGFWDEF u64 | RGFW_getTimerFreq (void) |
RGFWDEF u32 | RGFW_checkFPS (double startTime, u32 frameCount, u32 fpsCap) |
RGFWDEF void | RGFW_setRootWindow (RGFW_window *win) |
RGFWDEF RGFW_window * | RGFW_getRootWindow (void) |
void | RGFW_eventQueuePush (RGFW_event event) |
RGFW_event * | RGFW_eventQueuePop (RGFW_window *win) |
typedef | RGFW_ENUM (u8, RGFW_key) |
RGFWDEF u32 | RGFW_apiKeyToRGFW (u32 keycode) |
RGFWDEF u32 | RGFW_rgfwToApiKey (u32 keycode) |
RGFWDEF u8 | RGFW_rgfwToKeyChar (u32 keycode) |
typedef | RGFW_ENUM (u8, RGFW_mouseIcons) |
#define RGFW_eventQueuePushEx | ( | eventInit | ) | { RGFW_event e; eventInit; RGFW_eventQueuePush(e); } |
#define RGFW_MAX_EVENTS 32 |
change which window is the root window
typedef RGFW_ENUM | ( | u8 | , |
RGFW_mouseIcons | |||
) |
RGFW_event * RGFW_eventQueuePop | ( | RGFW_window * | win | ) |
void RGFW_eventQueuePush | ( | RGFW_event | event | ) |
standard event queue, used for injecting events and returning source API callback events like any other queue check
RGFWDEF RGFW_window * RGFW_getRootWindow | ( | void | ) |
RGFWDEF double RGFW_getTime | ( | void | ) |
get time in seconds since RGFW_setTime, which ran when the first window is open
get time in nanoseconds RGFW_setTime, which ran when the first window is open
RGFWDEF void RGFW_setRootWindow | ( | RGFW_window * | win | ) |
RGFWDEF void RGFW_setTime | ( | double | time | ) |
set timer in seconds