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

Detailed Description

Definition at line 14 of file QskLayoutMetrics.h.

Properties

qreal minimum
 
qreal preferred
 
qreal maximum
 

Static Public Attributes

static constexpr qreal unlimited = std::numeric_limits< float >::max()
 

Public Member Functions

constexpr QskLayoutMetrics (qreal minimum, qreal preferred, qreal maximum) noexcept
 
void normalize () noexcept
 
QskLayoutMetrics normalized () const noexcept
 
constexpr bool isDefault () const noexcept
 
qreal metric (int which) const noexcept
 
void setMetric (int which, qreal metric) noexcept
 
constexpr bool operator== (const QskLayoutMetrics &) const noexcept
 
constexpr bool operator!= (const QskLayoutMetrics &) const noexcept
 
void setMinimum (qreal value) noexcept
 
constexpr qreal minimum () const noexcept
 
void setPreferred (qreal value) noexcept
 
constexpr qreal preferred () const noexcept
 
void setMaximum (qreal value) noexcept
 
constexpr qreal maximum () const noexcept
 
void setMetrics (qreal minimum, qreal preferred, qreal maximum) noexcept
 
void expandTo (const QskLayoutMetrics &) noexcept
 
void expandMinimum (qreal value) noexcept
 
void expandPreferred (qreal value) noexcept
 
void expandMaximum (qreal value) noexcept
 

Static Public Member Functions

static qreal combined (int which, qreal value1, qreal value2) noexcept
 

Constructor & Destructor Documentation

◆ QskLayoutMetrics()

QT_WARNING_PUSH constexpr QskLayoutMetrics::QskLayoutMetrics ( qreal  minimum,
qreal  preferred,
qreal  maximum 
)
inlineconstexprnoexcept

Definition at line 70 of file QskLayoutMetrics.h.

Member Function Documentation

◆ combined()

qreal QskLayoutMetrics::combined ( int  which,
qreal  value1,
qreal  value2 
)
staticnoexcept

Definition at line 57 of file QskLayoutMetrics.cpp.

◆ expandMaximum()

void QskLayoutMetrics::expandMaximum ( qreal  value)
inlinenoexcept

Definition at line 120 of file QskLayoutMetrics.h.

◆ expandMinimum()

void QskLayoutMetrics::expandMinimum ( qreal  value)
inlinenoexcept

Definition at line 108 of file QskLayoutMetrics.h.

◆ expandPreferred()

void QskLayoutMetrics::expandPreferred ( qreal  value)
inlinenoexcept

Definition at line 114 of file QskLayoutMetrics.h.

◆ expandTo()

void QskLayoutMetrics::expandTo ( const QskLayoutMetrics other)
noexcept

Definition at line 43 of file QskLayoutMetrics.cpp.

◆ isDefault()

constexpr bool QskLayoutMetrics::isDefault ( ) const
inlineconstexprnoexcept

Definition at line 151 of file QskLayoutMetrics.h.

◆ maximum()

constexpr qreal QskLayoutMetrics::maximum ( ) const
inlineconstexprnoexcept

Definition at line 98 of file QskLayoutMetrics.h.

◆ metric()

qreal QskLayoutMetrics::metric ( int  which) const
inlinenoexcept

Definition at line 134 of file QskLayoutMetrics.h.

◆ minimum()

constexpr qreal QskLayoutMetrics::minimum ( ) const
inlineconstexprnoexcept

Definition at line 78 of file QskLayoutMetrics.h.

◆ normalize()

void QskLayoutMetrics::normalize ( )
noexcept

Definition at line 50 of file QskLayoutMetrics.cpp.

◆ normalized()

QskLayoutMetrics QskLayoutMetrics::normalized ( ) const
inlinenoexcept

Definition at line 171 of file QskLayoutMetrics.h.

◆ operator!=()

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

Definition at line 165 of file QskLayoutMetrics.h.

◆ operator==()

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

Definition at line 157 of file QskLayoutMetrics.h.

◆ preferred()

constexpr qreal QskLayoutMetrics::preferred ( ) const
inlineconstexprnoexcept

Definition at line 88 of file QskLayoutMetrics.h.

◆ setMaximum()

void QskLayoutMetrics::setMaximum ( qreal  value)
inlinenoexcept

Definition at line 103 of file QskLayoutMetrics.h.

◆ setMetric()

void QskLayoutMetrics::setMetric ( int  which,
qreal  metric 
)
noexcept

Definition at line 22 of file QskLayoutMetrics.cpp.

◆ setMetrics()

void QskLayoutMetrics::setMetrics ( qreal  minimum,
qreal  preferred,
qreal  maximum 
)
inlinenoexcept

Definition at line 126 of file QskLayoutMetrics.h.

◆ setMinimum()

void QskLayoutMetrics::setMinimum ( qreal  value)
inlinenoexcept

Definition at line 83 of file QskLayoutMetrics.h.

◆ setPreferred()

void QskLayoutMetrics::setPreferred ( qreal  value)
inlinenoexcept

Definition at line 93 of file QskLayoutMetrics.h.

Member Data Documentation

◆ unlimited

constexpr qreal QskLayoutMetrics::unlimited = std::numeric_limits< float >::max()
staticconstexpr

Definition at line 54 of file QskLayoutMetrics.h.

Property Documentation

◆ maximum

qreal QskLayoutMetrics::maximum
readwrite

Definition at line 20 of file QskLayoutMetrics.h.

◆ minimum

qreal QskLayoutMetrics::minimum
readwrite

Definition at line 18 of file QskLayoutMetrics.h.

◆ preferred

qreal QskLayoutMetrics::preferred
readwrite

Definition at line 19 of file QskLayoutMetrics.h.