rehearsetimingsactivity.cxx (70f497fb) rehearsetimingsactivity.cxx (a72d41dc)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 394 unchanged lines hidden (view full) ---

403void RehearseTimingsActivity::viewsChanged()
404{
405 if( !maViews.empty() )
406 {
407 // new sprite pos, transformation might have changed:
408 maSpriteRectangle = calcSpriteRectangle( maViews.front().first );
409
410 // reposition sprites
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 394 unchanged lines hidden (view full) ---

403void RehearseTimingsActivity::viewsChanged()
404{
405 if( !maViews.empty() )
406 {
407 // new sprite pos, transformation might have changed:
408 maSpriteRectangle = calcSpriteRectangle( maViews.front().first );
409
410 // reposition sprites
411 ::basegfx::B2DPoint aSpriteRectangleMinimum = maSpriteRectangle.getMinimum();
411 for_each_sprite( boost::bind( &cppcanvas::Sprite::move,
412 _1,
412 for_each_sprite( boost::bind( &cppcanvas::Sprite::move,
413 _1,
413 boost::cref(maSpriteRectangle.getMinimum())) );
414 boost::cref( aSpriteRectangleMinimum ) ) );
414
415 // sprites changed, need screen update
416 mrScreenUpdater.notifyUpdate();
417 }
418}
419
420void RehearseTimingsActivity::paintAllSprites() const
421{

--- 156 unchanged lines hidden ---
415
416 // sprites changed, need screen update
417 mrScreenUpdater.notifyUpdate();
418 }
419}
420
421void RehearseTimingsActivity::paintAllSprites() const
422{

--- 156 unchanged lines hidden ---