This commit is contained in:
akokshar@redhat.com 2017-08-29 11:19:43 +02:00
parent 7553103e34
commit 65022e1cbf
5 changed files with 138 additions and 10 deletions

View file

@ -13,6 +13,7 @@ struct status_line {
list_t *block_line;
const char *text_line;
command_protocol protocol;
bool click_events;
};
struct status_block {
@ -31,6 +32,10 @@ struct status_block {
int border_bottom;
int border_left;
int border_right;
// Set during rendering
int x;
int width;
};
/**
@ -43,6 +48,11 @@ struct status_line *init_status_line();
*/
bool handle_status_line(struct bar *bar);
/**
* Handle mouse clicks.
*/
bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button);
/**
* Free status line struct.
*/