Skip to content

Commit

Permalink
Expose maprender height and width via the public api
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 21, 2008
1 parent e25b56c commit 75f6094
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 75f6094

Please sign in to comment.