class QgsComposerRuler : QWidget { %TypeHeaderCode #include %End public: enum Direction { Horizontal, Vertical }; QgsComposerRuler( Direction d ); ~QgsComposerRuler(); QSize minimumSizeHint() const; void setSceneTransform( const QTransform &transform ); void updateMarker( QPointF pos ); void setComposition( QgsComposition *c ); QgsComposition *composition(); int rulerSize(); protected: void paintEvent( QPaintEvent *event ); void mouseMoveEvent( QMouseEvent *event ); void mouseReleaseEvent( QMouseEvent *event ); void mousePressEvent( QMouseEvent *event ); signals: /** Is emitted when mouse cursor coordinates change*/ void cursorPosChanged( QPointF ); };