QGIS/python/gui/qgsmapcanvasmap.sip

46 lines
830 B
Plaintext
Raw Normal View History

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;
};