MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setBitmap

Method setBitmap

Engine/source/gui/controls/guiBitmapCtrl.cpp:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void GuiBitmapCtrl::setBitmap( const char *name, bool resize )
129{
130 _setBitmap(StringTable->insert(name));
131
132 if (mBitmap && resize)
133 {
134 setExtent(mBitmap->getWidth(), mBitmap->getHeight());
135 updateSizing();
136 }
137
138 setUpdate();
139}
140
141void GuiBitmapCtrl::updateSizing()
142{

Callers 2

setBitmapNameMethod · 0.45
guiBitmapCtrl.cppFile · 0.45

Calls 5

_setBitmapFunction · 0.85
setExtentFunction · 0.85
insertMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected