| 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 | { |
nothing calls this directly
no test coverage detected