mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
New GUI/View ASCII input API
This commit is contained in:
@@ -32,6 +32,12 @@ typedef void (*ViewPortDrawCallback)(Canvas* canvas, void* context);
|
||||
*/
|
||||
typedef void (*ViewPortInputCallback)(InputEvent* event, void* context);
|
||||
|
||||
/** ViewPort Ascii callback
|
||||
* @return true if event handled, false if event ignored
|
||||
* @warning called from GUI thread
|
||||
*/
|
||||
typedef bool (*ViewPortAsciiCallback)(AsciiEvent* event, void* context);
|
||||
|
||||
/** ViewPort allocator
|
||||
*
|
||||
* always returns view_port or stops system if not enough memory.
|
||||
@@ -88,6 +94,10 @@ void view_port_input_callback_set(
|
||||
ViewPort* view_port,
|
||||
ViewPortInputCallback callback,
|
||||
void* context);
|
||||
void view_port_ascii_callback_set(
|
||||
ViewPort* view_port,
|
||||
ViewPortAsciiCallback callback,
|
||||
void* context);
|
||||
|
||||
/** Emit update signal to GUI system.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user