Skip to content

Commit

Permalink
Merge pull request #194 from dakcarto/binding_labelsWithinRect
Browse files Browse the repository at this point in the history
sip binding for QgsLabelingEngineInterface::labelsWithinRect()
  • Loading branch information
NathanW2 committed Jul 19, 2012
2 parents 8e66f2c + 0c62390 commit 408d266
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/core/qgsmaprenderer.sip
Expand Up @@ -28,6 +28,9 @@ public:
//! return infos about labels at a given (map) position
//! @note: this method was added in version 1.7
virtual QList<QgsLabelPosition> labelsAtPosition( const QgsPoint& p )= 0;
//! return infos about labels within a given (map) rectangle
//! @note: this method was added in version 1.9
virtual QList<QgsLabelPosition> labelsWithinRect( const QgsRectangle& r ) = 0;


//! called when passing engine among map renderers
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsmaprenderer.h
Expand Up @@ -89,6 +89,9 @@ class QgsLabelingEngineInterface
//! return infos about labels at a given (map) position
//! @note: this method was added in version 1.7
virtual QList<QgsLabelPosition> labelsAtPosition( const QgsPoint& p ) = 0;
//! return infos about labels within a given (map) rectangle
//! @note: this method was added in version 1.9
virtual QList<QgsLabelPosition> labelsWithinRect( const QgsRectangle& r ) = 0;

//! called when passing engine among map renderers
virtual QgsLabelingEngineInterface* clone() = 0;
Expand Down

0 comments on commit 408d266

Please sign in to comment.