MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Create

Method Create

ui/UISlider.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78#define SLIDER_BUTTON_HEIGHT (switch_item->height() ? switch_item->height() : 16)
79
80void 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.
96void UISlider::SetSliderSwitchItem(UIItem *item) {

Callers

nothing calls this directly

Calls 2

UIPrimativeItemClass · 0.85
CopyUIItemMethod · 0.45

Tested by

no test coverage detected