[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Oct 25 16:57:09 CEST 2005
SVN commit 474122 by staikos:
add a new helper for working with back buffers
M +5 -0 kstbackbuffer.cpp
M +1 -0 kstbackbuffer.h
--- trunk/extragear/graphics/kst/kst/kstbackbuffer.cpp #474121:474122
@@ -36,4 +36,9 @@
}
+void KstBackBuffer::paintInto(QPainter& p, const QRect& geom, const QPoint& from) {
+ p.drawPixmap(geom.left(), geom.top(), _buffer, from.x(), from.y(), geom.width(), geom.height());
+}
+
+
// vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/kstbackbuffer.h #474121:474122
@@ -29,6 +29,7 @@
QSize size() const { return _buffer.size(); }
QPixmap& buffer();
void paintInto(QPainter& p, const QRect& geom);
+ void paintInto(QPainter& p, const QRect& geom, const QPoint& from);
private:
QPixmap _buffer;
More information about the Kst
mailing list