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

Method updateScale

Tools/LayoutEditor/TextureControl.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void TextureControlLE::updateScale()
38 {
39 double width = (double)mTextureRegion.width * mScaleValue;
40 double height = (double)mTextureRegion.height * mScaleValue;
41
42 mView->setCanvasSize(MyGUI::IntSize((int)width, (int)height));
43
44 for (auto& selector : mSelectors)
45 selector->setScale(mScaleValue);
46 }
47
48 void TextureControlLE::setTextureName(const MyGUI::UString& _value)
49 {

Callers

nothing calls this directly

Calls 3

setCanvasSizeMethod · 0.80
IntSizeFunction · 0.50
setScaleMethod · 0.45

Tested by

no test coverage detected