43 #include <QtGui/qpixmap.h>
44 #include <QtGui/qbrush.h>
45 #include <QtGui/qpen.h>
46 #include <QtGui/qpolygon.h>
47 #include <QtGui/qscrollarea.h>
82 virtual void moveBy(
double dx,
double dy);
83 void move(
double x,
double y);
106 virtual void advance(
int stage);
114 virtual void draw(QPainter&) = 0;
160 virtual int rtti()
const;
186 virtual QPolygon chunks()
const;
187 virtual void addToChunks();
188 virtual void removeFromChunks();
189 virtual void changeChunks();
199 double myx, myy, myz;
218 QtCanvas(QPixmap p,
int h,
int v,
int tilewidth,
int tileheight);
222 virtual void setTiles(QPixmap tiles,
int h,
int v,
223 int tilewidth,
int tileheight);
230 virtual void setTile(
int x,
int y,
int tilenum);
232 return grid[x + y * htiles];
257 return QSize(awidth, aheight);
260 return QRect(0, 0, awidth, aheight);
263 return x >= 0 && y >= 0 && x < awidth && y < aheight;
269 return x >= 0 && y >= 0 && x < chwidth && y < chheight;
278 virtual void retune(
int chunksize,
int maxclusters = 100);
281 return x1 / chunksize == x2 / chunksize && y1 / chunksize == y2 / chunksize;
301 void drawArea(
const QRect&, QPainter* p,
bool double_buffer =
false);
307 void drawCanvasArea(
const QRect&, QPainter* p = 0,
bool double_buffer =
true);
331 void init(
int w,
int h,
int chunksze = 16,
int maxclust = 100);
336 QRect changeBounds();
341 int chwidth, chheight;
346 void initTiles(QPixmap p,
int h,
int v,
int tilewidth,
int tileheight);
354 QTimer* update_timer;
356 bool debug_redraw_areas;
391 virtual void drawContents(QPainter* p,
int cx,
int cy,
int cw,
int ch);
411 void updateContentsSize();
420 #ifndef QT_NO_IMAGEIO
441 void init(
const QImage&);
442 void init(
const QPixmap& pixmap,
int hx,
int hy);
450 QImage* collision_mask;
457 #ifndef QT_NO_IMAGEIO
463 #ifndef QT_NO_IMAGEIO
464 bool readPixmaps(
const QString& datafilenamepattern,
int framecount = 0);
473 return img ? img[i] : 0;
477 return (uint)framecount;
483 #ifndef QT_NO_IMAGEIO
484 bool readPixmaps(
const QString& datafilenamepattern,
int framecount,
bool maskonly);
501 void move(
double x,
double y);
510 return images->
count();
536 return images->
image(frm);
540 return images->
image(f);
542 virtual void advance(
int stage);
545 void draw(QPainter& painter);
551 void removeFromChunks();
579 virtual void setPen(QPen p);
597 void draw(QPainter&);
609 void scanPolygon(
const QPolygon& pa,
int winding,
611 QPolygon chunks()
const;
641 return QRect(
int(
x()),
int(
y()), w, h);
670 void moveBy(
double dx,
double dy);
706 void setPoints(
int x1,
int y1,
int x2,
int y2);
709 return QPoint(x1, y1);
712 return QPoint(x2, y2);
719 void moveBy(
double dx,
double dy);
771 class QtCanvasTextExtra;
784 QString
text()
const;
786 QColor
color()
const;
788 void moveBy(
double dx,
double dy);
803 virtual void draw(QPainter&);
809 void removeFromChunks();
818 QtCanvasTextExtra* extra;
QList< QtCanvasItem * > QtCanvasItemList
Definition: canvas_typed/qtcanvas.h:60
Definition: canvas_typed/qtcanvas.cpp:3477
Definition: canvas_typed/qtcanvas.cpp:284
Definition: canvas_typed/qtcanvas.cpp:56
Definition: canvas_typed/qtcanvas.h:730
static int RTTI
Definition: canvas_typed/qtcanvas.h:755
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4276
int angleLength() const
Definition: canvas_typed/qtcanvas.h:747
void setAngles(int start, int length)
Definition: canvas_typed/qtcanvas.cpp:4313
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2220
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4325
~QtCanvasEllipse()
Definition: canvas_typed/qtcanvas.cpp:4255
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4664
int angleStart() const
Definition: canvas_typed/qtcanvas.h:744
int height() const
Definition: canvas_typed/qtcanvas.cpp:4269
int width() const
Definition: canvas_typed/qtcanvas.cpp:4262
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4337
Definition: canvas_typed/qtcanvas.h:67
virtual bool collidesWith(const QtCanvasItem *) const =0
bool isEnabled() const
Definition: canvas_typed/qtcanvas.h:128
friend class QtCanvasSprite
Definition: canvas_typed/qtcanvas.h:179
virtual void setCanvas(QtCanvas *)
Definition: canvas_typed/qtcanvas.cpp:1790
friend class QtCanvasRectangle
Definition: canvas_typed/qtcanvas.h:180
bool animated() const
Definition: canvas_typed/qtcanvas.cpp:1693
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:1682
void show()
Definition: canvas_typed/qtcanvas.cpp:1816
void setX(double a)
Definition: canvas_typed/qtcanvas.h:84
friend class QtCanvasPolygon
Definition: canvas_typed/qtcanvas.h:181
friend class QtCanvasPolygonalItem
Definition: canvas_typed/qtcanvas.h:178
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:1773
friend class QtCanvasText
Definition: canvas_typed/qtcanvas.h:183
void setY(double a)
Definition: canvas_typed/qtcanvas.h:87
double z() const
Definition: canvas_typed/qtcanvas.h:78
friend class QtCanvasEllipse
Definition: canvas_typed/qtcanvas.h:182
virtual QRect boundingRect() const =0
virtual void setSelected(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1885
virtual int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4604
QtCanvasItem(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:1584
QtCanvasItemList collisions(bool exact) const
Definition: canvas_typed/qtcanvas.cpp:2285
bool active() const
Definition: canvas_typed/qtcanvas.h:144
bool selected() const
Definition: canvas_typed/qtcanvas.h:138
double yVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1758
friend class QtCanvasLine
Definition: canvas_typed/qtcanvas.h:184
void setXVelocity(double vx)
Definition: canvas_typed/qtcanvas.h:98
virtual void setVisible(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1830
void update()
Definition: canvas_typed/qtcanvas.h:171
double xVelocity() const
Definition: canvas_typed/qtcanvas.cpp:1751
virtual void setAnimated(bool y)
Definition: canvas_typed/qtcanvas.cpp:1704
virtual ~QtCanvasItem()
Definition: canvas_typed/qtcanvas.cpp:1603
bool visible() const
Definition: canvas_typed/qtcanvas.h:135
void hide()
Definition: canvas_typed/qtcanvas.cpp:1821
virtual void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:1669
virtual void setEnabled(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1914
double y() const
Definition: canvas_typed/qtcanvas.h:75
bool isVisible() const
Definition: canvas_typed/qtcanvas.h:120
bool isSelected() const
Definition: canvas_typed/qtcanvas.h:124
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:166
void setZ(double a)
Definition: canvas_typed/qtcanvas.h:90
virtual void setActive(bool yes)
Definition: canvas_typed/qtcanvas.cpp:1943
virtual QRect boundingRectAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2409
static int RTTI
Definition: canvas_typed/qtcanvas.h:161
RttiValues
Definition: canvas_typed/qtcanvas.h:148
@ Rtti_Spline
Definition: canvas_typed/qtcanvas.h:157
@ Rtti_PolygonalItem
Definition: canvas_typed/qtcanvas.h:151
@ Rtti_Item
Definition: canvas_typed/qtcanvas.h:149
@ Rtti_Ellipse
Definition: canvas_typed/qtcanvas.h:155
@ Rtti_Rectangle
Definition: canvas_typed/qtcanvas.h:154
@ Rtti_Polygon
Definition: canvas_typed/qtcanvas.h:153
@ Rtti_Text
Definition: canvas_typed/qtcanvas.h:152
@ Rtti_Line
Definition: canvas_typed/qtcanvas.h:156
@ Rtti_Sprite
Definition: canvas_typed/qtcanvas.h:150
double x() const
Definition: canvas_typed/qtcanvas.h:72
virtual void setVelocity(double vx, double vy)
Definition: canvas_typed/qtcanvas.cpp:1738
void setYVelocity(double vy)
Definition: canvas_typed/qtcanvas.h:101
virtual void draw(QPainter &)=0
bool isActive() const
Definition: canvas_typed/qtcanvas.h:132
bool enabled() const
Definition: canvas_typed/qtcanvas.h:141
Definition: canvas_typed/qtcanvas.h:702
~QtCanvasLine()
Definition: canvas_typed/qtcanvas.cpp:3951
static int RTTI
Definition: canvas_typed/qtcanvas.h:716
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4006
QPoint endPoint() const
Definition: canvas_typed/qtcanvas.h:711
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3996
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4053
void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3958
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4674
QPoint startPoint() const
Definition: canvas_typed/qtcanvas.h:708
void setPoints(int x1, int y1, int x2, int y2)
Definition: canvas_typed/qtcanvas.cpp:3982
Definition: canvas_typed/qtcanvas.h:454
~QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2620
bool isValid() const
Definition: canvas_typed/qtcanvas.cpp:2743
bool readPixmaps(const QString &datafilenamepattern, int framecount=0)
Definition: canvas_typed/qtcanvas.cpp:2652
QtCanvasPixmapArray()
Definition: canvas_typed/qtcanvas.cpp:2563
QtCanvasPixmap * image(int i) const
Definition: canvas_typed/qtcanvas.h:472
void setImage(int i, QtCanvasPixmap *p)
Definition: canvas_typed/qtcanvas.cpp:2766
bool readCollisionMasks(const QString &filenamepattern)
Definition: canvas_typed/qtcanvas.cpp:2679
bool operator!()
Definition: canvas_typed/qtcanvas.cpp:2735
uint count() const
Definition: canvas_typed/qtcanvas.h:476
Definition: canvas_typed/qtcanvas.h:418
~QtCanvasPixmap()
Definition: canvas_typed/qtcanvas.cpp:2506
QtCanvasPixmap(const QString &datafilename)
Definition: canvas_typed/qtcanvas.cpp:2456
int offsetY() const
Definition: canvas_typed/qtcanvas.h:430
void setOffset(int x, int y)
Definition: canvas_typed/qtcanvas.h:433
int offsetX() const
Definition: canvas_typed/qtcanvas.h:427
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
Definition: canvas_typed/qtcanvas.h:664
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3755
~QtCanvasPolygon()
Definition: canvas_typed/qtcanvas.cpp:3745
void setPoints(QPolygon)
Definition: canvas_typed/qtcanvas.cpp:3768
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4644
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:3779
QPolygon points() const
Definition: canvas_typed/qtcanvas.cpp:3908
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:3920
static int RTTI
Definition: canvas_typed/qtcanvas.h:675
QPolygon poly
Definition: canvas_typed/qtcanvas.h:679
Definition: canvas_typed/qtcanvas.h:572
virtual void setBrush(QBrush b)
Definition: canvas_typed/qtcanvas.cpp:3707
virtual void setPen(QPen p)
Definition: canvas_typed/qtcanvas.cpp:3694
static int RTTI
Definition: canvas_typed/qtcanvas.h:594
QBrush brush() const
Definition: canvas_typed/qtcanvas.h:585
virtual QPolygon areaPoints() const =0
QPen pen() const
Definition: canvas_typed/qtcanvas.h:582
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:3647
virtual void drawShape(QPainter &)=0
bool isValid() const
Definition: canvas_typed/qtcanvas.h:604
void invalidate()
Definition: canvas_typed/qtcanvas.cpp:3441
virtual QPolygon areaPointsAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:3460
virtual ~QtCanvasPolygonalItem()
Definition: canvas_typed/qtcanvas.cpp:3405
void setWinding(bool)
Definition: canvas_typed/qtcanvas.cpp:3430
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4624
bool winding() const
Definition: canvas_typed/qtcanvas.cpp:3417
void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:3656
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2189
Definition: canvas_typed/qtcanvas.h:625
void drawShape(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4178
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4654
QPolygon areaPoints() const
Definition: canvas_typed/qtcanvas.cpp:4159
void setSize(int w, int h)
Definition: canvas_typed/qtcanvas.cpp:4132
QPolygon chunks() const
Definition: canvas_typed/qtcanvas.cpp:3638
static int RTTI
Definition: canvas_typed/qtcanvas.h:647
int height() const
Definition: canvas_typed/qtcanvas.cpp:4125
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2204
QSize size() const
Definition: canvas_typed/qtcanvas.h:636
int width() const
Definition: canvas_typed/qtcanvas.cpp:4118
QRect rect() const
Definition: canvas_typed/qtcanvas.h:640
~QtCanvasRectangle()
Definition: canvas_typed/qtcanvas.cpp:4110
Definition: canvas_typed/qtcanvas.h:683
QtCanvasSpline(QtCanvas *canvas)
Definition: canvas_typed/qtcanvas.cpp:3826
static int RTTI
Definition: canvas_typed/qtcanvas.h:693
~QtCanvasSpline()
Definition: canvas_typed/qtcanvas.cpp:3834
bool closed() const
Definition: canvas_typed/qtcanvas.cpp:3875
void setControlPoints(QPolygon, bool closed=true)
Definition: canvas_typed/qtcanvas.cpp:3850
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4684
QPolygon controlPoints() const
Definition: canvas_typed/qtcanvas.cpp:3867
Definition: canvas_typed/qtcanvas.h:493
virtual void advance(int stage)
Definition: canvas_typed/qtcanvas.cpp:4803
int frame() const
Definition: canvas_typed/qtcanvas.h:506
int bottomEdge() const
Definition: canvas_typed/qtcanvas.cpp:2864
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2168
QtCanvasPixmap * image(int f) const
Definition: canvas_typed/qtcanvas.h:539
void setFrame(int)
Definition: canvas_typed/qtcanvas.cpp:4759
int frameCount() const
Definition: canvas_typed/qtcanvas.h:509
QtCanvasPixmap * image() const
Definition: canvas_typed/qtcanvas.h:535
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:2909
int height() const
Definition: canvas_typed/qtcanvas.cpp:2987
void draw(QPainter &painter)
Definition: canvas_typed/qtcanvas.cpp:2996
int rightEdge() const
Definition: canvas_typed/qtcanvas.cpp:2840
int width() const
Definition: canvas_typed/qtcanvas.cpp:2978
int leftEdge() const
Definition: canvas_typed/qtcanvas.cpp:2792
virtual ~QtCanvasSprite()
Definition: canvas_typed/qtcanvas.cpp:4747
static int RTTI
Definition: canvas_typed/qtcanvas.h:514
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4614
int topEdge() const
Definition: canvas_typed/qtcanvas.cpp:2816
FrameAnimationType
Definition: canvas_typed/qtcanvas.h:504
@ Cycle
Definition: canvas_typed/qtcanvas.h:504
@ Oscillate
Definition: canvas_typed/qtcanvas.h:504
virtual void setFrameAnimation(FrameAnimationType=Cycle, int step=1, int state=0)
Definition: canvas_typed/qtcanvas.cpp:4788
void move(double x, double y)
Definition: canvas_typed/qtcanvas.cpp:4850
virtual QtCanvasPixmap * imageAdvanced() const
Definition: canvas_typed/qtcanvas.cpp:2900
friend bool qt_testCollision(const QtCanvasSprite *s1, const QtCanvasSprite *s2)
Definition: canvas_typed/qtcanvas.cpp:1950
void setSequence(QtCanvasPixmapArray *seq)
Definition: canvas_typed/qtcanvas.cpp:4713
Definition: canvas_typed/qtcanvas.h:773
void setTextFlags(int)
Definition: canvas_typed/qtcanvas.cpp:4431
virtual void draw(QPainter &)
Definition: canvas_typed/qtcanvas.cpp:4527
int rtti() const
Definition: canvas_typed/qtcanvas.cpp:4634
QString text() const
Definition: canvas_typed/qtcanvas.cpp:4445
void setColor(const QColor &)
Definition: canvas_typed/qtcanvas.cpp:4501
QColor color() const
Definition: canvas_typed/qtcanvas.cpp:4492
void moveBy(double dx, double dy)
Definition: canvas_typed/qtcanvas.cpp:4510
int textFlags() const
Definition: canvas_typed/qtcanvas.h:790
static int RTTI
Definition: canvas_typed/qtcanvas.h:800
void setFont(const QFont &)
Definition: canvas_typed/qtcanvas.cpp:4478
void setText(const QString &)
Definition: canvas_typed/qtcanvas.cpp:4455
bool collidesWith(const QtCanvasItem *) const
Definition: canvas_typed/qtcanvas.cpp:2235
virtual ~QtCanvasText()
Definition: canvas_typed/qtcanvas.cpp:4400
QFont font() const
Definition: canvas_typed/qtcanvas.cpp:4469
QRect boundingRect() const
Definition: canvas_typed/qtcanvas.cpp:4407
Definition: canvas_typed/qtcanvas.cpp:66
Definition: canvas_typed/qtcanvas.h:365
~QtCanvasView()
Definition: canvas_typed/qtcanvas.cpp:3141
virtual void contentsMouseReleaseEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3172
virtual void contentsDragEnterEvent(QDragEnterEvent *)
Definition: canvas_typed/qtcanvas.cpp:3184
virtual void drawContents(QPainter *p, int cx, int cy, int cw, int ch)
Definition: canvas_typed/qtcanvas.cpp:3296
void setHighQualityRendering(bool enable)
Definition: canvas_typed/qtcanvas.cpp:3162
virtual void contentsDragMoveEvent(QDragMoveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3187
bool setWorldMatrix(const QMatrix &)
Definition: canvas_typed/qtcanvas.cpp:3268
virtual void contentsMousePressEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3168
QtCanvasView(QWidget *parent=0)
Definition: canvas_typed/qtcanvas.cpp:3114
virtual void contentsDropEvent(QDropEvent *)
Definition: canvas_typed/qtcanvas.cpp:3193
virtual void contentsMouseMoveEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3180
const QMatrix & inverseWorldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3251
virtual void contentsWheelEvent(QWheelEvent *)
Definition: canvas_typed/qtcanvas.cpp:3196
virtual void contentsMouseDoubleClickEvent(QMouseEvent *)
Definition: canvas_typed/qtcanvas.cpp:3176
virtual QSize sizeHint() const
Definition: canvas_typed/qtcanvas.cpp:3309
const QMatrix & worldMatrix() const
Definition: canvas_typed/qtcanvas.cpp:3241
QtCanvas * canvas() const
Definition: canvas_typed/qtcanvas.h:374
bool highQualityRendering
Definition: canvas_typed/qtcanvas.h:367
virtual void contentsContextMenuEvent(QContextMenuEvent *)
Definition: canvas_typed/qtcanvas.cpp:3200
virtual void contentsDragLeaveEvent(QDragLeaveEvent *)
Definition: canvas_typed/qtcanvas.cpp:3190
void setCanvas(QtCanvas *v)
Definition: canvas_typed/qtcanvas.cpp:3216
Definition: canvas_typed/qtcanvas.h:213
virtual void setAdvancePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:859
void addItemToChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1222
virtual void setUnchanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1014
virtual void drawBackground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1312
bool onCanvas(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:265
bool sameChunk(int x1, int y1, int x2, int y2) const
Definition: canvas_typed/qtcanvas.h:280
QtCanvas(QObject *parent=0)
Definition: canvas_typed/qtcanvas.cpp:522
virtual void removeView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:848
int width() const
Definition: canvas_typed/qtcanvas.h:250
void removeItemFromChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1208
virtual void update()
Definition: canvas_typed/qtcanvas.cpp:960
QColor backgroundColor() const
Definition: canvas_typed/qtcanvas.cpp:1252
QRect rect() const
Definition: canvas_typed/qtcanvas.h:259
virtual void setBackgroundPixmap(const QPixmap &p)
Definition: canvas_typed/qtcanvas.cpp:1291
void drawViewArea(QtCanvasView *view, QPainter *p, const QRect &r, bool dbuf)
Definition: canvas_typed/qtcanvas.cpp:945
void drawArea(const QRect &, QPainter *p, bool double_buffer=false)
Definition: canvas_typed/qtcanvas.cpp:1084
friend void qt_unview(QtCanvas *c)
int height() const
Definition: canvas_typed/qtcanvas.h:253
virtual void drawForeground(QPainter &, const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:1357
virtual void retune(int chunksize, int maxclusters=100)
Definition: canvas_typed/qtcanvas.cpp:683
int chunkSize() const
Definition: canvas_typed/qtcanvas.h:275
void addItemToChunk(QtCanvasItem *, int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1195
bool validChunk(int x, int y) const
Definition: canvas_typed/qtcanvas.h:268
virtual void setBackgroundColor(const QColor &c)
Definition: canvas_typed/qtcanvas.cpp:1261
virtual void setTiles(QPixmap tiles, int h, int v, int tilewidth, int tileheight)
Definition: canvas_typed/qtcanvas.cpp:1391
virtual void setChangedChunkContaining(int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1181
void removeItemFromChunkContaining(QtCanvasItem *, int x, int y)
Definition: canvas_typed/qtcanvas.cpp:1235
bool onCanvas(int x, int y) const
Definition: canvas_typed/qtcanvas.h:262
virtual void removeItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:824
virtual void addAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:806
virtual void resize(int width, int height)
Definition: canvas_typed/qtcanvas.cpp:607
int tilesHorizontally() const
Definition: canvas_typed/qtcanvas.h:235
virtual void setTile(int x, int y, int tilenum)
Definition: canvas_typed/qtcanvas.cpp:1473
virtual void advance()
Definition: canvas_typed/qtcanvas.cpp:920
virtual void removeAnimation(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:815
int tileHeight() const
Definition: canvas_typed/qtcanvas.h:245
bool validChunk(const QPoint &p) const
Definition: canvas_typed/qtcanvas.h:271
QtCanvasItemList collisions(const QPoint &) const
Definition: canvas_typed/qtcanvas.cpp:2294
virtual ~QtCanvas()
Definition: canvas_typed/qtcanvas.cpp:566
QSize size() const
Definition: canvas_typed/qtcanvas.h:256
virtual void addView(QtCanvasView *)
Definition: canvas_typed/qtcanvas.cpp:833
virtual void addItem(QtCanvasItem *)
Definition: canvas_typed/qtcanvas.cpp:797
virtual void setChangedChunk(int i, int j)
Definition: canvas_typed/qtcanvas.cpp:1164
QtCanvasItemList allItems()
Definition: canvas_typed/qtcanvas.cpp:598
int tileWidth() const
Definition: canvas_typed/qtcanvas.h:242
virtual void setChanged(const QRect &area)
Definition: canvas_typed/qtcanvas.cpp:986
virtual void setAllChanged()
Definition: canvas_typed/qtcanvas.cpp:978
virtual void setUpdatePeriod(int ms)
Definition: canvas_typed/qtcanvas.cpp:882
int tile(int x, int y) const
Definition: canvas_typed/qtcanvas.h:231
void drawCanvasArea(const QRect &, QPainter *p=0, bool double_buffer=true)
Definition: canvas_typed/qtcanvas.cpp:1093
int tilesVertically() const
Definition: canvas_typed/qtcanvas.h:238
QPixmap backgroundPixmap() const
Definition: canvas_typed/qtcanvas.cpp:1281