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

Method setType

Tools/EditorFramework/Data.cpp:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 void Data::setType(DataTypePtr _value)
22 {
23 mType = _value;
24
25 mProperties.clear();
26
27 if (mType != nullptr)
28 {
29 const DataType::VectorProperty& properties = mType->getProperties();
30 for (const auto& property : properties)
31 {
32 PropertyPtr data = Property::CreateInstance(property, mWeakThis.lock());
33 data->initialise();
34
35 mProperties[property->getName()] = data;
36 }
37 }
38 }
39
40 DataTypePtr Data::getType() const
41 {

Callers 9

initialiseMethod · 0.45
doActionMethod · 0.45
cloneDataMethod · 0.45
commandCreateDataMethod · 0.45
parseFontMethod · 0.45
parseImageMethod · 0.45
parseGroupMethod · 0.45
parseIndexMethod · 0.45
parseFrameMethod · 0.45

Calls 4

getPropertiesMethod · 0.80
clearMethod · 0.45
lockMethod · 0.45
initialiseMethod · 0.45

Tested by

no test coverage detected