Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Expose maprender height and width via the public api
git-svn-id: http://svn.osgeo.org/qgis/trunk@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 21, 2008
1 parent 4a68c19 commit 0cef849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/core/qgsmaprender.sip
Expand Up @@ -33,6 +33,10 @@ class QgsMapRender : QObject
double scale() const;
double mupp() const;

int width() const;
int height() const;


//! Recalculate the map scale
void updateScale();

Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsmaprender.h
Expand Up @@ -64,6 +64,9 @@ class CORE_EXPORT QgsMapRender : public QObject
double scale() const { return mScale; }
double mupp() const { return mMupp; }

int width() const { return mSize.width(); };
int height() const { return mSize.height(); };

//! Recalculate the map scale
void updateScale();

Expand Down

0 comments on commit 0cef849

Please sign in to comment.