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

Method setTextureValue

Tools/EditorFramework/TextureControl.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void TextureControl::setTextureValue(const MyGUI::UString& _value)
50 {
51 mTextureSize = MyGUI::texture_utility::getTextureSize(_value, false);
52 mTexture->setImageTexture(_value);
53
54 mTextureRegion.set(0, 0, mTextureSize.width, mTextureSize.height);
55
56 updateScale();
57 }
58
59 const MyGUI::IntSize& TextureControl::getTextureSize() const
60 {

Callers 13

notifyChangePropertyMethod · 0.80
notifyChangePropertyMethod · 0.80
updateTextureMethod · 0.80
updateTextureMethod · 0.80
updateTextureMethod · 0.80
notifyChangePropertyMethod · 0.80
notifyChangePropertyMethod · 0.80

Calls 2

setImageTextureMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected