GUI: abolish API injection into instances. (#265)
* GUI: abolish API injection into instances. Update usage by 3rd party apps. * GUI: update documentation. Cleanup api usage. Adjust status bar item spacing.
This commit is contained in:
@@ -5,7 +5,16 @@
|
||||
|
||||
typedef struct Widget Widget;
|
||||
|
||||
typedef void (*WidgetDrawCallback)(CanvasApi* api, void* context);
|
||||
/*
|
||||
* Widget Draw callback
|
||||
* @warning called from GUI thread
|
||||
*/
|
||||
typedef void (*WidgetDrawCallback)(Canvas* api, void* context);
|
||||
|
||||
/*
|
||||
* Widget Input callback
|
||||
* @warning called from GUI thread
|
||||
*/
|
||||
typedef void (*WidgetInputCallback)(InputEvent* event, void* context);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user