QGIS/python/gui/qgsmapcanvasmap.sip
Juergen E. Fischer f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00

58 lines
1.3 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 useImageToRender( bool flag );
//! renders map using QgsMapRenderer to mPixmap
void render();
void setBackgroundColor( const QColor& color );
void setPanningOffset( const QPoint& point );
//! @deprecated Please use paintDevice() function which is also save in case QImage is used
QPixmap& pixmap() /Deprecated/;
QPaintDevice& paintDevice();
void paint( QPainter* p, const QStyleOptionGraphicsItem*, QWidget* );
QRectF boundingRect() const;
//! Update contents - can be called while drawing to show the status.
//! Added in version 1.2
void updateContents();
};