handle button press/release

first version, to be finished
This commit is contained in:
Cedric Roux
2016-04-28 17:10:55 +02:00
parent 2df85ee84a
commit e742718c2d
6 changed files with 83 additions and 2 deletions
+2
View File
@@ -47,6 +47,8 @@ struct widget {
void (*hints)(gui *g, widget *this, int *width, int *height);
void (*paint)(gui *g, widget *this);
void (*clear)(gui *g, widget *this);
/* user input */
void (*button)(gui *g, widget *this, int x, int y, int button, int up);
};
struct widget_list {