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 131 of file QskItemAnchors.cpp.

◆ ~QskItemAnchors()

QskItemAnchors::~QskItemAnchors ( )

Definition at line 136 of file QskItemAnchors.cpp.

Member Function Documentation

◆ addAnchor()

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

Definition at line 275 of file QskItemAnchors.cpp.

◆ addAnchors()

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

Definition at line 256 of file QskItemAnchors.cpp.

◆ attachedItem()

QQuickItem * QskItemAnchors::attachedItem ( ) const

Definition at line 145 of file QskItemAnchors.cpp.

◆ centerOffset()

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

Definition at line 227 of file QskItemAnchors.cpp.

◆ clearAnchors()

void QskItemAnchors::clearAnchors ( )

Definition at line 332 of file QskItemAnchors.cpp.

◆ margins()

QMarginsF QskItemAnchors::margins ( ) const

Definition at line 150 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 140 of file QskItemAnchors.cpp.

◆ removeAnchor()

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

Definition at line 288 of file QskItemAnchors.cpp.

◆ setBorderAnchors()

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

Definition at line 350 of file QskItemAnchors.cpp.

◆ setCenterAnchors()

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

Definition at line 399 of file QskItemAnchors.cpp.

◆ setCenterOffset()

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

Definition at line 215 of file QskItemAnchors.cpp.

◆ setCenterOffsets()

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

Definition at line 205 of file QskItemAnchors.cpp.

◆ setMargins()

void QskItemAnchors::setMargins ( const QMarginsF &  margins)

Definition at line 166 of file QskItemAnchors.cpp.

◆ settledItem()

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

Definition at line 240 of file QskItemAnchors.cpp.

◆ settledItemAnchorPoint()

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

Definition at line 437 of file QskItemAnchors.cpp.