notification system (from user input to application basically)
This commit is contained in:
@@ -36,4 +36,19 @@ void gunlock(gui *gui);
|
||||
|
||||
int new_color(gui *gui, char *color);
|
||||
|
||||
/* notifications */
|
||||
/* known notifications:
|
||||
* - text_list:
|
||||
* - scrollup { }
|
||||
* - scrolldown { }
|
||||
* //- click { int line, int button }
|
||||
*/
|
||||
|
||||
/* same type as in gui_defs.h */
|
||||
typedef void (*notifier)(void *private, gui *g,
|
||||
char *notification, widget *w, void *notification_data);
|
||||
unsigned long register_notifier(gui *g, char *notification, widget *w,
|
||||
notifier handler, void *private);
|
||||
void unregister_notifier(gui *g, unsigned long notifier_id);
|
||||
|
||||
#endif /* _GUI_H_ */
|
||||
|
||||
Reference in New Issue
Block a user