QGIS/python/gui/qgsmapcanvasmap.sip
wonder bbd36b107f Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00

46 lines
830 B
Plaintext

class QgsMapCanvasMap : QGraphicsRectItem
{
%TypeHeaderCode
#include <qgsmapcanvasmap.h>
%End
%ConvertToSubClassCode
if (dynamic_cast<QgsMapCanvasMap*>(sipCpp) != NULL)
{
sipClass = sipClass_QgsMapCanvasMap;
}
else
{
sipClass = NULL;
}
%End
public:
//! constructor
QgsMapCanvasMap(QgsMapCanvas* canvas /TransferThis/);
//! resize canvas item and pixmap
void resize(QSize size);
void enableAntiAliasing(bool flag);
void useQImageToRender(bool flag);
//! renders map using QgsMapRender to mPixmap
void render();
void setBgColor(const QColor& color);
void setPanningOffset(const QPoint& point);
QPixmap& pixmap();
void paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidget*);
QRectF boundingRect() const;
};