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

Method SetSelectedIndex

ui/UICombo.cpp:129–135  ·  view source on GitHub ↗

sets the selected index.

Source from the content-addressed store, hash-verified

127
128// sets the selected index.
129void UIComboBox::SetSelectedIndex(int index) {
130 if (index < m_nItems) {
131 m_Index = index;
132 if (selectchange_fn)
133 (*selectchange_fn)(index);
134 }
135}
136
137void UIComboBox::SetSelectChangeCallback(void (*fn)(int)) { selectchange_fn = fn; }
138

Callers 3

SetCurrentValueMethod · 0.45
AddMethod · 0.45
ListSetSelectedIndexFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected