|
maug
Quick and dirty C mini-augmentation library.
|
Callbacks for handling platform events like focus/size changes. More...

Topics | |
| Platform-Specific Handlers | |
| These are called internally from the platform API. | |
Macros | |
| #define | RETROFLAT_FOCUS_FLAG_ACTIVE 0x01 |
| #define | RETROFLAT_FOCUS_FLAG_VISIBLE 0x02 |
Typedefs | |
| typedef MERROR_RETVAL(* | retroflat_proc_resize_t) (uint16_t new_w, uint16_t new_h, void *data) |
| typedef MERROR_RETVAL(* | retroflat_proc_focus_t) (uint8_t flags, void *data) |
| typedef MERROR_RETVAL(* | retroflat_proc_quit_t) (void *data) |
| Callback to call when window closing is attempted. Should return MERROR_PREEMPT to defer or MERROR_OK to continue closing. | |
Functions | |
| void | retroflat_set_proc_resize (retroflat_proc_resize_t on_resize_in, void *data_in) |
| Set the procedure to call when the window is resized (on platforms that support resizing). | |
| ssize_t | retroflat_timer_add (retroflat_ms_t time, retroflat_timer_cb_t cb, void *data) |
| Add a timer callback to be executed at the given time. | |
| void | retroflat_set_proc_focus (retroflat_proc_focus_t on_focus_in, void *data_in) |
| Set the procedure to call when the window gains or loses focus (on platforms that support multitasking). | |
| void | retroflat_set_proc_quit (retroflat_proc_quit_t on_quit_in, void *data_in) |
| Set the procedure to call when the window is attempted to be closed (on platforms that support windows). | |
Callbacks for handling platform events like focus/size changes.
| void retroflat_set_proc_focus | ( | retroflat_proc_focus_t | on_focus_in, |
| void * | data_in ) |
Set the procedure to call when the window gains or loses focus (on platforms that support multitasking).
| on_focus_in | Procedure to call when window gains/loses focus. |
| data_in | Data to pass to on_focus_in. |
| void retroflat_set_proc_quit | ( | retroflat_proc_quit_t | on_quit_in, |
| void * | data_in ) |
Set the procedure to call when the window is attempted to be closed (on platforms that support windows).
| on_quit_in | Procedure to call when window gains/loses focus. |
| data_in | Data to pass to on_quit_in. |
| void retroflat_set_proc_resize | ( | retroflat_proc_resize_t | on_resize_in, |
| void * | data_in ) |
Set the procedure to call when the window is resized (on platforms that support resizing).
| on_resize_in | Procedure to call when window is resized. |
| data_in | Data to pass to on_resize_in. |
| ssize_t retroflat_timer_add | ( | retroflat_ms_t | time, |
| retroflat_timer_cb_t | cb, | ||
| void * | data ) |
Add a timer callback to be executed at the given time.