| 50 ctn->add(separator); |
50 ctn->add(separator); |
| 51 |
51 |
| 52 return separator; |
52 return separator; |
| 53 } |
53 } |
| 54 |
54 |
| |
55 void ui_set_enabled(UIWIDGET widget, int enabled) { |
| |
56 widget->setEnabled(enabled); |
| |
57 } |
| |
58 |
| |
59 void ui_set_visible(UIWIDGET widget, int visible) { |
| |
60 widget->setVisible(visible); |
| |
61 } |
| |
62 |
| 55 void ui_widget_set_size(UIWIDGET w, int width, int height) { |
63 void ui_widget_set_size(UIWIDGET w, int width, int height) { |
| 56 w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height()); |
64 w->resize(width >= 0 ? width : w->width(), height >= 0 ? height : w->height()); |
| 57 } |
65 } |
| 58 |
66 |
| 59 void ui_widget_redraw(UIWIDGET w) { |
67 void ui_widget_redraw(UIWIDGET w) { |