| 42 typedef struct UiSpinBox { |
42 typedef struct UiSpinBox { |
| 43 UiObject *obj; |
43 UiObject *obj; |
| 44 Widget textfield; |
44 Widget textfield; |
| 45 UiVar *var; |
45 UiVar *var; |
| 46 UiVarType vartype; |
46 UiVarType vartype; |
| |
47 UiObserver **obs; |
| 47 ui_callback onchange; |
48 ui_callback onchange; |
| 48 void* onchangedata; |
49 void* onchangedata; |
| 49 double last_value; |
50 double value; |
| 50 double min; |
51 double min; |
| 51 double max; |
52 double max; |
| 52 double increment; |
53 double increment; |
| 53 int digits; |
54 int digits; |
| 54 } UiSpinBox; |
55 } UiSpinBox; |
| |
56 |
| |
57 void ui_spinbox_set_value(UiSpinBox *spinbox, double value); |
| 55 |
58 |
| 56 void ui_spinbox_value_changed(Widget widget, UiSpinBox *spinbox, XmSpinBoxCallbackStruct *cb); |
59 void ui_spinbox_value_changed(Widget widget, UiSpinBox *spinbox, XmSpinBoxCallbackStruct *cb); |
| |
60 |
| |
61 int64_t ui_spinbutton_getint(UiInteger *i); |
| |
62 void ui_spinbutton_setint(UiInteger *i, int64_t val); |
| |
63 |
| |
64 double ui_spinbutton_getdouble(UiDouble *d); |
| |
65 void ui_spinbutton_setdouble(UiDouble *d, double val); |
| |
66 |
| |
67 double ui_spinbutton_getrangeval(UiRange *r); |
| |
68 void ui_spinbutton_setrangeval(UiRange *r, double val); |
| |
69 void ui_spinbutton_setrange(UiRange *r, double min, double max); |
| |
70 void ui_spinbutton_setextent(UiRange *r, double extent); |
| 57 |
71 |
| 58 #ifdef __cplusplus |
72 #ifdef __cplusplus |
| 59 } |
73 } |
| 60 #endif |
74 #endif |
| 61 |
75 |