make label clickable (the user has to ask for it, it's non-clickable by default)

This commit is contained in:
Cedric Roux
2016-05-04 15:56:06 +02:00
parent d4a4bba32e
commit 8f50b77e30
2 changed files with 38 additions and 0 deletions
+4
View File
@@ -26,6 +26,8 @@ widget *new_xy_plot(gui *gui, int width, int height, char *label,
int vruler_width);
widget *new_textlist(gui *_gui, int width, int nlines, int background_color);
void label_set_clickable(gui *gui, widget *label, int clickable);
void container_set_child_growable(gui *_gui, widget *_this,
widget *child, int growable);
@@ -60,6 +62,8 @@ int new_color(gui *gui, char *color);
* - scrollup { void *: NULL }
* - scrolldown { void *: NULL }
* - click { int [2]: line, button }
* - label:
* - click { int: button } (if enabled)
*/
/* same type as in gui_defs.h */