row: Move button find iteration into row

This commit is contained in:
Dorota Czaplejewicz
2019-08-16 14:49:10 +00:00
parent 7caf2ef86d
commit e56f1c6392
3 changed files with 66 additions and 34 deletions

View File

@ -24,6 +24,8 @@ uint32_t squeek_row_contains(struct squeek_row*, struct squeek_button *button);
struct squeek_button* squeek_row_find_key(struct squeek_row*, struct squeek_key *state);
struct squeek_button *squeek_row_find_button_by_position(struct squeek_row *row, EekPoint point, EekPoint origin);
typedef void (*ButtonCallback) (struct squeek_button *button, gpointer user_data);
void squeek_row_foreach(struct squeek_row*,
ButtonCallback callback,