diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ #include "ui/tui.h" -#include <unistd.h> #include <stdio.h> +#include <unistd.h> void on_button_click(MOUSE_ACTION mouse_action) { printf("hello"); @@ -11,12 +11,17 @@ WIDGET *ui_build(TUI *tui) { return tui_make_box( -1, -1, tui_make_row(tui_make_widget_array( - 2, + 3, tui_make_box( 8, 2, tui_make_button(tui_make_text("Hello, World!", COLOR_BLUE), on_button_click), COLOR_YELLOW), + tui_make_box( + 8, 2, + tui_make_button(tui_make_text("Hello, World!", COLOR_RED), + on_button_click), + COLOR_BLUE), tui_make_text("Hello, World!", COLOR_RED), 1)), COLOR_MAGENTA); } |