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

Method setBitmap

Engine/source/gui/buttons/guiIconButtonCtrl.cpp:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void GuiIconButtonCtrl::setBitmap(const char *name)
203{
204 if(!isAwake())
205 return;
206
207 _setBitmap(getBitmap());
208
209 // So that extent is recalculated if autoSize is set.
210 resize( getPosition(), getExtent() );
211
212 setUpdate();
213}
214
215void GuiIconButtonCtrl::onRender(Point2I offset, const RectI& updateRect)
216{

Callers 1

_setBitmapFieldDataFunction · 0.45

Calls 4

_setBitmapFunction · 0.85
getPositionFunction · 0.85
isAwakeFunction · 0.50
resizeFunction · 0.50

Tested by

no test coverage detected