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

Method updateScale

Tools/EditorFramework/TextureControl.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

setCanvasSizeMethod · 0.80
IntSizeFunction · 0.50
setScaleMethod · 0.45

Tested by

no test coverage detected