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

Method getPropertyWindow

Tools/LayoutEditor/PropertiesPanelView.cpp:177–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 PanelProperties* PropertiesPanelView::getPropertyWindow(WidgetStyle* _style, size_t _depth)
178 {
179 MapPropertyWindow::iterator item = mMapPropertyWindow.find(_style);
180 if (item == mMapPropertyWindow.end())
181 {
182 PanelProperties* result = new PanelProperties();
183 result->setDepth(_depth);
184
185 mPanelView->insertItem(getIndexByDepth(_depth), result);
186
187 mMapPropertyWindow[_style] = result;
188 return result;
189 }
190
191 return (*item).second;
192 }
193
194 size_t PropertiesPanelView::getIndexByDepth(size_t _depth)
195 {

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
setDepthMethod · 0.45
insertItemMethod · 0.45

Tested by

no test coverage detected