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

Method getIndexByDepth

Tools/LayoutEditor/PropertiesPanelView.cpp:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 size_t PropertiesPanelView::getIndexByDepth(size_t _depth)
195 {
196 size_t result = 1;
197 for (auto& item : mMapPropertyWindow)
198 {
199 if (item.second->getDepth() < _depth)
200 {
201 size_t index = getIndexPanel(item.second);
202 if (index >= result)
203 result = index + 1;
204 }
205 }
206 return result;
207 }
208
209 size_t PropertiesPanelView::getIndexPanel(PanelProperties* _panel)
210 {

Callers

nothing calls this directly

Calls 1

getDepthMethod · 0.45

Tested by

no test coverage detected