QCAD
Open Source 2D CAD
RRuler Class Referenceabstract

Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics view. More...

#include <RRuler.h>

Inheritance diagram for RRuler:
RRulerQt

Public Member Functions

virtual QFont getFont () const =0
 
Qt::Orientation getOrientation () const
 
virtual void paintTick (int pos, bool major, const QString &label)=0
 
 RRuler ()
 
void setGraphicsView (RGraphicsView *view)
 
void setOrientation (Qt::Orientation orientation)
 
virtual void updateViewport ()=0
 
virtual ~RRuler ()
 

Protected Attributes

Qt::Orientation orientation
 
RGraphicsViewview
 

Detailed Description

Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics view.

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RRuler()

RRuler::RRuler ( )
inline

◆ ~RRuler()

virtual RRuler::~RRuler ( )
inlinevirtual

Member Function Documentation

◆ getFont()

virtual QFont RRuler::getFont ( ) const
pure virtual

Implemented in RRulerQt.

◆ getOrientation()

Qt::Orientation RRuler::getOrientation ( ) const
inline

◆ paintTick()

virtual void RRuler::paintTick ( int  pos,
bool  major,
const QString &  label 
)
pure virtual

Implemented in RRulerQt.

◆ setGraphicsView()

void RRuler::setGraphicsView ( RGraphicsView view)
inline

◆ setOrientation()

void RRuler::setOrientation ( Qt::Orientation  orientation)
inline

◆ updateViewport()

virtual void RRuler::updateViewport ( )
pure virtual

Implemented in RRulerQt.

Member Data Documentation

◆ orientation

Qt::Orientation RRuler::orientation
protected

◆ view

RGraphicsView* RRuler::view
protected

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