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

Method OnInitialise

Tools/SkinEditor/PropertyAlignControl.cpp:22–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void PropertyAlignControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/)
23 {
24 PropertyControl::OnInitialise(_parent, _place, "PropertyComboBoxControl.layout");
25
26 assignWidget(mName, "Name", false);
27 assignWidget(mComboBox, "ComboBox");
28
29 mComboBox->addItem("Default");
30 mComboBox->addItem("Stretch");
31 mComboBox->addItem("Center");
32
33 mComboBox->addItem("Left Top");
34 mComboBox->addItem("Left Bottom");
35 mComboBox->addItem("Left VStretch");
36 mComboBox->addItem("Left VCenter");
37
38 mComboBox->addItem("Right Top");
39 mComboBox->addItem("Right Bottom");
40 mComboBox->addItem("Right VStretch");
41 mComboBox->addItem("Right VCenter");
42
43 mComboBox->addItem("HStretch Top");
44 mComboBox->addItem("HStretch Bottom");
45 mComboBox->addItem("HStretch VStretch");
46 mComboBox->addItem("HStretch VCenter");
47
48 mComboBox->addItem("HCenter Bottom");
49 mComboBox->addItem("HCenter VStretch");
50 mComboBox->addItem("HCenter VCenter");
51 mComboBox->beginToItemFirst();
52
53 mComboBox->eventComboChangePosition +=
54 MyGUI::newDelegate(this, &PropertyAlignControl::notifyComboChangePosition);
55 }
56
57 void PropertyAlignControl::updateCaption()
58 {

Callers

nothing calls this directly

Calls 4

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
addItemMethod · 0.45
beginToItemFirstMethod · 0.45

Tested by

no test coverage detected