MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / addObject

Method addObject

src/api/UBWidgetUniboardAPI.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215
216void UBWidgetUniboardAPI::addObject(QString pUrl, int width, int height, int x, int y, bool background)
217{
218 // not great, but make it easily scriptable --
219 //
220 // download url should be moved to the scene from the controller
221 //
222
223 if (UBApplication::boardController->activeScene() != mScene.lock())
224 return;
225
226 UBApplication::boardController->downloadURL(QUrl(pUrl), QString(), QPointF(x, y), QSize(width, height), background);
227
228}
229
230
231void UBWidgetUniboardAPI::setBackground(bool pIsDark, bool pIsCrossed)

Callers 2

papier.jsFile · 0.80
initFunction · 0.80

Calls 3

activeSceneMethod · 0.80
lockMethod · 0.80
downloadURLMethod · 0.80

Tested by

no test coverage detected