QGIS/python/gui/qgsmapcanvasmap.sip

60 lines
1.5 KiB
Plaintext
Raw Normal View History

%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 : QgsMapCanvasItem
{
%TypeHeaderCode
#include <qgsmapcanvasmap.h>
%End
%ConvertToSubClassCode
2012-12-20 12:35:09 +02:00
if (dynamic_cast<QgsMapCanvasMap*>(sipCpp) != NULL)
{
sipClass = sipClass_QgsMapCanvasMap;
}
else
{
sipClass = NULL;
}
%End
public:
2012-12-20 12:35:09 +02:00
//! constructor
QgsMapCanvasMap( QgsMapCanvas* canvas /TransferThis/ );
//! @note added in 2.1
void setContent( const QImage& image, const QgsRectangle& rect );
//! @note added in 2.1
QImage contentImage() const;
virtual void paint( QPainter * painter );
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void resize( QSize size ) /Deprecated/;
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void enableAntiAliasing( bool flag ) /Deprecated/;
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void render() /Deprecated/;
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void setBackgroundColor( const QColor& color ) /Deprecated/;
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void setPanningOffset( const QPoint& point ) /Deprecated/;
//! @deprecated in 2.1
QPaintDevice& paintDevice() /Deprecated/;
//! @deprecated in 2.1 - does nothing. Kept for API compatibility
void updateContents() /Deprecated/;
};