| 131 |
131 |
| 132 void ui_dialogwindow_args_set_rbutton4(UiDialogWindowArgs *args, const char *label) { |
132 void ui_dialogwindow_args_set_rbutton4(UiDialogWindowArgs *args, const char *label) { |
| 133 args->rbutton4 = strdup(label); |
133 args->rbutton4 = strdup(label); |
| 134 } |
134 } |
| 135 |
135 |
| 136 void ui_dialogwindow_args_set_lbutton1_states(UiDialogWindowArgs *args, const int *states) { |
136 void ui_dialogwindow_args_set_lbutton1_states(UiDialogWindowArgs *args, const int *states, int numstates) { |
| 137 // TODO |
137 args->lbutton1_states = calloc(numstates+1, sizeof(int)); |
| 138 } |
138 memcpy((void*)args->lbutton1_states, states, numstates * sizeof(int)); |
| 139 |
139 ((int*)args->lbutton1_states)[numstates] = -1; |
| 140 void ui_dialogwindow_args_set_lbutton2_states(UiDialogWindowArgs *args, const int *states) { |
140 } |
| 141 // TODO |
141 |
| 142 } |
142 void ui_dialogwindow_args_set_lbutton2_states(UiDialogWindowArgs *args, const int *states, int numstates) { |
| 143 |
143 args->lbutton2_states = calloc(numstates+1, sizeof(int)); |
| 144 void ui_dialogwindow_args_set_rbutton3_states(UiDialogWindowArgs *args, const int *states) { |
144 memcpy((void*)args->lbutton2_states, states, numstates * sizeof(int)); |
| 145 // TODO |
145 ((int*)args->lbutton2_states)[numstates] = -1; |
| 146 } |
146 } |
| 147 |
147 |
| 148 void ui_dialogwindow_args_set_rbutton4_states(UiDialogWindowArgs *args, const int *states) { |
148 void ui_dialogwindow_args_set_rbutton3_states(UiDialogWindowArgs *args, const int *states, int numstates) { |
| 149 // TODO |
149 args->rbutton3_states = calloc(numstates+1, sizeof(int)); |
| |
150 memcpy((void*)args->rbutton3_states, states, numstates * sizeof(int)); |
| |
151 ((int*)args->rbutton3_states)[numstates] = -1; |
| |
152 } |
| |
153 |
| |
154 void ui_dialogwindow_args_set_rbutton4_states(UiDialogWindowArgs *args, const int *states, int numstates) { |
| |
155 args->rbutton4_states = calloc(numstates+1, sizeof(int)); |
| |
156 memcpy((void*)args->rbutton4_states, states, numstates * sizeof(int)); |
| |
157 ((int*)args->rbutton4_states)[numstates] = -1; |
| 150 } |
158 } |
| 151 |
159 |
| 152 void ui_dialogwindow_args_set_default_button(UiDialogWindowArgs *args, int button) { |
160 void ui_dialogwindow_args_set_default_button(UiDialogWindowArgs *args, int button) { |
| 153 args->default_button = button; |
161 args->default_button = button; |
| 154 } |
162 } |