QGIS API Documentation  2.99.0-Master (dcec6bb)
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 27 of file qgscomposerruler.h.

Member Enumeration Documentation

◆ Direction

Enumerator
Horizontal 
Vertical 

Definition at line 32 of file qgscomposerruler.h.

Constructor & Destructor Documentation

◆ QgsComposerRuler()

QgsComposerRuler::QgsComposerRuler ( QgsComposerRuler::Direction  d)

Definition at line 29 of file qgscomposerruler.cpp.

◆ ~QgsComposerRuler()

QgsComposerRuler::~QgsComposerRuler ( )

Definition at line 60 of file qgscomposerruler.cpp.

Member Function Documentation

◆ composition()

QgsComposition* QgsComposerRuler::composition ( )
inline

Definition at line 47 of file qgscomposerruler.h.

◆ cursorPosChanged

void QgsComposerRuler::cursorPosChanged ( QPointF  )
signal

Is emitted when mouse cursor coordinates change.

◆ minimumSizeHint()

QSize QgsComposerRuler::minimumSizeHint ( ) const
override

Definition at line 66 of file qgscomposerruler.cpp.

◆ mouseMoveEvent()

void QgsComposerRuler::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 386 of file qgscomposerruler.cpp.

◆ mousePressEvent()

void QgsComposerRuler::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 431 of file qgscomposerruler.cpp.

◆ mouseReleaseEvent()

void QgsComposerRuler::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 407 of file qgscomposerruler.cpp.

◆ paintEvent()

void QgsComposerRuler::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 71 of file qgscomposerruler.cpp.

◆ rulerSize()

int QgsComposerRuler::rulerSize ( )
inline

Definition at line 49 of file qgscomposerruler.h.

◆ setComposition()

void QgsComposerRuler::setComposition ( QgsComposition c)
inline

Definition at line 46 of file qgscomposerruler.h.

◆ setSceneTransform()

void QgsComposerRuler::setSceneTransform ( const QTransform &  transform)

Definition at line 376 of file qgscomposerruler.cpp.

◆ updateMarker()

void QgsComposerRuler::updateMarker ( QPointF  pos)
inline

Definition at line 44 of file qgscomposerruler.h.


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