/***************************************************************************
                            qt_QCanvas.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QT_QCANVAS
#define QT_QCANVAS

#include <qtc/qtc_types.h>

qt_QCanvas * qt_new_QCanvas(qt_QObject * parent, char* name);
qt_QCanvas * qt_new_QCanvas1(int w, int h);
qt_QCanvas * qt_new_QCanvas2(qt_QPixmap * p, int h, int v, int tilewidth, int tileheight);
void qt_del_QCanvas( qt_QCanvas* p );
void qt_QCanvas_setTiles(qt_QCanvas* instPointer,qt_QPixmap * tiles, int h, int v, int tilewidth, int tileheight);
void qt_QCanvas_setBackgroundPixmap(qt_QCanvas* instPointer,qt_QPixmap * p);
qt_QPixmap * qt_QCanvas_backgroundPixmap(qt_QCanvas* instPointer);
void qt_QCanvas_setBackgroundColor(qt_QCanvas* instPointer,qt_QColor * c);
qt_QColor * qt_QCanvas_backgroundColor(qt_QCanvas* instPointer);
void qt_QCanvas_setTile(qt_QCanvas* instPointer,int x, int y, int tilenum);
int qt_QCanvas_tile(qt_QCanvas* instPointer,int x, int y);
int qt_QCanvas_tilesHorizontally(qt_QCanvas* instPointer);
int qt_QCanvas_tilesVertically(qt_QCanvas* instPointer);
int qt_QCanvas_tileWidth(qt_QCanvas* instPointer);
int qt_QCanvas_tileHeight(qt_QCanvas* instPointer);
void qt_QCanvas_resize(qt_QCanvas* instPointer,int width, int height);
int qt_QCanvas_width(qt_QCanvas* instPointer);
int qt_QCanvas_height(qt_QCanvas* instPointer);
qt_QSize * qt_QCanvas_size(qt_QCanvas* instPointer);
qt_QRect* qt_QCanvas_rect(qt_QCanvas* instPointer);
int qt_QCanvas_onCanvas(qt_QCanvas* instPointer,int x, int y);
int qt_QCanvas_onCanvas1(qt_QCanvas* instPointer,qt_QPoint* p);
int qt_QCanvas_validChunk(qt_QCanvas* instPointer,int x, int y);
int qt_QCanvas_validChunk1(qt_QCanvas* instPointer,qt_QPoint* p);
int qt_QCanvas_chunkSize(qt_QCanvas* instPointer);
void qt_QCanvas_retune(qt_QCanvas* instPointer,int chunksize, int maxclusters);
int qt_QCanvas_sameChunk(qt_QCanvas* instPointer,int x1, int y1, int x2, int y2);
void qt_QCanvas_setChangedChunk(qt_QCanvas* instPointer,int i, int j);
void qt_QCanvas_setChangedChunkContaining(qt_QCanvas* instPointer,int x, int y);
void qt_QCanvas_setAllChanged(qt_QCanvas* instPointer);
void qt_QCanvas_setChanged(qt_QCanvas* instPointer,qt_QRect* area);
void qt_QCanvas_setUnchanged(qt_QCanvas* instPointer,qt_QRect* area);
void qt_QCanvas_addItemToChunk(qt_QCanvas* instPointer,qt_QCanvasItem* arg1, int i, int j);
void qt_QCanvas_removeItemFromChunk(qt_QCanvas* instPointer,qt_QCanvasItem* arg1, int i, int j);
void qt_QCanvas_addItemToChunkContaining(qt_QCanvas* instPointer,qt_QCanvasItem* arg1, int x, int y);
void qt_QCanvas_removeItemFromChunkContaining(qt_QCanvas* instPointer,qt_QCanvasItem* arg1, int x, int y);
qt_QCanvasItemList* qt_QCanvas_allItems(qt_QCanvas* instPointer);
qt_QCanvasItemList* qt_QCanvas_collisions(qt_QCanvas* instPointer,qt_QPoint* arg1);
qt_QCanvasItemList* qt_QCanvas_collisions1(qt_QCanvas* instPointer,qt_QRect* arg1);
qt_QCanvasItemList* qt_QCanvas_collisions2(qt_QCanvas* instPointer,qt_QPointArray* pa, qt_QCanvasItem* item, int exact);
void qt_QCanvas_drawArea(qt_QCanvas* instPointer,qt_QRect* arg1, qt_QPainter * p, int double_buffer);
void qt_QCanvas_addView(qt_QCanvas* instPointer,qt_QCanvasView* arg1);
void qt_QCanvas_removeView(qt_QCanvas* instPointer,qt_QCanvasView* arg1);
void qt_QCanvas_drawCanvasArea(qt_QCanvas* instPointer,qt_QRect* arg1, qt_QPainter * p, int double_buffer);
void qt_QCanvas_drawViewArea(qt_QCanvas* instPointer,qt_QCanvasView* view, qt_QPainter * p, qt_QRect* r, int dbuf);
void qt_QCanvas_addItem(qt_QCanvas* instPointer,qt_QCanvasItem* arg1);
void qt_QCanvas_addAnimation(qt_QCanvas* instPointer,qt_QCanvasItem* arg1);
void qt_QCanvas_removeItem(qt_QCanvas* instPointer,qt_QCanvasItem* arg1);
void qt_QCanvas_removeAnimation(qt_QCanvas* instPointer,qt_QCanvasItem* arg1);
void qt_QCanvas_setAdvancePeriod(qt_QCanvas* instPointer,int ms);
void qt_QCanvas_setUpdatePeriod(qt_QCanvas* instPointer,int ms);
void qt_QCanvas_setDoubleBuffering(qt_QCanvas* instPointer,int y);
void qt_QCanvas_advance(qt_QCanvas* instPointer);
void qt_QCanvas_update(qt_QCanvas* instPointer);
void qt_QCanvas_drawBackground(qt_QCanvas* instPointer,qt_QPainter* arg1, qt_QRect* area);
void qt_QCanvas_drawForeground(qt_QCanvas* instPointer,qt_QPainter* arg1, qt_QRect* area);

#endif
