comparison layer/Layer.h @ 389:2ed4e572d0d4

* Attempt fix for #1914752 export image has holes (1.0 and 1.2)
author Chris Cannam
date Tue, 20 May 2008 10:40:20 +0000
parents e1a9e478b7f2
children 73a58a4dfebd
comparison
equal deleted inserted replaced
388:881470f9ca48 389:2ed4e572d0d4
74 * integer zoom level from 1 to the maximum returned by its zoom 74 * integer zoom level from 1 to the maximum returned by its zoom
75 * constraint. 75 * constraint.
76 */ 76 */
77 virtual bool supportsOtherZoomLevels() const { return true; } 77 virtual bool supportsOtherZoomLevels() const { return true; }
78 78
79 /**
80 * Paint the given rectangle of this layer onto the given view
81 * using the given painter, superimposing it on top of any
82 * existing material in that view. The view is provided here
83 * because it is possible for one layer to exist in more than one
84 * view, so the dimensions of the view may vary from one paint
85 * call to another (without any view having been resized).
86 */
79 virtual void paint(View *, QPainter &, QRect) const = 0; 87 virtual void paint(View *, QPainter &, QRect) const = 0;
88
89 /**
90 * Enable or disable synchronous painting. If synchronous
91 * painting is enabled, a call to paint() must complete painting
92 * the entire rectangle before it returns. If synchronous
93 * painting is disabled (which should be the default), the paint()
94 * call may defer painting some regions if data is not yet
95 * available, by calling back on its view to schedule another
96 * update. Synchronous painting is necessary when rendering to an
97 * image. Simple layer types will always paint synchronously, and
98 * so may ignore this.
99 */
100 virtual void setSynchronousPainting(bool /* synchronous */) { }
80 101
81 enum VerticalPosition { 102 enum VerticalPosition {
82 PositionTop, PositionMiddle, PositionBottom 103 PositionTop, PositionMiddle, PositionBottom
83 }; 104 };
84 virtual VerticalPosition getPreferredTimeRulerPosition() const { 105 virtual VerticalPosition getPreferredTimeRulerPosition() const {