Skip to content

Commit 0cef849

Browse files
author
timlinux
committed
Expose maprender height and width via the public api
git-svn-id: http://svn.osgeo.org/qgis/trunk@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4a68c19 commit 0cef849

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

python/core/qgsmaprender.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class QgsMapRender : QObject
3333
double scale() const;
3434
double mupp() const;
3535

36+
int width() const;
37+
int height() const;
38+
39+
3640
//! Recalculate the map scale
3741
void updateScale();
3842

src/core/qgsmaprender.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class CORE_EXPORT QgsMapRender : public QObject
6464
double scale() const { return mScale; }
6565
double mupp() const { return mMupp; }
6666

67+
int width() const { return mSize.width(); };
68+
int height() const { return mSize.height(); };
69+
6770
//! Recalculate the map scale
6871
void updateScale();
6972

0 commit comments

Comments
 (0)