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

Method OnInitialise

Tools/EditorFramework/PropertyColourControl.cpp:23–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void PropertyColourControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/)
24 {
25 PropertyControl::OnInitialise(_parent, _place, "PropertyColourControl.layout");
26
27 assignWidget(mName, "Name", false);
28 assignWidget(mEdit, "Edit");
29 assignWidget(mColour, "Colour");
30
31 mEdit->eventEditTextChange += MyGUI::newDelegate(this, &PropertyColourControl::notifyEditTextChange);
32 mColour->eventMouseButtonClick += MyGUI::newDelegate(this, &PropertyColourControl::notifyMouseButtonClick);
33
34 mColourPanel = new ColourPanel();
35 mColourPanel->Initialise();
36 mColourPanel->setAlphaSupport(false);
37 mColourPanel->eventEndDialog.connect(this, &PropertyColourControl::notifyEndDialog);
38 mColourPanel->eventPreviewColour.connect(this, &PropertyColourControl::notifyPreviewColour);
39 }
40
41 void PropertyColourControl::updateCaption()
42 {

Callers

nothing calls this directly

Calls 5

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
setAlphaSupportMethod · 0.80
InitialiseMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected