QGIS/python/gui/qgsmapcanvasmap.sip
wonder 497280c4d2 Fixes to compile the bindings also with SIP 4.7.
In this SIP version, additional classes used when converting
to a subclass don't get #included automatically so let's
#include them globally with %ModuleHeaderCode


git-svn-id: http://svn.osgeo.org/qgis/trunk@7129 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-08-06 23:33:00 +00:00

53 lines
1.0 KiB
Plaintext

%ModuleHeaderCode
// fix to allow compilation with sip 4.7 that for some reason
// doesn't add this include to the file where the code from
// ConvertToSubClassCode goes.
#include <qgsmapcanvasmap.h>
%End
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;
};