QGIS API Documentation  2.99.0-Master (c558d51)
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsComposerRuler Class Reference

A class to show paper scale and the current cursor position. More...

#include <qgscomposerruler.h>

Inheritance diagram for QgsComposerRuler:
Inheritance graph
[legend]

Public Types

enum  Direction { Horizontal = 0, Vertical }
 

Signals

void cursorPosChanged (QPointF)
 Is emitted when mouse cursor coordinates change. More...
 

Public Member Functions

 QgsComposerRuler (QgsComposerRuler::Direction d)
 
 ~QgsComposerRuler ()
 
QgsCompositioncomposition ()
 
QSize minimumSizeHint () const override
 
int rulerSize ()
 
void setComposition (QgsComposition *c)
 
void setSceneTransform (const QTransform &transform)
 
void updateMarker (QPointF pos)
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Detailed Description

A class to show paper scale and the current cursor position.

Definition at line 26 of file qgscomposerruler.h.

Member Enumeration Documentation

Enumerator
Horizontal 
Vertical 

Definition at line 31 of file qgscomposerruler.h.

Constructor & Destructor Documentation

QgsComposerRuler::QgsComposerRuler ( QgsComposerRuler::Direction  d)

Definition at line 29 of file qgscomposerruler.cpp.

QgsComposerRuler::~QgsComposerRuler ( )

Definition at line 60 of file qgscomposerruler.cpp.

Member Function Documentation

QgsComposition* QgsComposerRuler::composition ( )
inline

Definition at line 46 of file qgscomposerruler.h.

void QgsComposerRuler::cursorPosChanged ( QPointF  )
signal

Is emitted when mouse cursor coordinates change.

QSize QgsComposerRuler::minimumSizeHint ( ) const
override

Definition at line 66 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 386 of file qgscomposerruler.cpp.

void QgsComposerRuler::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 431 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 407 of file qgscomposerruler.cpp.

void QgsComposerRuler::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 71 of file qgscomposerruler.cpp.

int QgsComposerRuler::rulerSize ( )
inline

Definition at line 48 of file qgscomposerruler.h.

void QgsComposerRuler::setComposition ( QgsComposition c)
inline

Definition at line 45 of file qgscomposerruler.h.

void QgsComposerRuler::setSceneTransform ( const QTransform &  transform)

Definition at line 376 of file qgscomposerruler.cpp.

void QgsComposerRuler::updateMarker ( QPointF  pos)
inline

Definition at line 43 of file qgscomposerruler.h.


The documentation for this class was generated from the following files: