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

Detailed Description

Definition at line 16 of file QskIntervalF.h.

Properties

qreal lowerBound
 
qreal upperBound
 
qreal length
 

Public Member Functions

constexpr QskIntervalF (qreal lowerBound, qreal upperBound) noexcept
 
void setInterval (qreal lowerBound, qreal upperBound) noexcept
 
constexpr bool operator== (const QskIntervalF &) const noexcept
 
constexpr bool operator!= (const QskIntervalF &) const noexcept
 
constexpr qreal lowerBound () const noexcept
 
void setLowerBound (qreal) noexcept
 
constexpr qreal upperBound () const noexcept
 
void setUpperBound (qreal) noexcept
 
void spanFromLowerBound (qreal) noexcept
 
void spanFromUpperBound (qreal) noexcept
 
constexpr qreal length () const noexcept
 
void setLength (qreal) noexcept
 
constexpr bool contains (qreal value) const noexcept
 
constexpr bool contains (const QskIntervalF &) const noexcept
 
constexpr bool isBoundary (qreal value) const noexcept
 
bool fuzzyContains (qreal value) const
 
bool fuzzyContains (const QskIntervalF &) const
 
bool fuzzyIsBoundary (qreal value) const
 
void translate (qreal offset) noexcept
 
constexpr QskIntervalF translated (qreal offset) const noexcept
 
bool intersects (const QskIntervalF &) const noexcept
 
QskIntervalF intersected (const QskIntervalF &) const noexcept
 
void unite (const QskIntervalF &) noexcept
 
QskIntervalF united (const QskIntervalF &) const noexcept
 
void extend (qreal value) noexcept
 
QskIntervalF extended (qreal value) const noexcept
 
QskIntervalF operator| (const QskIntervalF &) const noexcept
 
QskIntervalF operator& (const QskIntervalF &) const noexcept
 
QskIntervalFoperator|= (const QskIntervalF &) noexcept
 
QskIntervalFoperator&= (const QskIntervalF &) noexcept
 
QskIntervalF operator| (qreal) const noexcept
 
QskIntervalFoperator|= (qreal) noexcept
 
QskIntervalF fuzzyAligned (qreal stepSize) const
 
constexpr bool isValid () const noexcept
 
constexpr bool isNull () const noexcept
 
constexpr bool isEmpty () const noexcept
 
void invalidate () noexcept
 
QskIntervalF interpolated (const QskIntervalF &, qreal progress) const noexcept
 

Static Public Member Functions

static constexpr QskIntervalF normalized (qreal value1, qreal value2) noexcept
 
static QRectF toRect (const QskIntervalF &, const QskIntervalF &) noexcept
 
static QVariant interpolate (const QskIntervalF &, const QskIntervalF &, qreal progress) noexcept
 

Constructor & Destructor Documentation

◆ QskIntervalF()

QT_WARNING_PUSH constexpr QskIntervalF::QskIntervalF ( qreal  lowerBound,
qreal  upperBound 
)
inlineconstexprnoexcept

Definition at line 106 of file QskIntervalF.h.

Member Function Documentation

◆ contains() [1/2]

constexpr bool QskIntervalF::contains ( const QskIntervalF interval) const
inlineconstexprnoexcept

Definition at line 174 of file QskIntervalF.h.

◆ contains() [2/2]

constexpr bool QskIntervalF::contains ( qreal  value) const
inlineconstexprnoexcept

Definition at line 169 of file QskIntervalF.h.

◆ extend()

void QskIntervalF::extend ( qreal  value)
noexcept

Definition at line 132 of file QskIntervalF.cpp.

◆ extended()

QskIntervalF QskIntervalF::extended ( qreal  value) const
noexcept

Definition at line 149 of file QskIntervalF.cpp.

◆ fuzzyAligned()

QskIntervalF QskIntervalF::fuzzyAligned ( qreal  stepSize) const

Definition at line 190 of file QskIntervalF.cpp.

◆ fuzzyContains() [1/2]

bool QskIntervalF::fuzzyContains ( const QskIntervalF interval) const

Definition at line 228 of file QskIntervalF.cpp.

◆ fuzzyContains() [2/2]

bool QskIntervalF::fuzzyContains ( qreal  value) const

Definition at line 214 of file QskIntervalF.cpp.

◆ fuzzyIsBoundary()

bool QskIntervalF::fuzzyIsBoundary ( qreal  value) const

Definition at line 248 of file QskIntervalF.cpp.

◆ interpolate()

QVariant QskIntervalF::interpolate ( const QskIntervalF intv1,
const QskIntervalF intv2,
qreal  progress 
)
staticnoexcept

Definition at line 42 of file QskIntervalF.cpp.

◆ interpolated()

QskIntervalF QskIntervalF::interpolated ( const QskIntervalF to,
qreal  progress 
) const
noexcept

Definition at line 36 of file QskIntervalF.cpp.

◆ intersected()

QskIntervalF QskIntervalF::intersected ( const QskIntervalF other) const
noexcept

Definition at line 95 of file QskIntervalF.cpp.

◆ intersects()

bool QskIntervalF::intersects ( const QskIntervalF other) const
noexcept

Definition at line 121 of file QskIntervalF.cpp.

◆ invalidate()

void QskIntervalF::invalidate ( )
inlinenoexcept

Definition at line 163 of file QskIntervalF.h.

◆ isBoundary()

constexpr bool QskIntervalF::isBoundary ( qreal  value) const
inlineconstexprnoexcept

Definition at line 180 of file QskIntervalF.h.

◆ isEmpty()

constexpr bool QskIntervalF::isEmpty ( ) const
inlineconstexprnoexcept

Definition at line 158 of file QskIntervalF.h.

◆ isNull()

constexpr bool QskIntervalF::isNull ( ) const
inlineconstexprnoexcept

Definition at line 153 of file QskIntervalF.h.

◆ isValid()

constexpr bool QskIntervalF::isValid ( ) const
inlineconstexprnoexcept

Definition at line 148 of file QskIntervalF.h.

◆ length()

constexpr qreal QskIntervalF::length ( ) const
inlineconstexprnoexcept

Definition at line 138 of file QskIntervalF.h.

◆ lowerBound()

constexpr qreal QskIntervalF::lowerBound ( ) const
inlineconstexprnoexcept

Definition at line 128 of file QskIntervalF.h.

◆ normalized()

constexpr QskIntervalF QskIntervalF::normalized ( qreal  value1,
qreal  value2 
)
inlinestaticconstexprnoexcept

Definition at line 196 of file QskIntervalF.h.

◆ operator!=()

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

Definition at line 229 of file QskIntervalF.h.

◆ operator&()

QskIntervalF QskIntervalF::operator& ( const QskIntervalF other) const
inlinenoexcept

Definition at line 201 of file QskIntervalF.h.

◆ operator&=()

QskIntervalF & QskIntervalF::operator&= ( const QskIntervalF other)
inlinenoexcept

Definition at line 217 of file QskIntervalF.h.

◆ operator==()

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

Definition at line 223 of file QskIntervalF.h.

◆ operator|() [1/2]

QskIntervalF QskIntervalF::operator| ( const QskIntervalF other) const
inlinenoexcept

Definition at line 206 of file QskIntervalF.h.

◆ operator|() [2/2]

QskIntervalF QskIntervalF::operator| ( qreal  value) const
inlinenoexcept

Definition at line 234 of file QskIntervalF.h.

◆ operator|=() [1/2]

QskIntervalF & QskIntervalF::operator|= ( const QskIntervalF other)
inlinenoexcept

Definition at line 211 of file QskIntervalF.h.

◆ operator|=() [2/2]

QskIntervalF & QskIntervalF::operator|= ( qreal  value)
inlinenoexcept

Definition at line 239 of file QskIntervalF.h.

◆ setInterval()

void QskIntervalF::setInterval ( qreal  lowerBound,
qreal  upperBound 
)
inlinenoexcept

Definition at line 112 of file QskIntervalF.h.

◆ setLength()

void QskIntervalF::setLength ( qreal  length)
inlinenoexcept

Definition at line 143 of file QskIntervalF.h.

◆ setLowerBound()

void QskIntervalF::setLowerBound ( qreal  value)
inlinenoexcept

Definition at line 118 of file QskIntervalF.h.

◆ setUpperBound()

void QskIntervalF::setUpperBound ( qreal  value)
inlinenoexcept

Definition at line 123 of file QskIntervalF.h.

◆ spanFromLowerBound()

void QskIntervalF::spanFromLowerBound ( qreal  value)
noexcept

Definition at line 160 of file QskIntervalF.cpp.

◆ spanFromUpperBound()

void QskIntervalF::spanFromUpperBound ( qreal  value)
noexcept

Definition at line 175 of file QskIntervalF.cpp.

◆ toRect()

QRectF QskIntervalF::toRect ( const QskIntervalF intervalX,
const QskIntervalF intervalY 
)
staticnoexcept

Definition at line 254 of file QskIntervalF.cpp.

◆ translate()

void QskIntervalF::translate ( qreal  offset)
inlinenoexcept

Definition at line 185 of file QskIntervalF.h.

◆ translated()

constexpr QskIntervalF QskIntervalF::translated ( qreal  offset) const
inlineconstexprnoexcept

Definition at line 191 of file QskIntervalF.h.

◆ unite()

void QskIntervalF::unite ( const QskIntervalF other)
noexcept

Definition at line 48 of file QskIntervalF.cpp.

◆ united()

QskIntervalF QskIntervalF::united ( const QskIntervalF other) const
noexcept

Definition at line 74 of file QskIntervalF.cpp.

◆ upperBound()

constexpr qreal QskIntervalF::upperBound ( ) const
inlineconstexprnoexcept

Definition at line 133 of file QskIntervalF.h.

Property Documentation

◆ length

qreal QskIntervalF::length
read

Definition at line 22 of file QskIntervalF.h.

◆ lowerBound

qreal QskIntervalF::lowerBound
readwrite

Definition at line 20 of file QskIntervalF.h.

◆ upperBound

qreal QskIntervalF::upperBound
readwrite

Definition at line 21 of file QskIntervalF.h.