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

Detailed Description

Definition at line 17 of file QskBoxBorderMetrics.h.

Properties

QskMargins widths
 
Qt::SizeMode sizeMode
 
qreal left
 
qreal top
 
qreal right
 
qreal bottom
 

Public Member Functions

constexpr QskBoxBorderMetrics (qreal width, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskBoxBorderMetrics (qreal left, qreal top, qreal right, qreal bottom, Qt::SizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskBoxBorderMetrics (const QskMargins &widths, Qt::SizeMode sizeMode=Qt::AbsoluteSize) noexcept
 
constexpr QskBoxBorderMetrics (const QMarginsF &widths, Qt::SizeMode sizeMode=Qt::AbsoluteSize) noexcept
 
constexpr bool operator== (const QskBoxBorderMetrics &) const noexcept
 
constexpr bool operator!= (const QskBoxBorderMetrics &) const noexcept
 
constexpr bool isNull () const noexcept
 
void setWidthAt (Qt::Edges, qreal width) noexcept
 
qreal widthAt (Qt::Edge) const noexcept
 
void setWidths (const QskMargins &) noexcept
 
constexpr const QskMarginswidths () const noexcept
 
constexpr qreal left () const noexcept
 
constexpr qreal top () const noexcept
 
constexpr qreal right () const noexcept
 
constexpr qreal bottom () const noexcept
 
void setLeft (qreal) noexcept
 
void setTop (qreal) noexcept
 
void setRight (qreal) noexcept
 
void setBottom (qreal) noexcept
 
void setSizeMode (Qt::SizeMode) noexcept
 
constexpr Qt::SizeMode sizeMode () const noexcept
 
QskBoxBorderMetrics interpolated (const QskBoxBorderMetrics &, qreal value) const noexcept
 
QskBoxBorderMetrics toAbsolute (const QSizeF &) const noexcept
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 
constexpr bool isEquidistant () const noexcept
 
QRectF adjustedRect (const QRectF &) const
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ QskBoxBorderMetrics() [1/5]

constexpr QskBoxBorderMetrics::QskBoxBorderMetrics ( )
inlineconstexprnoexcept

Definition at line 87 of file QskBoxBorderMetrics.h.

◆ QskBoxBorderMetrics() [2/5]

constexpr QskBoxBorderMetrics::QskBoxBorderMetrics ( qreal  width,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 92 of file QskBoxBorderMetrics.h.

◆ QskBoxBorderMetrics() [3/5]

constexpr QskBoxBorderMetrics::QskBoxBorderMetrics ( qreal  left,
qreal  top,
qreal  right,
qreal  bottom,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 113 of file QskBoxBorderMetrics.h.

◆ QskBoxBorderMetrics() [4/5]

constexpr QskBoxBorderMetrics::QskBoxBorderMetrics ( const QskMargins widths,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 106 of file QskBoxBorderMetrics.h.

◆ QskBoxBorderMetrics() [5/5]

constexpr QskBoxBorderMetrics::QskBoxBorderMetrics ( const QMarginsF &  widths,
Qt::SizeMode  sizeMode = Qt::AbsoluteSize 
)
inlineconstexprnoexcept

Definition at line 99 of file QskBoxBorderMetrics.h.

Member Function Documentation

◆ adjustedRect()

QRectF QskBoxBorderMetrics::adjustedRect ( const QRectF &  rect) const

Definition at line 83 of file QskBoxBorderMetrics.cpp.

◆ bottom()

constexpr qreal QskBoxBorderMetrics::bottom ( ) const
inlineconstexprnoexcept

Definition at line 167 of file QskBoxBorderMetrics.h.

◆ hash()

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

Definition at line 109 of file QskBoxBorderMetrics.cpp.

◆ interpolate()

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

Definition at line 102 of file QskBoxBorderMetrics.cpp.

◆ interpolated()

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

Definition at line 92 of file QskBoxBorderMetrics.cpp.

◆ isEquidistant()

constexpr bool QskBoxBorderMetrics::isEquidistant ( ) const
inlineconstexprnoexcept

Definition at line 137 of file QskBoxBorderMetrics.h.

◆ isNull()

constexpr bool QskBoxBorderMetrics::isNull ( ) const
inlineconstexprnoexcept

Definition at line 132 of file QskBoxBorderMetrics.h.

◆ left()

constexpr qreal QskBoxBorderMetrics::left ( ) const
inlineconstexprnoexcept

Definition at line 152 of file QskBoxBorderMetrics.h.

◆ operator!=()

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

Definition at line 126 of file QskBoxBorderMetrics.h.

◆ operator==()

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

Definition at line 120 of file QskBoxBorderMetrics.h.

◆ right()

constexpr qreal QskBoxBorderMetrics::right ( ) const
inlineconstexprnoexcept

Definition at line 162 of file QskBoxBorderMetrics.h.

◆ setBottom()

void QskBoxBorderMetrics::setBottom ( qreal  bottom)
inlinenoexcept

Definition at line 187 of file QskBoxBorderMetrics.h.

◆ setLeft()

void QskBoxBorderMetrics::setLeft ( qreal  left)
inlinenoexcept

Definition at line 172 of file QskBoxBorderMetrics.h.

◆ setRight()

void QskBoxBorderMetrics::setRight ( qreal  right)
inlinenoexcept

Definition at line 182 of file QskBoxBorderMetrics.h.

◆ setSizeMode()

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

Definition at line 39 of file QskBoxBorderMetrics.cpp.

◆ setTop()

void QskBoxBorderMetrics::setTop ( qreal  top)
inlinenoexcept

Definition at line 177 of file QskBoxBorderMetrics.h.

◆ setWidthAt()

void QskBoxBorderMetrics::setWidthAt ( Qt::Edges  edges,
qreal  width 
)
noexcept

Definition at line 52 of file QskBoxBorderMetrics.cpp.

◆ setWidths()

void QskBoxBorderMetrics::setWidths ( const QskMargins widths)
noexcept

Definition at line 44 of file QskBoxBorderMetrics.cpp.

◆ sizeMode()

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

Definition at line 192 of file QskBoxBorderMetrics.h.

◆ toAbsolute()

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

Definition at line 57 of file QskBoxBorderMetrics.cpp.

◆ top()

constexpr qreal QskBoxBorderMetrics::top ( ) const
inlineconstexprnoexcept

Definition at line 157 of file QskBoxBorderMetrics.h.

◆ widthAt()

qreal QskBoxBorderMetrics::widthAt ( Qt::Edge  edge) const
inlinenoexcept

Definition at line 147 of file QskBoxBorderMetrics.h.

◆ widths()

constexpr const QskMargins & QskBoxBorderMetrics::widths ( ) const
inlineconstexprnoexcept

Definition at line 142 of file QskBoxBorderMetrics.h.

Property Documentation

◆ bottom

qreal QskBoxBorderMetrics::bottom
readwrite

Definition at line 27 of file QskBoxBorderMetrics.h.

◆ left

qreal QskBoxBorderMetrics::left
readwrite

Definition at line 24 of file QskBoxBorderMetrics.h.

◆ right

qreal QskBoxBorderMetrics::right
readwrite

Definition at line 26 of file QskBoxBorderMetrics.h.

◆ sizeMode

Qt::SizeMode QskBoxBorderMetrics::sizeMode
readwrite

Definition at line 22 of file QskBoxBorderMetrics.h.

◆ top

qreal QskBoxBorderMetrics::top
readwrite

Definition at line 25 of file QskBoxBorderMetrics.h.

◆ widths

QskMargins QskBoxBorderMetrics::widths
readwrite

Definition at line 21 of file QskBoxBorderMetrics.h.