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

Method setBackground

src/api/UBWidgetUniboardAPI.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231void UBWidgetUniboardAPI::setBackground(bool pIsDark, bool pIsCrossed)
232{
233 auto scene = mScene.lock();
234
235 if (scene) {
236 if (pIsCrossed)
237 scene->setBackground(pIsDark, UBPageBackground::crossed);
238 else
239 scene->setBackground(pIsDark, UBPageBackground::plain);
240 }
241}
242
243
244void UBWidgetUniboardAPI::moveTo(const qreal x, const qreal y)

Callers 3

saveOverlayPdfMethod · 0.45
persistsDocumentMethod · 0.45
processElementMethod · 0.45

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected