diff options
author | Marvin Borner | 2021-06-23 23:44:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-23 23:44:59 +0200 |
commit | 461e6fcb6a0abbf594ea08d6828b841ea6dc964e (patch) | |
tree | 25487387f068f80c100d1a2658864df422b6bee0 /apps/view | |
parent | af338d77ee7f6469530233a70ccb450171ec5c66 (diff) |
Widget improvements
Diffstat (limited to 'apps/view')
-rw-r--r-- | apps/view/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/view/main.c b/apps/view/main.c index 20661a7..fc7e3bc 100644 --- a/apps/view/main.c +++ b/apps/view/main.c @@ -25,10 +25,10 @@ int main(int argc, char *argv[]) path = "/res/test.png"; - u32 win = gui_new_custom_window(APPNAME, vec2(0, 0), size); - u32 canvas = gui_new_widget(win, GUI_MAIN, vec2(0, 0), size); + u32 win = gui_custom_window(APPNAME, vec2(0, 0), size); + u32 canvas = gui_widget(win, gui_main_widget(win), vec2(0, 0), size); gui_fill(win, canvas, GUI_LAYER_BG, COLOR_WHITE); - gui_listen_widget(win, canvas, GUI_LISTEN_MOUSEMOVE, (u32)mousemove); + gui_widget_listen(win, canvas, GUI_LISTEN_MOUSEMOVE, (u32)mousemove); gui_redraw_window(win); gui_loop(); |