QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskTickmarks Class Reference

Detailed Description

Definition at line 12 of file QskTickmarks.h.

Public Types

enum  TickType { MinorTick , MediumTick , MajorTick }
 

Properties

QVector< qreal > majorTicks
 
QVector< qreal > mediumTicks
 
QVector< qreal > minorTicks
 

Public Member Functions

 QskTickmarks (const QVector< qreal > &minorTicks, const QVector< qreal > &mediumTicks, const QVector< qreal > &majorTicks)
 
bool operator== (const QskTickmarks &) const noexcept
 
bool operator!= (const QskTickmarks &) const noexcept
 
int tickCount () const noexcept
 
Q_INVOKABLE int tickCount (TickType) const noexcept
 
QVector< qreal > ticks (TickType) const noexcept
 
void setTicks (TickType, const QVector< qreal > &)
 
void setMinorTicks (const QVector< qreal > &)
 
QVector< qreal > minorTicks () const noexcept
 
void setMediumTicks (const QVector< qreal > &)
 
QVector< qreal > mediumTicks () const noexcept
 
void setMajorTicks (const QVector< qreal > &)
 
QVector< qreal > majorTicks () const noexcept
 
Q_INVOKABLE qreal tickAt (TickType, int index) const
 
void invert ()
 
void reset ()
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Member Enumeration Documentation

◆ TickType

enum QskTickmarks::TickType

Definition at line 21 of file QskTickmarks.h.

Constructor & Destructor Documentation

◆ QskTickmarks() [1/2]

QskTickmarks::QskTickmarks ( )

Definition at line 20 of file QskTickmarks.cpp.

◆ QskTickmarks() [2/2]

QskTickmarks::QskTickmarks ( const QVector< qreal > &  minorTicks,
const QVector< qreal > &  mediumTicks,
const QVector< qreal > &  majorTicks 
)

Definition at line 24 of file QskTickmarks.cpp.

◆ ~QskTickmarks()

QskTickmarks::~QskTickmarks ( )

Definition at line 30 of file QskTickmarks.cpp.

Member Function Documentation

◆ hash()

QskHashValue QskTickmarks::hash ( QskHashValue  seed = 0) const
noexcept

Definition at line 78 of file QskTickmarks.cpp.

◆ invert()

void QskTickmarks::invert ( )

Definition at line 71 of file QskTickmarks.cpp.

◆ majorTicks()

QVector< qreal > QskTickmarks::majorTicks ( ) const
inlinenoexcept

Definition at line 90 of file QskTickmarks.h.

◆ mediumTicks()

QVector< qreal > QskTickmarks::mediumTicks ( ) const
inlinenoexcept

Definition at line 80 of file QskTickmarks.h.

◆ minorTicks()

QVector< qreal > QskTickmarks::minorTicks ( ) const
inlinenoexcept

Definition at line 70 of file QskTickmarks.h.

◆ operator!=()

bool QskTickmarks::operator!= ( const QskTickmarks other) const
inlinenoexcept

Definition at line 95 of file QskTickmarks.h.

◆ operator==()

bool QskTickmarks::operator== ( const QskTickmarks other) const
noexcept

Definition at line 87 of file QskTickmarks.cpp.

◆ reset()

void QskTickmarks::reset ( )

Definition at line 64 of file QskTickmarks.cpp.

◆ setMajorTicks()

void QskTickmarks::setMajorTicks ( const QVector< qreal > &  ticks)
inline

Definition at line 85 of file QskTickmarks.h.

◆ setMediumTicks()

void QskTickmarks::setMediumTicks ( const QVector< qreal > &  ticks)
inline

Definition at line 75 of file QskTickmarks.h.

◆ setMinorTicks()

void QskTickmarks::setMinorTicks ( const QVector< qreal > &  ticks)
inline

Definition at line 65 of file QskTickmarks.h.

◆ setTicks()

void QskTickmarks::setTicks ( TickType  type,
const QVector< qreal > &  ticks 
)

Definition at line 54 of file QskTickmarks.cpp.

◆ tickAt()

qreal QskTickmarks::tickAt ( TickType  type,
int  index 
) const

Definition at line 59 of file QskTickmarks.cpp.

◆ tickCount() [1/2]

int QskTickmarks::tickCount ( ) const
noexcept

Definition at line 34 of file QskTickmarks.cpp.

◆ tickCount() [2/2]

int QskTickmarks::tickCount ( TickType  type) const
noexcept

Definition at line 44 of file QskTickmarks.cpp.

◆ ticks()

QVector< qreal > QskTickmarks::ticks ( TickType  type) const
noexcept

Definition at line 49 of file QskTickmarks.cpp.

Property Documentation

◆ majorTicks

QVector< qreal > QskTickmarks::majorTicks
readwrite

Definition at line 16 of file QskTickmarks.h.

◆ mediumTicks

QVector< qreal > QskTickmarks::mediumTicks
readwrite

Definition at line 17 of file QskTickmarks.h.

◆ minorTicks

QVector< qreal > QskTickmarks::minorTicks
readwrite

Definition at line 18 of file QskTickmarks.h.