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

Method getFirstFramePoint

Tools/ImageEditor/ImageExportSerializer.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 MyGUI::IntPoint ImageExportSerializer::getFirstFramePoint(DataPtr _data)
188 {
189 if (_data->getType()->getName() != "Group")
190 return {};
191
192 if (!_data->getChilds().empty())
193 {
194 DataPtr child = _data->getChildByIndex(0);
195 if (!child->getChilds().empty())
196 {
197 return child->getChildByIndex(0)->getPropertyValue<MyGUI::IntPoint>("Point");
198 }
199 }
200
201 return {};
202 }
203
204}

Callers

nothing calls this directly

Calls 3

getChildByIndexMethod · 0.80
getTypeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected