MCPcopy Create free account
hub / github.com/MyGUI/mygui / setSelection

Method setSelection

UnitTests/UnitTest_TreeControl/TreeControl.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void TreeControl::setSelection(Node* pSelection)
144 {
145 if (mpSelection == pSelection)
146 return;
147
148 mpSelection = pSelection;
149 while (pSelection)
150 {
151 pSelection->setExpanded(true);
152 pSelection = pSelection->getParent();
153 }
154
155 invalidate();
156 eventTreeNodeSelected(this, mpSelection);
157 }
158
159 void TreeControl::onMouseWheel(int nValue)
160 {

Callers

nothing calls this directly

Calls 2

setExpandedMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected