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

Method initialise

Tools/EditorFramework/Property.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void Property::initialise()
49 {
50 if (!mType->getInitialisator().empty())
51 {
52 IPropertyInitialisator* initialisator =
53 components::FactoryManager::GetInstance().CreateItem<IPropertyInitialisator>(mType->getInitialisator());
54 if (initialisator != nullptr)
55 initialisator->initialise(mWeakThis.lock());
56 }
57 else
58 {
59 mValue = mType->getDefaultValue();
60 }
61 }
62
63 PropertyPtr Property::CreateInstance(DataTypePropertyPtr _type, DataPtr _owner)
64 {

Callers 1

setTypeMethod · 0.45

Calls 2

emptyMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected