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

Detailed Description

Definition at line 22 of file QskMargins.h.

Inheritance diagram for QskMargins:

Properties

qreal left
 
qreal top
 
qreal right
 
qreal bottom
 

Public Member Functions

constexpr QskMargins (const QMarginsF &) noexcept
 
constexpr QskMargins (const QMargins &) noexcept
 
constexpr QskMargins (qreal left, qreal top, qreal right, qreal bottom) noexcept
 
constexpr QskMargins (qreal margin) noexcept
 
constexpr QskMargins (qreal horizontal, qreal vertical) noexcept
 
QskMargins mirrored (Qt::Orientations) const noexcept
 
constexpr QskMargins rotated () const noexcept
 
constexpr QskMargins translated (qreal dx, qreal dy) const noexcept
 
constexpr QskMargins grownBy (qreal dx, qreal dy) const noexcept
 
constexpr QskMargins shrunkBy (qreal dx, qreal dy) const noexcept
 
constexpr QskMargins expandedTo (const QskMargins &) const noexcept
 
constexpr QskMargins boundedTo (const QskMargins &) const noexcept
 
void setMargins (qreal margin) noexcept
 
void setMargins (qreal horizontal, qreal vertical) noexcept
 
void setMarginsAt (Qt::Edges, qreal) noexcept
 
qreal marginAt (Qt::Edge) const noexcept
 
constexpr qreal width () const noexcept
 
constexpr qreal height () const noexcept
 
constexpr qreal extent (Qt::Orientation) const noexcept
 
QskMargins interpolated (const QskMargins &, qreal progress) const noexcept
 
constexpr bool isExpanding () const noexcept
 
constexpr bool isEquidistant () const noexcept
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ QskMargins() [1/5]

constexpr QskMargins::QskMargins ( const QMarginsF &  margins)
inlineconstexprnoexcept

Definition at line 87 of file QskMargins.h.

◆ QskMargins() [2/5]

constexpr QskMargins::QskMargins ( const QMargins &  margins)
inlineconstexprnoexcept

Definition at line 92 of file QskMargins.h.

◆ QskMargins() [3/5]

constexpr QskMargins::QskMargins ( qreal  left,
qreal  top,
qreal  right,
qreal  bottom 
)
constexprnoexcept

Definition at line 81 of file QskMargins.h.

◆ QskMargins() [4/5]

constexpr QskMargins::QskMargins ( qreal  margin)
inlineconstexprnoexcept

Definition at line 70 of file QskMargins.h.

◆ QskMargins() [5/5]

constexpr QskMargins::QskMargins ( qreal  horizontal,
qreal  vertical 
)
inlineconstexprnoexcept

Definition at line 75 of file QskMargins.h.

Member Function Documentation

◆ boundedTo()

constexpr QskMargins QskMargins::boundedTo ( const QskMargins other) const
inlineconstexprnoexcept

Definition at line 161 of file QskMargins.h.

◆ expandedTo()

constexpr QskMargins QskMargins::expandedTo ( const QskMargins other) const
inlineconstexprnoexcept

Definition at line 151 of file QskMargins.h.

◆ extent()

constexpr qreal QskMargins::extent ( Qt::Orientation  orientation) const
inlineconstexprnoexcept

Definition at line 170 of file QskMargins.h.

◆ grownBy()

constexpr QskMargins QskMargins::grownBy ( qreal  dx,
qreal  dy 
) const
inlineconstexprnoexcept

Definition at line 141 of file QskMargins.h.

◆ height()

constexpr qreal QskMargins::height ( ) const
inlineconstexprnoexcept

Definition at line 180 of file QskMargins.h.

◆ interpolate()

QVariant QskMargins::interpolate ( const QskMargins m1,
const QskMargins m2,
qreal  progress 
)
staticnoexcept

Definition at line 48 of file QskMargins.cpp.

◆ interpolated()

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

Definition at line 42 of file QskMargins.cpp.

◆ isEquidistant()

constexpr bool QskMargins::isEquidistant ( ) const
inlineconstexprnoexcept

Definition at line 185 of file QskMargins.h.

◆ isExpanding()

constexpr bool QskMargins::isExpanding ( ) const
inlineconstexprnoexcept

Definition at line 102 of file QskMargins.h.

◆ marginAt()

qreal QskMargins::marginAt ( Qt::Edge  edge) const
noexcept

Definition at line 69 of file QskMargins.cpp.

◆ mirrored()

QskMargins QskMargins::mirrored ( Qt::Orientations  orientations) const
inlinenoexcept

Definition at line 112 of file QskMargins.h.

◆ rotated()

constexpr QskMargins QskMargins::rotated ( ) const
inlineconstexprnoexcept

Definition at line 131 of file QskMargins.h.

◆ setMargins() [1/2]

void QskMargins::setMargins ( qreal  horizontal,
qreal  vertical 
)
inlinenoexcept

Definition at line 107 of file QskMargins.h.

◆ setMargins() [2/2]

void QskMargins::setMargins ( qreal  margin)
inlinenoexcept

Definition at line 97 of file QskMargins.h.

◆ setMarginsAt()

void QskMargins::setMarginsAt ( Qt::Edges  edges,
qreal  value 
)
noexcept

Definition at line 54 of file QskMargins.cpp.

◆ shrunkBy()

constexpr QskMargins QskMargins::shrunkBy ( qreal  dx,
qreal  dy 
) const
inlineconstexprnoexcept

Definition at line 146 of file QskMargins.h.

◆ translated()

constexpr QskMargins QskMargins::translated ( qreal  dx,
qreal  dy 
) const
inlineconstexprnoexcept

Definition at line 136 of file QskMargins.h.

◆ width()

constexpr qreal QskMargins::width ( ) const
inlineconstexprnoexcept

Definition at line 175 of file QskMargins.h.

Property Documentation

◆ bottom

qreal QskMargins::bottom
readwrite

Definition at line 29 of file QskMargins.h.

◆ left

qreal QskMargins::left
readwrite

Definition at line 26 of file QskMargins.h.

◆ right

qreal QskMargins::right
readwrite

Definition at line 28 of file QskMargins.h.

◆ top

qreal QskMargins::top
readwrite

Definition at line 27 of file QskMargins.h.