| 78 | #define SLIDER_BUTTON_HEIGHT (switch_item->height() ? switch_item->height() : 16) |
| 79 | |
| 80 | void UISlider::Create(UIWindow *parent, int id, int x, int y, int w, int h, int flags) { |
| 81 | ASSERT(w > 0); |
| 82 | |
| 83 | m_Pos = 0; |
| 84 | m_Range = 1; |
| 85 | selectchange_fn = NULL; |
| 86 | selectchange_id_fn = NULL; |
| 87 | m_callbackptr = NULL; |
| 88 | |
| 89 | switch_item = UIPrimativeItem(GR_DARKGRAY).CopyUIItem(); |
| 90 | slider_item = UIPrimativeItem(GR_DARKGRAY).CopyUIItem(); |
| 91 | |
| 92 | UIGadget::Create(parent, id, x, y, w, h, flags); |
| 93 | } |
| 94 | |
| 95 | // sets visual characteristics of slider. |
| 96 | void UISlider::SetSliderSwitchItem(UIItem *item) { |
nothing calls this directly
no test coverage detected