Skip to content
Permalink
Browse files
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 0cef849bc7e4b94f901e875ce9895d399d6e0b73
Showing with 7 additions and 0 deletions.
  1. +4 −0 python/core/qgsmaprender.sip
  2. +3 −0 src/core/qgsmaprender.h
@@ -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();

@@ -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();

0 comments on commit 0cef849

Please sign in to comment.