From 461e6fcb6a0abbf594ea08d6828b841ea6dc964e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 23 Jun 2021 23:44:59 +0200 Subject: Widget improvements --- apps/view/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/view') 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(); -- cgit v1.2.3