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

Method registerSelectorControl

Tools/EditorFramework/TextureControl.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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