A QWidget which views a QwSpriteField, and has scrollbars. More...
#include <QwSpriteField.h>
Inherits QWidget and QwAbsSpriteFieldView.
While QwSpriteFieldView inside a QwViewport can be used for viewing a QwSpriteField, this may cause poor redraw effects if a lot of activity is occurring in the QwSpriteField, because scrolling by this method is a two part process: copy some area, then redraw the new area.
QwScrollingSpriteFieldView avoids this problem by doing these in a single operation. The downside is that it uses an off-screen pixmap for the whole visible area of the view and so is not practical if very large areas, or large numbers of areas, are required.
Construct a QwSpriteFieldView which views the given QwSpriteField. The usual QWidget parameters may also be passed.
Deconstruct the QwScrollingSpriteFieldView.
[virtual]
Configure the QPainter - makes it draw on this widget's offscreen pixmap, translated according to the scrollbars.
[virtual]
Flush the off-screen changes.
[protected slot]
Scrolls the view horizontally by the given amount.
[virtual protected]
The stepping rate for the horizontal scrollbar. Returns 16.
[virtual protected]
(override)
Repaint the appropriate area of the QwScrollingSpriteFieldView which this QwScrollingSpriteFieldView is viewing.
[virtual]
Returns FALSE: double-buffering is not needed, since this class has its own offscreen pixmap.
[virtual protected]
(override)
Deal with scrollbars.
[virtual]
Ensures scrollbars and off-screen pixmap are of the correct size given then current widget and field sizes. The field calls this automatically as needed.
[protected slot]
Scrolls the view vertically by the given amount.
[virtual protected]
The stepping rate for the vertical scrollbar. Returns 16.
[virtual]
Returns the area of the viewport.
This file is copyright © 1995-97 Warwick Allison.
It was generated from the following files: