![]() |
RGFW
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
|
Typedefs | |
typedef void(* | RGFW_windowMovedfunc) (RGFW_window *win, RGFW_rect r) |
typedef void(* | RGFW_windowResizedfunc) (RGFW_window *win, RGFW_rect r) |
typedef void(* | RGFW_windowRestoredfunc) (RGFW_window *win, RGFW_rect r) |
typedef void(* | RGFW_windowMaximizedfunc) (RGFW_window *win, RGFW_rect r) |
typedef void(* | RGFW_windowMinimizedfunc) (RGFW_window *win, RGFW_rect r) |
typedef void(* | RGFW_windowQuitfunc) (RGFW_window *win) |
typedef void(* | RGFW_focusfunc) (RGFW_window *win, RGFW_bool inFocus) |
typedef void(* | RGFW_mouseNotifyfunc) (RGFW_window *win, RGFW_point point, RGFW_bool status) |
typedef void(* | RGFW_mousePosfunc) (RGFW_window *win, RGFW_point point, RGFW_point vector) |
typedef void(* | RGFW_dndInitfunc) (RGFW_window *win, RGFW_point point) |
typedef void(* | RGFW_windowRefreshfunc) (RGFW_window *win) |
typedef void(* | RGFW_keyfunc) (RGFW_window *win, u8 key, u8 keyChar, RGFW_keymod keyMod, RGFW_bool pressed) |
typedef void(* | RGFW_mouseButtonfunc) (RGFW_window *win, RGFW_mouseButton button, double scroll, RGFW_bool pressed) |
typedef void(* | RGFW_gamepadButtonfunc) (RGFW_window *win, u16 gamepad, u8 button, RGFW_bool pressed) |
typedef void(* | RGFW_gamepadAxisfunc) (RGFW_window *win, u16 gamepad, RGFW_point axis[2], u8 axisesCount, u8 whichAxis) |
typedef void(* | RGFW_gamepadfunc) (RGFW_window *win, u16 gamepad, RGFW_bool connected) |
typedef void(* | RGFW_dndfunc) (RGFW_window *win, char **droppedFiles, size_t droppedFilesCount) |
typedef void(* | RGFW_scaleUpdatedfunc) (RGFW_window *win, float scaleX, float scaleY) |
event callbacks. These are completely optional, so you can use the normal RGFW_checkEvent() method if you prefer that
typedef void(* RGFW_dndfunc) (RGFW_window *win, char **droppedFiles, size_t droppedFilesCount) |
RGFW_dnd, the window that had the drop, the drop data and the number of files dropped
typedef void(* RGFW_dndInitfunc) (RGFW_window *win, RGFW_point point) |
RGFW_DNDInit, the window, the point of the drop on the windows
typedef void(* RGFW_focusfunc) (RGFW_window *win, RGFW_bool inFocus) |
RGFW_focusIn / RGFW_focusOut, the window who's focus has changed and if its in focus
typedef void(* RGFW_gamepadAxisfunc) (RGFW_window *win, u16 gamepad, RGFW_point axis[2], u8 axisesCount, u8 whichAxis) |
RGFW_gamepadAxisMove, the window that got the event, the gamepad in question, the axis values and the axis count
typedef void(* RGFW_gamepadButtonfunc) (RGFW_window *win, u16 gamepad, u8 button, RGFW_bool pressed) |
RGFW_gamepadButtonPressed, the window that got the event, the button that was pressed, the scroll value, if it was a press (else it's a release)
typedef void(* RGFW_gamepadfunc) (RGFW_window *win, u16 gamepad, RGFW_bool connected) |
RGFW_gamepadConnected / RGFW_gamepadDisconnected, the window that got the event, the gamepad in question, if the controller was connected (else it was disconnected)
typedef void(* RGFW_keyfunc) (RGFW_window *win, u8 key, u8 keyChar, RGFW_keymod keyMod, RGFW_bool pressed) |
RGFW_keyPressed / RGFW_keyReleased, the window that got the event, the mapped key, the physical key, the string version, the state of the mod keys, if it was a press (else it's a release)
typedef void(* RGFW_mouseButtonfunc) (RGFW_window *win, RGFW_mouseButton button, double scroll, RGFW_bool pressed) |
RGFW_mouseButtonPressed / RGFW_mouseButtonReleased, the window that got the event, the button that was pressed, the scroll value, if it was a press (else it's a release)
typedef void(* RGFW_mouseNotifyfunc) (RGFW_window *win, RGFW_point point, RGFW_bool status) |
RGFW_mouseEnter / RGFW_mouseLeave, the window that changed, the point of the mouse (enter only) and if the mouse has entered
typedef void(* RGFW_mousePosfunc) (RGFW_window *win, RGFW_point point, RGFW_point vector) |
RGFW_mousePosChanged, the window that the move happened on, and the new point of the mouse
typedef void(* RGFW_scaleUpdatedfunc) (RGFW_window *win, float scaleX, float scaleY) |
RGFW_scaleUpdated, the window the event was sent to, content scaleX, content scaleY
typedef void(* RGFW_windowMaximizedfunc) (RGFW_window *win, RGFW_rect r) |
RGFW_windowMaximized, the window and its new rect value
typedef void(* RGFW_windowMinimizedfunc) (RGFW_window *win, RGFW_rect r) |
RGFW_windowMinimized, the window and its new rect value
typedef void(* RGFW_windowMovedfunc) (RGFW_window *win, RGFW_rect r) |
RGFW_windowMoved, the window and its new rect value
typedef void(* RGFW_windowQuitfunc) (RGFW_window *win) |
RGFW_quit, the window that was closed
typedef void(* RGFW_windowRefreshfunc) (RGFW_window *win) |
RGFW_windowRefresh, the window that needs to be refreshed
typedef void(* RGFW_windowResizedfunc) (RGFW_window *win, RGFW_rect r) |
RGFW_windowResized, the window and its new rect value
typedef void(* RGFW_windowRestoredfunc) (RGFW_window *win, RGFW_rect r) |
RGFW_windowRestored, the window and its new rect value
RGFWDEF RGFW_dndfunc RGFW_setDndCallback | ( | RGFW_dndfunc | func | ) |
set callback for a drop event event. Returns previous callback function (if it was set)
RGFWDEF RGFW_dndInitfunc RGFW_setDndInitCallback | ( | RGFW_dndInitfunc | func | ) |
set callback for a start of a drop event. Returns previous callback function (if it was set)
RGFWDEF RGFW_focusfunc RGFW_setFocusCallback | ( | RGFW_focusfunc | func | ) |
set callback for a window focus change event. Returns previous callback function (if it was set)
RGFWDEF RGFW_gamepadAxisfunc RGFW_setGamepadAxisCallback | ( | RGFW_gamepadAxisfunc | func | ) |
set callback for a gamepad axis move event. Returns previous callback function (if it was set)
RGFWDEF RGFW_gamepadButtonfunc RGFW_setGamepadButtonCallback | ( | RGFW_gamepadButtonfunc | func | ) |
set callback for a controller button (press / release) event. Returns previous callback function (if it was set)
RGFWDEF RGFW_gamepadfunc RGFW_setGamepadCallback | ( | RGFW_gamepadfunc | func | ) |
set callback for when a controller is connected or disconnected. Returns the previous callback function (if it was set)
RGFWDEF RGFW_keyfunc RGFW_setKeyCallback | ( | RGFW_keyfunc | func | ) |
set callback for a key (press / release) event. Returns previous callback function (if it was set)
RGFWDEF RGFW_mouseButtonfunc RGFW_setMouseButtonCallback | ( | RGFW_mouseButtonfunc | func | ) |
set callback for a mouse button (press / release) event. Returns previous callback function (if it was set)
RGFWDEF RGFW_mouseNotifyfunc RGFW_setMouseNotifyCallback | ( | RGFW_mouseNotifyfunc | func | ) |
set callback for a mouse notify event. Returns previous callback function (if it was set)
RGFWDEF RGFW_mousePosfunc RGFW_setMousePosCallback | ( | RGFW_mousePosfunc | func | ) |
set callback for a mouse move event. Returns previous callback function (if it was set)
RGFWDEF RGFW_scaleUpdatedfunc RGFW_setScaleUpdatedCallback | ( | RGFW_scaleUpdatedfunc | func | ) |
set callback for when the DPI changes. Returns previous callback function (if it was set)
RGFWDEF RGFW_windowResizedfunc RGFW_setWindowMaximizedCallback | ( | RGFW_windowResizedfunc | func | ) |
set call back for when window is maximized. Returns the previous callback function (if it was set)
RGFWDEF RGFW_windowResizedfunc RGFW_setWindowMinimizedCallback | ( | RGFW_windowResizedfunc | func | ) |
set call back for when window is minimized. Returns the previous callback function (if it was set)
RGFWDEF RGFW_windowMovedfunc RGFW_setWindowMovedCallback | ( | RGFW_windowMovedfunc | func | ) |
set callback for a window move event. Returns previous callback function (if it was set)
RGFWDEF RGFW_windowQuitfunc RGFW_setWindowQuitCallback | ( | RGFW_windowQuitfunc | func | ) |
set callback for a window quit event. Returns previous callback function (if it was set)
RGFWDEF RGFW_windowRefreshfunc RGFW_setWindowRefreshCallback | ( | RGFW_windowRefreshfunc | func | ) |
set callback for a window refresh event. Returns previous callback function (if it was set)
RGFWDEF RGFW_windowResizedfunc RGFW_setWindowResizedCallback | ( | RGFW_windowResizedfunc | func | ) |
set callback for a window resize event. Returns previous callback function (if it was set)
RGFWDEF RGFW_windowResizedfunc RGFW_setWindowRestoredCallback | ( | RGFW_windowResizedfunc | func | ) |
set call back for when window is restored. Returns the previous callback function (if it was set)