actions: Separate data from action string

Modules now no longer need to manually parse the action string and
extract data from it.
This commit is contained in:
patrick96 2020-05-24 00:36:16 +02:00 committed by Patrick Ziegler
parent 8acedeef87
commit bc1b86c584
33 changed files with 124 additions and 142 deletions
include/components

View file

@ -49,9 +49,9 @@ class builder {
void underline_close();
void control(controltag tag);
void action(mousebtn index, string action);
void action(mousebtn btn, const modules::input_handler& handler, string action);
void action(mousebtn btn, const modules::input_handler& handler, string action, string data);
void action(mousebtn index, string action, const label_t& label);
void action(mousebtn btn, const modules::input_handler& handler, string action, const label_t& label);
void action(mousebtn btn, const modules::input_handler& handler, string action, string data, const label_t& label);
void action_close();
protected: