| 36 | } |
| 37 | |
| 38 | void TextureControl::updateScale() |
| 39 | { |
| 40 | double width = (double)mTextureRegion.width * mScaleValue; |
| 41 | double height = (double)mTextureRegion.height * mScaleValue; |
| 42 | |
| 43 | mView->setCanvasSize(MyGUI::IntSize((int)width, (int)height)); |
| 44 | |
| 45 | for (auto& selector : mSelectors) |
| 46 | selector->setScale(mScaleValue); |
| 47 | } |
| 48 | |
| 49 | void TextureControl::setTextureValue(const MyGUI::UString& _value) |
| 50 | { |
nothing calls this directly
no test coverage detected