9#include <QskIntervalF.h>
16 Q_PROPERTY( QVector< qreal > majorTicks READ majorTicks WRITE setMajorTicks )
17 Q_PROPERTY( QVector< qreal > mediumTicks READ mediumTicks WRITE setMediumTicks )
18 Q_PROPERTY( QVector< qreal > minorTicks READ minorTicks WRITE setMinorTicks )
32 const QVector< qreal >& mediumTicks,
const QVector< qreal >& majorTicks );
39 int tickCount()
const noexcept;
40 Q_INVOKABLE
int tickCount( TickType )
const noexcept;
42 QVector< qreal > ticks( TickType )
const noexcept;
43 void setTicks( TickType,
const QVector< qreal >& );
45 void setMinorTicks(
const QVector< qreal >& );
46 QVector< qreal > minorTicks()
const noexcept;
48 void setMediumTicks(
const QVector< qreal >& );
49 QVector< qreal > mediumTicks()
const noexcept;
51 void setMajorTicks(
const QVector< qreal >& );
52 QVector< qreal > majorTicks()
const noexcept;
54 Q_INVOKABLE qreal tickAt( TickType,
int index )
const;
59 QskHashValue hash( QskHashValue seed = 0 )
const noexcept;
62 QVector< qreal > m_ticks[ 3 ];
65inline void QskTickmarks::setMinorTicks(
const QVector< qreal >& ticks )
67 setTicks( MinorTick, ticks );
70inline QVector< qreal > QskTickmarks::minorTicks() const noexcept
72 return ticks( MinorTick );
75inline void QskTickmarks::setMediumTicks(
const QVector< qreal >& ticks )
77 setTicks( MediumTick, ticks );
80inline QVector< qreal > QskTickmarks::mediumTicks() const noexcept
82 return ticks( MediumTick );
85inline void QskTickmarks::setMajorTicks(
const QVector< qreal >& ticks )
87 setTicks( MajorTick, ticks );
90inline QVector< qreal > QskTickmarks::majorTicks() const noexcept
92 return ticks( MajorTick );
95inline bool QskTickmarks::operator!=(
98 return !( *
this == other );
103#ifndef QT_NO_DEBUG_STREAM
105QSK_EXPORT QDebug operator<<( QDebug,
const QskTickmarks& );