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

Detailed Description

Definition at line 40 of file QskItemAnchors.h.

Public Member Functions

 QskItemAnchors (QQuickItem *attachedItem=nullptr)
 
QQuickItem * attachedItem () const
 
QQuickItem * settledItem (Qt::AnchorPoint) const
 
Qt::AnchorPoint settledItemAnchorPoint (Qt::AnchorPoint) const
 
bool operator== (const QskItemAnchors &) const noexcept
 
bool operator!= (const QskItemAnchors &) const noexcept
 
QMarginsF margins () const
 
void setMargins (const QMarginsF &)
 
void setCenterOffsets (qreal horizontalOffset, qreal verticalOffset)
 
void setCenterOffset (Qt::Orientation, qreal offset)
 
qreal centerOffset (Qt::Orientation)
 
void addAnchor (Qt::AnchorPoint, QQuickItem *, Qt::AnchorPoint)
 
void addAnchors (Qt::Corner, QQuickItem *, Qt::Corner)
 
void removeAnchor (Qt::AnchorPoint)
 
void clearAnchors ()
 
void setBorderAnchors (QQuickItem *, Qt::Orientations=Qt::Horizontal|Qt::Vertical)
 
void setCenterAnchors (QQuickItem *, Qt::Orientations=Qt::Horizontal|Qt::Vertical)
 

Constructor & Destructor Documentation

◆ QskItemAnchors()

QskItemAnchors::QskItemAnchors ( QQuickItem *  attachedItem = nullptr)

Definition at line 132 of file QskItemAnchors.cpp.

◆ ~QskItemAnchors()

QskItemAnchors::~QskItemAnchors ( )

Definition at line 137 of file QskItemAnchors.cpp.

Member Function Documentation

◆ addAnchor()

void QskItemAnchors::addAnchor ( Qt::AnchorPoint  edge,
QQuickItem *  settledItem,
Qt::AnchorPoint  settledItemEdge 
)

Definition at line 276 of file QskItemAnchors.cpp.

◆ addAnchors()

void QskItemAnchors::addAnchors ( Qt::Corner  corner,
QQuickItem *  settledItem,
Qt::Corner  settledItemCorner 
)

Definition at line 257 of file QskItemAnchors.cpp.

◆ attachedItem()

QQuickItem * QskItemAnchors::attachedItem ( ) const

Definition at line 146 of file QskItemAnchors.cpp.

◆ centerOffset()

qreal QskItemAnchors::centerOffset ( Qt::Orientation  orientation)

Definition at line 228 of file QskItemAnchors.cpp.

◆ clearAnchors()

void QskItemAnchors::clearAnchors ( )

Definition at line 333 of file QskItemAnchors.cpp.

◆ margins()

QMarginsF QskItemAnchors::margins ( ) const

Definition at line 151 of file QskItemAnchors.cpp.

◆ operator!=()

bool QskItemAnchors::operator!= ( const QskItemAnchors other) const
inlinenoexcept

Definition at line 76 of file QskItemAnchors.h.

◆ operator==()

bool QskItemAnchors::operator== ( const QskItemAnchors other) const
noexcept

Definition at line 141 of file QskItemAnchors.cpp.

◆ removeAnchor()

void QskItemAnchors::removeAnchor ( Qt::AnchorPoint  edge)

Definition at line 289 of file QskItemAnchors.cpp.

◆ setBorderAnchors()

void QskItemAnchors::setBorderAnchors ( QQuickItem *  settledItem,
Qt::Orientations  orientations = Qt::Horizontal | Qt::Vertical 
)

Definition at line 351 of file QskItemAnchors.cpp.

◆ setCenterAnchors()

void QskItemAnchors::setCenterAnchors ( QQuickItem *  settledItem,
Qt::Orientations  orientations = Qt::Horizontal | Qt::Vertical 
)

Definition at line 400 of file QskItemAnchors.cpp.

◆ setCenterOffset()

void QskItemAnchors::setCenterOffset ( Qt::Orientation  orientation,
qreal  offset 
)

Definition at line 216 of file QskItemAnchors.cpp.

◆ setCenterOffsets()

void QskItemAnchors::setCenterOffsets ( qreal  horizontalOffset,
qreal  verticalOffset 
)

Definition at line 206 of file QskItemAnchors.cpp.

◆ setMargins()

void QskItemAnchors::setMargins ( const QMarginsF &  margins)

Definition at line 167 of file QskItemAnchors.cpp.

◆ settledItem()

QQuickItem * QskItemAnchors::settledItem ( Qt::AnchorPoint  edge) const

Definition at line 241 of file QskItemAnchors.cpp.

◆ settledItemAnchorPoint()

Qt::AnchorPoint QskItemAnchors::settledItemAnchorPoint ( Qt::AnchorPoint  edge) const

Definition at line 438 of file QskItemAnchors.cpp.