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

Detailed Description

Definition at line 17 of file QskBoxShapeMetrics.h.

Public Types

enum  ScalingMode { Symmetric , SymmetricByMaximum , Proportional }
 

Properties

QSizeF topLeft
 
QSizeF topRight
 
QSizeF bottomLeft
 
QSizeF bottomRight
 
qreal radius
 
Qt::SizeMode sizeMode
 
ScalingMode scalingMode
 

Public Member Functions

constexpr QskBoxShapeMetrics (qreal topLeft, qreal topRight, qreal bottomLeft, qreal bottomRight, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskBoxShapeMetrics (qreal radius, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskBoxShapeMetrics (qreal radiusX, qreal radiusY, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr bool operator== (const QskBoxShapeMetrics &) const noexcept
 
constexpr bool operator!= (const QskBoxShapeMetrics &) const noexcept
 
void setRadius (qreal radius) noexcept
 
void setRadius (qreal radius, Qt::SizeMode) noexcept
 
void setRadius (Qt::Corner, qreal radius) noexcept
 
void setRadius (qreal radiusX, qreal radiusY) noexcept
 
void setRadius (const QSizeF &) noexcept
 
void setRadius (Qt::Corner, qreal radiusX, qreal radiusY) noexcept
 
void setRadius (Qt::Corner, const QSizeF &radius) noexcept
 
void setRadius (qreal topLeft, qreal topRight, qreal bottomLeft, qreal bottomRight) noexcept
 
void setRadius (const QSizeF &topLeft, const QSizeF &topRight, const QSizeF &bottomLeft, const QSizeF &bottomRight) noexcept
 
void setRadius (qreal topLeftX, qreal topLeftY, qreal topRightX, qreal topRightY, qreal bottomLeftX, qreal bottomLeftY, qreal bottomRightX, qreal bottomRightY) noexcept
 
constexpr QSizeF radius (Qt::Corner) const noexcept
 
constexpr QSizeF topLeft () const noexcept
 
constexpr QSizeF topRight () const noexcept
 
constexpr QSizeF bottomLeft () const noexcept
 
constexpr QSizeF bottomRight () const noexcept
 
void setTopLeft (const QSizeF &) noexcept
 
void setTopRight (const QSizeF &) noexcept
 
void setBottomLeft (const QSizeF &) noexcept
 
void setBottomRight (const QSizeF &) noexcept
 
constexpr bool isRectangle () const noexcept
 
constexpr bool isRectellipse () const noexcept
 
void setSizeMode (Qt::SizeMode) noexcept
 
constexpr Qt::SizeMode sizeMode () const noexcept
 
void setScalingMode (ScalingMode) noexcept
 
constexpr ScalingMode scalingMode () const noexcept
 
QskBoxShapeMetrics interpolated (const QskBoxShapeMetrics &, qreal value) const noexcept
 
QskBoxShapeMetrics toAbsolute (const QSizeF &) const noexcept
 
constexpr QskBoxShapeMetrics transposed () const noexcept
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Static Public Member Functions

static QVariant interpolate (const QskBoxShapeMetrics &, const QskBoxShapeMetrics &, qreal progress) noexcept
 

Member Enumeration Documentation

◆ ScalingMode

enum QskBoxShapeMetrics::ScalingMode

Definition at line 55 of file QskBoxShapeMetrics.h.

Constructor & Destructor Documentation

◆ QskBoxShapeMetrics() [1/4]

constexpr QskBoxShapeMetrics::QskBoxShapeMetrics ( )
inlineconstexprnoexcept

Definition at line 151 of file QskBoxShapeMetrics.h.

◆ QskBoxShapeMetrics() [2/4]

constexpr QskBoxShapeMetrics::QskBoxShapeMetrics ( qreal  topLeft,
qreal  topRight,
qreal  bottomLeft,
qreal  bottomRight,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 173 of file QskBoxShapeMetrics.h.

◆ QskBoxShapeMetrics() [3/4]

constexpr QskBoxShapeMetrics::QskBoxShapeMetrics ( qreal  radius,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 158 of file QskBoxShapeMetrics.h.

◆ QskBoxShapeMetrics() [4/4]

constexpr QskBoxShapeMetrics::QskBoxShapeMetrics ( qreal  radiusX,
qreal  radiusY,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 164 of file QskBoxShapeMetrics.h.

Member Function Documentation

◆ bottomLeft()

constexpr QSizeF QskBoxShapeMetrics::bottomLeft ( ) const
inlineconstexprnoexcept

Definition at line 264 of file QskBoxShapeMetrics.h.

◆ bottomRight()

constexpr QSizeF QskBoxShapeMetrics::bottomRight ( ) const
inlineconstexprnoexcept

Definition at line 269 of file QskBoxShapeMetrics.h.

◆ hash()

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

Definition at line 166 of file QskBoxShapeMetrics.cpp.

◆ interpolate()

QVariant QskBoxShapeMetrics::interpolate ( const QskBoxShapeMetrics from,
const QskBoxShapeMetrics to,
qreal  progress 
)
staticnoexcept

Definition at line 160 of file QskBoxShapeMetrics.cpp.

◆ interpolated()

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

Definition at line 144 of file QskBoxShapeMetrics.cpp.

◆ isRectangle()

constexpr bool QskBoxShapeMetrics::isRectangle ( ) const
inlineconstexprnoexcept

Definition at line 302 of file QskBoxShapeMetrics.h.

◆ isRectellipse()

constexpr bool QskBoxShapeMetrics::isRectellipse ( ) const
inlineconstexprnoexcept

Definition at line 295 of file QskBoxShapeMetrics.h.

◆ operator!=()

constexpr bool QskBoxShapeMetrics::operator!= ( const QskBoxShapeMetrics other) const
inlineconstexprnoexcept

Definition at line 193 of file QskBoxShapeMetrics.h.

◆ operator==()

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

Definition at line 182 of file QskBoxShapeMetrics.h.

◆ radius()

constexpr QSizeF QskBoxShapeMetrics::radius ( Qt::Corner  corner) const
inlineconstexprnoexcept

Definition at line 248 of file QskBoxShapeMetrics.h.

◆ scalingMode()

constexpr QskBoxShapeMetrics::ScalingMode QskBoxShapeMetrics::scalingMode ( ) const
inlineconstexprnoexcept

Definition at line 290 of file QskBoxShapeMetrics.h.

◆ setBottomLeft()

void QskBoxShapeMetrics::setBottomLeft ( const QSizeF &  radius)
noexcept

Definition at line 77 of file QskBoxShapeMetrics.cpp.

◆ setBottomRight()

void QskBoxShapeMetrics::setBottomRight ( const QSizeF &  radius)
noexcept

Definition at line 82 of file QskBoxShapeMetrics.cpp.

◆ setRadius() [1/10]

void QskBoxShapeMetrics::setRadius ( const QSizeF &  radius)
inlinenoexcept

Definition at line 216 of file QskBoxShapeMetrics.h.

◆ setRadius() [2/10]

void QskBoxShapeMetrics::setRadius ( const QSizeF &  topLeft,
const QSizeF &  topRight,
const QSizeF &  bottomLeft,
const QSizeF &  bottomRight 
)
inlinenoexcept

Definition at line 238 of file QskBoxShapeMetrics.h.

◆ setRadius() [3/10]

void QskBoxShapeMetrics::setRadius ( qreal  radius)
inlinenoexcept

Definition at line 199 of file QskBoxShapeMetrics.h.

◆ setRadius() [4/10]

void QskBoxShapeMetrics::setRadius ( qreal  radius,
Qt::SizeMode  sizeMode 
)
inlinenoexcept

Definition at line 204 of file QskBoxShapeMetrics.h.

◆ setRadius() [5/10]

void QskBoxShapeMetrics::setRadius ( qreal  radiusX,
qreal  radiusY 
)
inlinenoexcept

Definition at line 210 of file QskBoxShapeMetrics.h.

◆ setRadius() [6/10]

void QskBoxShapeMetrics::setRadius ( qreal  topLeft,
qreal  topRight,
qreal  bottomLeft,
qreal  bottomRight 
)
inlinenoexcept

Definition at line 231 of file QskBoxShapeMetrics.h.

◆ setRadius() [7/10]

void QskBoxShapeMetrics::setRadius ( qreal  topLeftX,
qreal  topLeftY,
qreal  topRightX,
qreal  topRightY,
qreal  bottomLeftX,
qreal  bottomLeftY,
qreal  bottomRightX,
qreal  bottomRightY 
)
noexcept

Definition at line 49 of file QskBoxShapeMetrics.cpp.

◆ setRadius() [8/10]

void QskBoxShapeMetrics::setRadius ( Qt::Corner  corner,
const QSizeF &  radius 
)
inlinenoexcept

Definition at line 226 of file QskBoxShapeMetrics.h.

◆ setRadius() [9/10]

void QskBoxShapeMetrics::setRadius ( Qt::Corner  corner,
qreal  radius 
)
inlinenoexcept

Definition at line 221 of file QskBoxShapeMetrics.h.

◆ setRadius() [10/10]

void QskBoxShapeMetrics::setRadius ( Qt::Corner  corner,
qreal  radiusX,
qreal  radiusY 
)
noexcept

Definition at line 61 of file QskBoxShapeMetrics.cpp.

◆ setScalingMode()

void QskBoxShapeMetrics::setScalingMode ( ScalingMode  scalingMode)
inlinenoexcept

Definition at line 284 of file QskBoxShapeMetrics.h.

◆ setSizeMode()

void QskBoxShapeMetrics::setSizeMode ( Qt::SizeMode  sizeMode)
inlinenoexcept

Definition at line 274 of file QskBoxShapeMetrics.h.

◆ setTopLeft()

void QskBoxShapeMetrics::setTopLeft ( const QSizeF &  radius)
noexcept

Definition at line 67 of file QskBoxShapeMetrics.cpp.

◆ setTopRight()

void QskBoxShapeMetrics::setTopRight ( const QSizeF &  radius)
noexcept

Definition at line 72 of file QskBoxShapeMetrics.cpp.

◆ sizeMode()

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

Definition at line 279 of file QskBoxShapeMetrics.h.

◆ toAbsolute()

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

Definition at line 87 of file QskBoxShapeMetrics.cpp.

◆ topLeft()

constexpr QSizeF QskBoxShapeMetrics::topLeft ( ) const
inlineconstexprnoexcept

Definition at line 254 of file QskBoxShapeMetrics.h.

◆ topRight()

constexpr QSizeF QskBoxShapeMetrics::topRight ( ) const
inlineconstexprnoexcept

Definition at line 259 of file QskBoxShapeMetrics.h.

◆ transposed()

constexpr QskBoxShapeMetrics QskBoxShapeMetrics::transposed ( ) const
inlineconstexprnoexcept

Definition at line 310 of file QskBoxShapeMetrics.h.

Property Documentation

◆ bottomLeft

QSizeF QskBoxShapeMetrics::bottomLeft
readwrite

Definition at line 23 of file QskBoxShapeMetrics.h.

◆ bottomRight

QSizeF QskBoxShapeMetrics::bottomRight
readwrite

Definition at line 24 of file QskBoxShapeMetrics.h.

◆ radius

qreal QskBoxShapeMetrics::radius
readwrite

Definition at line 26 of file QskBoxShapeMetrics.h.

◆ scalingMode

ScalingMode QskBoxShapeMetrics::scalingMode
readwrite

Definition at line 29 of file QskBoxShapeMetrics.h.

◆ sizeMode

Qt::SizeMode QskBoxShapeMetrics::sizeMode
readwrite

Definition at line 28 of file QskBoxShapeMetrics.h.

◆ topLeft

QSizeF QskBoxShapeMetrics::topLeft
readwrite

Definition at line 21 of file QskBoxShapeMetrics.h.

◆ topRight

QSizeF QskBoxShapeMetrics::topRight
readwrite

Definition at line 22 of file QskBoxShapeMetrics.h.