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

Detailed Description

Definition at line 17 of file QskShadowMetrics.h.

Public Types

enum  ShapeMode { Aligned = 0 , Ellipse , Rectangle }
 

Properties

QPointF offset
 
qreal spreadRadius
 
qreal blurRadius
 
Qt::SizeMode sizeMode
 
ShapeMode shapeMode
 

Public Member Functions

constexpr QskShadowMetrics (const QPointF &offset=QPointF()) noexcept
 
constexpr QskShadowMetrics (qreal spreadRadius, qreal blurRadius) noexcept
 
constexpr QskShadowMetrics (qreal spreadRadius, qreal blurRadius, const QPointF &offset, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr bool operator== (const QskShadowMetrics &) const noexcept
 
constexpr bool operator!= (const QskShadowMetrics &) const noexcept
 
bool isNull () const noexcept
 
void setSpreadRadius (qreal) noexcept
 
constexpr qreal spreadRadius () const noexcept
 
void setBlurRadius (qreal) noexcept
 
constexpr qreal blurRadius () const noexcept
 
constexpr qreal totalRadius () const noexcept
 
void setOffsetX (qreal dx) noexcept
 
void setOffsetY (qreal dy) noexcept
 
void setOffset (qreal dx, qreal dy) noexcept
 
void setOffset (const QPointF &) noexcept
 
constexpr QPointF offset () const noexcept
 
void setSizeMode (Qt::SizeMode) noexcept
 
constexpr Qt::SizeMode sizeMode () const noexcept
 
void setShapeMode (ShapeMode) noexcept
 
constexpr ShapeMode shapeMode () const noexcept
 
QskShadowMetrics interpolated (const QskShadowMetrics &, qreal value) const noexcept
 
QskShadowMetrics toAbsolute (const QSizeF &) const noexcept
 
QRectF shadowRect (const QRectF &sourceRect) const
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Static Public Member Functions

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

Member Enumeration Documentation

◆ ShapeMode

enum QskShadowMetrics::ShapeMode

Definition at line 29 of file QskShadowMetrics.h.

Constructor & Destructor Documentation

◆ QskShadowMetrics() [1/3]

constexpr QskShadowMetrics::QskShadowMetrics ( const QPointF &  offset = QPointF())
inlineconstexprnoexcept

Definition at line 92 of file QskShadowMetrics.h.

◆ QskShadowMetrics() [2/3]

constexpr QskShadowMetrics::QskShadowMetrics ( qreal  spreadRadius,
qreal  blurRadius 
)
inlineconstexprnoexcept

Definition at line 97 of file QskShadowMetrics.h.

◆ QskShadowMetrics() [3/3]

constexpr QskShadowMetrics::QskShadowMetrics ( qreal  spreadRadius,
qreal  blurRadius,
const QPointF &  offset,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 104 of file QskShadowMetrics.h.

Member Function Documentation

◆ blurRadius()

constexpr qreal QskShadowMetrics::blurRadius ( ) const
inlineconstexprnoexcept

Definition at line 146 of file QskShadowMetrics.h.

◆ hash()

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

Definition at line 90 of file QskShadowMetrics.cpp.

◆ interpolate()

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

Definition at line 71 of file QskShadowMetrics.cpp.

◆ interpolated()

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

Definition at line 52 of file QskShadowMetrics.cpp.

◆ isNull()

bool QskShadowMetrics::isNull ( ) const
inlinenoexcept

Definition at line 202 of file QskShadowMetrics.h.

◆ offset()

constexpr QPointF QskShadowMetrics::offset ( ) const
inlineconstexprnoexcept

Definition at line 197 of file QskShadowMetrics.h.

◆ operator!=()

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

Definition at line 125 of file QskShadowMetrics.h.

◆ operator==()

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

Definition at line 114 of file QskShadowMetrics.h.

◆ setBlurRadius()

void QskShadowMetrics::setBlurRadius ( qreal  radius)
inlinenoexcept

Definition at line 141 of file QskShadowMetrics.h.

◆ setOffset() [1/2]

void QskShadowMetrics::setOffset ( const QPointF &  offset)
inlinenoexcept

Definition at line 192 of file QskShadowMetrics.h.

◆ setOffset() [2/2]

void QskShadowMetrics::setOffset ( qreal  dx,
qreal  dy 
)
inlinenoexcept

Definition at line 186 of file QskShadowMetrics.h.

◆ setOffsetX()

void QskShadowMetrics::setOffsetX ( qreal  dx)
inlinenoexcept

Definition at line 176 of file QskShadowMetrics.h.

◆ setOffsetY()

void QskShadowMetrics::setOffsetY ( qreal  dy)
inlinenoexcept

Definition at line 181 of file QskShadowMetrics.h.

◆ setShapeMode()

void QskShadowMetrics::setShapeMode ( ShapeMode  shapeMode)
inlinenoexcept

Definition at line 166 of file QskShadowMetrics.h.

◆ setSizeMode()

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

Definition at line 156 of file QskShadowMetrics.h.

◆ setSpreadRadius()

void QskShadowMetrics::setSpreadRadius ( qreal  radius)
inlinenoexcept

Definition at line 131 of file QskShadowMetrics.h.

◆ shadowRect()

QRectF QskShadowMetrics::shadowRect ( const QRectF &  sourceRect) const

Definition at line 78 of file QskShadowMetrics.cpp.

◆ shapeMode()

constexpr QskShadowMetrics::ShapeMode QskShadowMetrics::shapeMode ( ) const
inlineconstexprnoexcept

Definition at line 171 of file QskShadowMetrics.h.

◆ sizeMode()

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

Definition at line 161 of file QskShadowMetrics.h.

◆ spreadRadius()

constexpr qreal QskShadowMetrics::spreadRadius ( ) const
inlineconstexprnoexcept

Definition at line 136 of file QskShadowMetrics.h.

◆ toAbsolute()

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

Definition at line 34 of file QskShadowMetrics.cpp.

◆ totalRadius()

constexpr qreal QskShadowMetrics::totalRadius ( ) const
inlineconstexprnoexcept

Definition at line 151 of file QskShadowMetrics.h.

Property Documentation

◆ blurRadius

qreal QskShadowMetrics::blurRadius
readwrite

Definition at line 23 of file QskShadowMetrics.h.

◆ offset

QPointF QskShadowMetrics::offset
readwrite

Definition at line 21 of file QskShadowMetrics.h.

◆ shapeMode

ShapeMode QskShadowMetrics::shapeMode
readwrite

Definition at line 26 of file QskShadowMetrics.h.

◆ sizeMode

Qt::SizeMode QskShadowMetrics::sizeMode
readwrite

Definition at line 25 of file QskShadowMetrics.h.

◆ spreadRadius

qreal QskShadowMetrics::spreadRadius
readwrite

Definition at line 22 of file QskShadowMetrics.h.