comparison view/View.h @ 915:f6d9f28f37cb osx-retina

Experiment with querying paint rect separately from view rect
author Chris Cannam
date Wed, 11 Mar 2015 15:35:20 +0000
parents 4a578a360011
children 94e4952a6774
comparison
equal deleted inserted replaced
914:59e51842cf39 915:f6d9f28f37cb
313 virtual sv_frame_t getLastVisibleFrame() const; 313 virtual sv_frame_t getLastVisibleFrame() const;
314 314
315 sv_frame_t getModelsStartFrame() const; 315 sv_frame_t getModelsStartFrame() const;
316 sv_frame_t getModelsEndFrame() const; 316 sv_frame_t getModelsEndFrame() const;
317 317
318 /**
319 * To be called from a layer, to obtain the extent of the surface
320 * that the layer is currently painting to. This may be the extent
321 * of the view (if 1x display scaling is in effect) or of a larger
322 * cached pixmap (if greater display scaling is in effect).
323 */
324 QRect getPaintRect() const;
325
326 QSize getPaintSize() const { return getPaintRect().size(); }
327 int getPaintWidth() const { return getPaintRect().width(); }
328 int getPaintHeight() const { return getPaintRect().height(); }
329
318 typedef std::set<Model *> ModelSet; 330 typedef std::set<Model *> ModelSet;
319 ModelSet getModels(); 331 ModelSet getModels();
320 332
321 //!!! 333 //!!!
322 Model *getAligningModel() const; 334 Model *getAligningModel() const;
413 PlaybackFollowMode m_followPlay; 425 PlaybackFollowMode m_followPlay;
414 bool m_followPlayIsDetached; 426 bool m_followPlayIsDetached;
415 sv_frame_t m_playPointerFrame; 427 sv_frame_t m_playPointerFrame;
416 bool m_lightBackground; 428 bool m_lightBackground;
417 bool m_showProgress; 429 bool m_showProgress;
430 int m_paintScale;
418 431
419 QPixmap *m_cache; 432 QPixmap *m_cache;
420 sv_frame_t m_cacheCentreFrame; 433 sv_frame_t m_cacheCentreFrame;
421 int m_cacheZoomLevel; 434 int m_cacheZoomLevel;
422 bool m_selectionCached; 435 bool m_selectionCached;