58 |
58 |
59 void action1(UiEvent* event, void* data) { |
59 void action1(UiEvent* event, void* data) { |
60 char* action = data; |
60 char* action = data; |
61 |
61 |
62 WindowData* wdata = event->window; |
62 WindowData* wdata = event->window; |
63 int64_t is_checked = wdata->check->get(wdata->check); |
63 int64_t is_checked = ui_get(wdata->check); |
64 int64_t radio = wdata->radio->get(wdata->radio); |
64 int64_t radio = ui_get(wdata->radio); |
65 |
65 |
66 printf("data: %s %d\n", data, is_checked); |
66 printf("data: %s %d\n", data, is_checked); |
67 |
67 |
68 double d = wdata->progress->get(wdata->progress); |
68 double d = ui_get(wdata->progress); |
69 wdata->progress->set(wdata->progress, d + 1); |
69 ui_set(wdata->progress, d + 1); |
70 |
70 |
71 int spinner_active = wdata->spinner->get(wdata->spinner); |
71 int spinner_active = ui_get(wdata->spinner); |
72 wdata->spinner->set(wdata->spinner, !spinner_active); |
72 ui_set(wdata->spinner, !spinner_active); |
73 |
73 |
74 ui_list_append(menuList, "List Item X"); |
74 ui_list_append(menuList, "List Item X"); |
75 ui_list_append(menuList, "List Item X"); |
75 ui_list_append(menuList, "List Item X"); |
76 ui_notify(menuList->observers, NULL); |
76 ui_notify(menuList->observers, NULL); |
77 } |
77 } |