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

Method _initialise

UnitTests/UnitTest_GraphView/BaseGraphNode.h:90–108  ·  view source on GitHub ↗

internal:*/

Source from the content-addressed store, hash-verified

88
89 /*internal:*/
90 void _initialise(MyGUI::Widget* _parent, IGraphController* _view)
91 {
92 mView = _view;
93 if (!mLayout.empty())
94 {
95 BaseLayout::initialise(mLayout, _parent);
96 }
97 initialise();
98
99 MyGUI::Window* window = mMainWidget->castType<MyGUI::Window>(false);
100 if (window != nullptr)
101 {
102 window->eventWindowChangeCoord += MyGUI::newDelegate(this, &BaseGraphNode::notifyWindowChangeCoord);
103 window->eventWindowButtonPressed += MyGUI::newDelegate(this, &BaseGraphNode::notifyWindowButtonPressed);
104 }
105
106 // перекрывающийся стиль
107 mMainWidget->setWidgetStyle(MyGUI::WidgetStyle::Overlapped);
108 }
109
110 void _shutdown()
111 {

Callers 1

addItemMethod · 0.45

Calls 3

newDelegateFunction · 0.85
setWidgetStyleMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected