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

Method setBitmapHandle

Engine/source/gui/controls/guiBitmapCtrl.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void GuiBitmapCtrl::setBitmapHandle(GFXTexHandle handle, bool resize)
151{
152 mBitmap = handle;
153
154 mBitmapName = StringTable->insert("texhandle");
155
156 // Resize the control to fit the bitmap
157 if (resize)
158 {
159 setExtent(mBitmap->getWidth(), mBitmap->getHeight());
160 updateSizing();
161 }
162}
163
164void GuiBitmapCtrl::onRender(Point2I offset, const RectI &updateRect)
165{

Callers 1

guiBitmapCtrl.cppFile · 0.45

Calls 4

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

Tested by

no test coverage detected