| 34 #include "container.h" |
34 #include "container.h" |
| 35 #include "entry.h" |
35 #include "entry.h" |
| 36 |
36 |
| 37 |
37 |
| 38 UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) { |
38 UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) { |
| 39 double min = 0; |
39 double min = args->min; |
| 40 double max = 1000; |
40 double max = args->max != 0 ? args->max : 1000; |
| 41 |
41 |
| 42 UiObject* current = uic_current_obj(obj); |
42 UiObject* current = uic_current_obj(obj); |
| 43 |
43 |
| 44 UiVar *var = NULL; |
44 UiVar *var = NULL; |
| 45 UiVarType vartype = 0; |
45 UiVarType vartype = 0; |