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

Detailed Description

Definition at line 16 of file QskArcMetrics.h.

Properties

qreal startAngle
 
qreal spanAngle
 
qreal thickness
 
Qt::SizeMode sizeMode
 

Public Member Functions

constexpr QskArcMetrics (qreal thickness, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskArcMetrics (qreal startAngle, qreal spanAngle, qreal thickness, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
bool operator== (const QskArcMetrics &) const noexcept
 
bool operator!= (const QskArcMetrics &) const noexcept
 
constexpr bool isNull () const noexcept
 
void setStartAngle (qreal startAngle) noexcept
 
constexpr qreal startAngle () const noexcept
 
void setSpanAngle (qreal spanAngle) noexcept
 
constexpr qreal spanAngle () const noexcept
 
constexpr qreal endAngle () const noexcept
 
constexpr qreal angleAtRatio (qreal ratio) const noexcept
 
bool containsAngle (qreal) const
 
bool isClosed () const
 
void setThickness (qreal) noexcept
 
constexpr qreal thickness () const noexcept
 
void setSizeMode (Qt::SizeMode) noexcept
 
constexpr Qt::SizeMode sizeMode () const noexcept
 
QskArcMetrics interpolated (const QskArcMetrics &, qreal value) const noexcept
 
QskArcMetrics toAbsolute (const QSizeF &) const noexcept
 
QskArcMetrics toAbsolute (qreal radiusX, qreal radiusY) const noexcept
 
QskArcMetrics toAbsolute (qreal radius) const noexcept
 
QPainterPath painterPath (const QRectF &ellipseRect, bool radial=false) const
 
QRectF boundingRect (const QRectF &ellipseRect) const
 
QSizeF boundingSize (const QSizeF &ellipseSize) const
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ QskArcMetrics() [1/2]

constexpr QskArcMetrics::QskArcMetrics ( qreal  thickness,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 99 of file QskArcMetrics.h.

◆ QskArcMetrics() [2/2]

constexpr QskArcMetrics::QskArcMetrics ( qreal  startAngle,
qreal  spanAngle,
qreal  thickness,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 105 of file QskArcMetrics.h.

Member Function Documentation

◆ angleAtRatio()

constexpr qreal QskArcMetrics::angleAtRatio ( qreal  ratio) const
inlineconstexprnoexcept

Definition at line 154 of file QskArcMetrics.h.

◆ boundingRect()

QRectF QskArcMetrics::boundingRect ( const QRectF &  ellipseRect) const

Definition at line 228 of file QskArcMetrics.cpp.

◆ boundingSize()

QSizeF QskArcMetrics::boundingSize ( const QSizeF &  ellipseSize) const

Definition at line 239 of file QskArcMetrics.cpp.

◆ containsAngle()

bool QskArcMetrics::containsAngle ( qreal  angle) const

Definition at line 136 of file QskArcMetrics.cpp.

◆ endAngle()

constexpr qreal QskArcMetrics::endAngle ( ) const
inlineconstexprnoexcept

Definition at line 149 of file QskArcMetrics.h.

◆ hash()

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

Definition at line 251 of file QskArcMetrics.cpp.

◆ interpolate()

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

Definition at line 170 of file QskArcMetrics.cpp.

◆ interpolated()

QskArcMetrics QskArcMetrics::interpolated ( const QskArcMetrics to,
qreal  value 
) const
noexcept

Definition at line 156 of file QskArcMetrics.cpp.

◆ isClosed()

bool QskArcMetrics::isClosed ( ) const

Definition at line 131 of file QskArcMetrics.cpp.

◆ isNull()

constexpr bool QskArcMetrics::isNull ( ) const
inlineconstexprnoexcept

Definition at line 129 of file QskArcMetrics.h.

◆ operator!=()

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

Definition at line 123 of file QskArcMetrics.h.

◆ operator==()

bool QskArcMetrics::operator== ( const QskArcMetrics other) const
inlinenoexcept

Definition at line 114 of file QskArcMetrics.h.

◆ painterPath()

QPainterPath QskArcMetrics::painterPath ( const QRectF &  ellipseRect,
bool  radial = false 
) const

Definition at line 202 of file QskArcMetrics.cpp.

◆ setSizeMode()

void QskArcMetrics::setSizeMode ( Qt::SizeMode  sizeMode)
noexcept

Definition at line 126 of file QskArcMetrics.cpp.

◆ setSpanAngle()

void QskArcMetrics::setSpanAngle ( qreal  spanAngle)
noexcept

Definition at line 121 of file QskArcMetrics.cpp.

◆ setStartAngle()

void QskArcMetrics::setStartAngle ( qreal  startAngle)
noexcept

Definition at line 116 of file QskArcMetrics.cpp.

◆ setThickness()

void QskArcMetrics::setThickness ( qreal  thickness)
noexcept

Definition at line 111 of file QskArcMetrics.cpp.

◆ sizeMode()

constexpr Qt::SizeMode QskArcMetrics::sizeMode ( ) const
inlineconstexprnoexcept

Definition at line 159 of file QskArcMetrics.h.

◆ spanAngle()

constexpr qreal QskArcMetrics::spanAngle ( ) const
inlineconstexprnoexcept

Definition at line 144 of file QskArcMetrics.h.

◆ startAngle()

constexpr qreal QskArcMetrics::startAngle ( ) const
inlineconstexprnoexcept

Definition at line 139 of file QskArcMetrics.h.

◆ thickness()

constexpr qreal QskArcMetrics::thickness ( ) const
inlineconstexprnoexcept

Definition at line 134 of file QskArcMetrics.h.

◆ toAbsolute() [1/3]

QskArcMetrics QskArcMetrics::toAbsolute ( const QSizeF &  size) const
noexcept

Definition at line 177 of file QskArcMetrics.cpp.

◆ toAbsolute() [2/3]

QskArcMetrics QskArcMetrics::toAbsolute ( qreal  radius) const
noexcept

Definition at line 193 of file QskArcMetrics.cpp.

◆ toAbsolute() [3/3]

QskArcMetrics QskArcMetrics::toAbsolute ( qreal  radiusX,
qreal  radiusY 
) const
noexcept

Definition at line 182 of file QskArcMetrics.cpp.

Property Documentation

◆ sizeMode

Qt::SizeMode QskArcMetrics::sizeMode
readwrite

Definition at line 24 of file QskArcMetrics.h.

◆ spanAngle

qreal QskArcMetrics::spanAngle
readwrite

Definition at line 21 of file QskArcMetrics.h.

◆ startAngle

qreal QskArcMetrics::startAngle
readwrite

Definition at line 20 of file QskArcMetrics.h.

◆ thickness

qreal QskArcMetrics::thickness
readwrite

Definition at line 23 of file QskArcMetrics.h.