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

Method registerSelectorControl

Tools/LayoutEditor/TextureControl.cpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void TextureControlLE::registerSelectorControl(SelectorControlLE* _control)
151 {
152 mSelectors.push_back(_control);
153 _control->setScale(mScaleValue);
154 _control->getMainWidget()->eventMouseWheel += MyGUI::newDelegate(this, &TextureControlLE::notifyMouseWheel);
155 _control->getMainWidget()->eventMouseButtonPressed +=
156 MyGUI::newDelegate(this, &TextureControlLE::notifyMouseButtonPressed);
157 _control->getMainWidget()->eventMouseButtonReleased +=
158 MyGUI::newDelegate(this, &TextureControlLE::notifyMouseButtonReleased);
159 _control->getMainWidget()->eventMouseDrag += MyGUI::newDelegate(this, &TextureControlLE::notifyMouseDrag);
160 _control->getMainWidget()->eventMouseMove += MyGUI::newDelegate(this, &TextureControlLE::notifyMouseMove);
161 }
162
163 void TextureControlLE::notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
164 {

Callers

nothing calls this directly

Calls 4

newDelegateFunction · 0.85
push_backMethod · 0.45
setScaleMethod · 0.45
getMainWidgetMethod · 0.45

Tested by

no test coverage detected