void Sprite::onGeometryChange(const Scene::Geometry &geo) { /* Offset at which the sprite will be drawn * relative to screen origin */ p->trans.setGlobalOffset(geo.offset()); p->sceneRect.setSize(geo.rect.size()); p->sceneOrig = geo.orig; }
void WindowVX::onGeometryChange(const Scene::Geometry &geo) { p->sceneOffset = geo.offset(); }