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 ~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:
This class is available in script environments.

Constructor & Destructor Documentation

RRuler::RRuler ( )
inline
virtual RRuler::~RRuler ( )
inlinevirtual

Member Function Documentation

virtual QFont RRuler::getFont ( ) const
pure virtual

Implemented in RRulerQt.

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

Implemented in RRulerQt.

void RRuler::setGraphicsView ( RGraphicsView view)
inline
void RRuler::setOrientation ( Qt::Orientation  orientation)
inline

Member Data Documentation

Qt::Orientation RRuler::orientation
protected
RGraphicsView* RRuler::view
protected

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