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

Detailed Description

Definition at line 14 of file QskGraduationMetrics.h.

Public Types

using TickType = QskTickmarks::TickType
 

Properties

qreal majorTickLength
 
qreal mediumTickLength
 
qreal minorTickLength
 
qreal tickWidth
 

Public Member Functions

constexpr QskGraduationMetrics (qreal minorTickLength, qreal mediumTickLength, qreal majorTickLength, qreal tickWidth=1.0) noexcept
 
constexpr bool operator== (const QskGraduationMetrics &) const noexcept
 
constexpr bool operator!= (const QskGraduationMetrics &) const noexcept
 
constexpr void setTickWidth (qreal) noexcept
 
constexpr qreal tickWidth () const noexcept
 
constexpr void setTickLength (TickType, qreal) noexcept
 
constexpr qreal tickLength (TickType) const noexcept
 
constexpr void setMinorTickLength (qreal) noexcept
 
constexpr qreal minorTickLength () const noexcept
 
constexpr void setMediumTickLength (qreal) noexcept
 
constexpr qreal mediumTickLength () const noexcept
 
constexpr void setMajorTickLength (qreal) noexcept
 
constexpr qreal majorTickLength () const noexcept
 
QskGraduationMetrics interpolated (const QskGraduationMetrics &, qreal progress) const noexcept
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 
constexpr qreal maxLength () const noexcept
 

Static Public Member Functions

static QVariant interpolate (const QskGraduationMetrics &, const QskGraduationMetrics &, qreal progress)
 

Member Typedef Documentation

◆ TickType

using QskGraduationMetrics::TickType = QskTickmarks::TickType

Definition at line 23 of file QskGraduationMetrics.h.

Constructor & Destructor Documentation

◆ QskGraduationMetrics()

constexpr QskGraduationMetrics::QskGraduationMetrics ( qreal  minorTickLength,
qreal  mediumTickLength,
qreal  majorTickLength,
qreal  tickWidth = 1.0 
)
inlineconstexprnoexcept

Definition at line 69 of file QskGraduationMetrics.h.

Member Function Documentation

◆ hash()

QskHashValue QskGraduationMetrics::hash ( QskHashValue  seed = 0) const
inlinenoexcept

Definition at line 151 of file QskGraduationMetrics.h.

◆ interpolate()

QVariant QskGraduationMetrics::interpolate ( const QskGraduationMetrics from,
const QskGraduationMetrics to,
qreal  progress 
)
static

Definition at line 37 of file QskGraduationMetrics.cpp.

◆ interpolated()

QskGraduationMetrics QskGraduationMetrics::interpolated ( const QskGraduationMetrics to,
qreal  progress 
) const
noexcept

Definition at line 25 of file QskGraduationMetrics.cpp.

◆ majorTickLength()

constexpr qreal QskGraduationMetrics::majorTickLength ( ) const
inlineconstexprnoexcept

Definition at line 83 of file QskGraduationMetrics.h.

◆ maxLength()

constexpr qreal QskGraduationMetrics::maxLength ( ) const
inlineconstexprnoexcept

Definition at line 145 of file QskGraduationMetrics.h.

◆ mediumTickLength()

constexpr qreal QskGraduationMetrics::mediumTickLength ( ) const
inlineconstexprnoexcept

Definition at line 93 of file QskGraduationMetrics.h.

◆ minorTickLength()

constexpr qreal QskGraduationMetrics::minorTickLength ( ) const
inlineconstexprnoexcept

Definition at line 103 of file QskGraduationMetrics.h.

◆ operator!=()

constexpr bool QskGraduationMetrics::operator!= ( const QskGraduationMetrics rhs) const
inlineconstexprnoexcept

Definition at line 117 of file QskGraduationMetrics.h.

◆ operator==()

constexpr bool QskGraduationMetrics::operator== ( const QskGraduationMetrics other) const
inlineconstexprnoexcept

Definition at line 108 of file QskGraduationMetrics.h.

◆ setMajorTickLength()

constexpr void QskGraduationMetrics::setMajorTickLength ( qreal  length)
inlineconstexprnoexcept

Definition at line 78 of file QskGraduationMetrics.h.

◆ setMediumTickLength()

constexpr void QskGraduationMetrics::setMediumTickLength ( qreal  length)
inlineconstexprnoexcept

Definition at line 88 of file QskGraduationMetrics.h.

◆ setMinorTickLength()

constexpr void QskGraduationMetrics::setMinorTickLength ( qreal  length)
inlineconstexprnoexcept

Definition at line 98 of file QskGraduationMetrics.h.

◆ setTickLength()

constexpr void QskGraduationMetrics::setTickLength ( TickType  type,
qreal  length 
)
inlineconstexprnoexcept

Definition at line 133 of file QskGraduationMetrics.h.

◆ setTickWidth()

constexpr void QskGraduationMetrics::setTickWidth ( qreal  width)
inlineconstexprnoexcept

Definition at line 123 of file QskGraduationMetrics.h.

◆ tickLength()

constexpr qreal QskGraduationMetrics::tickLength ( const QskTickmarks::TickType  type) const
inlineconstexprnoexcept

Definition at line 139 of file QskGraduationMetrics.h.

◆ tickWidth()

constexpr qreal QskGraduationMetrics::tickWidth ( ) const
inlineconstexprnoexcept

Definition at line 128 of file QskGraduationMetrics.h.

Property Documentation

◆ majorTickLength

qreal QskGraduationMetrics::majorTickLength
readwrite

Definition at line 17 of file QskGraduationMetrics.h.

◆ mediumTickLength

qreal QskGraduationMetrics::mediumTickLength
readwrite

Definition at line 18 of file QskGraduationMetrics.h.

◆ minorTickLength

qreal QskGraduationMetrics::minorTickLength
readwrite

Definition at line 19 of file QskGraduationMetrics.h.

◆ tickWidth

qreal QskGraduationMetrics::tickWidth
readwrite

Definition at line 20 of file QskGraduationMetrics.h.