![]() |
Qt 6.x
The Qt SDK
|
#include <qquickanchors_p_p.h>
Static Public Member Functions | |
static QQuickAnchorsPrivate * | get (QQuickAnchors *o) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 46 of file qquickanchors_p_p.h.
|
inline |
Definition at line 50 of file qquickanchors_p_p.h.
void QQuickAnchorsPrivate::addDepend | ( | QQuickItem * | item | ) |
Definition at line 289 of file qquickanchors.cpp.
References calculateDependency(), componentComplete, QQuickItemPrivate::get(), and item.
Referenced by updateOnComplete().
|
inlineoverridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 112 of file qquickanchors_p_p.h.
bool QQuickAnchorsPrivate::calcStretch | ( | QQuickItem * | edge1Item, |
QQuickAnchors::Anchor | edge1Line, | ||
QQuickItem * | edge2Item, | ||
QQuickAnchors::Anchor | edge2Line, | ||
qreal | offset1, | ||
qreal | offset2, | ||
QQuickAnchors::Anchor | line, | ||
qreal & | stretch | ||
) | const |
Definition at line 540 of file qquickanchors.cpp.
References item, line, position(), and readParentItem().
Referenced by updateHorizontalAnchors(), and updateVerticalAnchors().
QQuickGeometryChange QQuickAnchorsPrivate::calculateDependency | ( | QQuickItem * | controlItem | ) | const |
Definition at line 244 of file qquickanchors.cpp.
References QQuickAnchors::BaselineAnchor, baselineAnchorItem, QQuickAnchors::BottomAnchor, bottomAnchorItem, centerIn, fill, QQuickAnchors::HCenterAnchor, hCenterAnchorItem, inDestructor, item, QQuickAnchors::LeftAnchor, leftAnchorItem, readParentItem(), QQuickAnchors::RightAnchor, rightAnchorItem, QQuickGeometryChange::setAllChanged(), QQuickGeometryChange::setHeightChange(), QQuickGeometryChange::setHorizontalChange(), QQuickGeometryChange::setSizeChange(), QQuickGeometryChange::setVerticalChange(), QQuickGeometryChange::setWidthChange(), QQuickAnchors::TopAnchor, topAnchorItem, usedAnchors, QQuickAnchors::VCenterAnchor, and vCenterAnchorItem.
Referenced by addDepend(), and remDepend().
void QQuickAnchorsPrivate::centerInChanged | ( | ) |
Definition at line 178 of file qquickanchors.cpp.
References centerIn, fill, hcenter(), hCenterOffset, isItemComplete(), item, qmlWarning(), readParentItem(), setItemPos(), updatingCenterIn, vcenter(), vCenterOffset, QQuickItem::x, and QQuickItem::y.
Referenced by itemGeometryChanged(), QQuickItemPrivate::setLayoutMirror(), and update().
bool QQuickAnchorsPrivate::checkHAnchorValid | ( | QQuickAnchorLine | anchor | ) | const |
Definition at line 1308 of file qquickanchors.cpp.
References QQuickAnchorLine::anchorLine, QQuickAnchorLine::item, item, qmlWarning(), readParentItem(), and QQuickAnchors::Vertical_Mask.
bool QQuickAnchorsPrivate::checkHValid | ( | ) | const |
Definition at line 1296 of file qquickanchors.cpp.
References QQuickAnchors::HCenterAnchor, item, QQuickAnchors::LeftAnchor, qmlWarning(), QQuickAnchors::RightAnchor, and usedAnchors.
bool QQuickAnchorsPrivate::checkVAnchorValid | ( | QQuickAnchorLine | anchor | ) | const |
Definition at line 1346 of file qquickanchors.cpp.
References QQuickAnchorLine::anchorLine, QQuickAnchors::Horizontal_Mask, QQuickAnchorLine::item, item, qmlWarning(), and readParentItem().
bool QQuickAnchorsPrivate::checkVValid | ( | ) | const |
Definition at line 1328 of file qquickanchors.cpp.
References QQuickAnchors::BaselineAnchor, QQuickAnchors::BottomAnchor, item, qmlWarning(), QQuickAnchors::TopAnchor, usedAnchors, and QQuickAnchors::VCenterAnchor.
void QQuickAnchorsPrivate::clearItem | ( | QQuickItem * | item | ) |
Definition at line 206 of file qquickanchors.cpp.
References baselineAnchorItem, bottomAnchorItem, centerIn, fill, hCenterAnchorItem, item, leftAnchorItem, rightAnchorItem, topAnchorItem, usedAnchors, and vCenterAnchorItem.
Referenced by QQuickItem::~QQuickItem().
void QQuickAnchorsPrivate::fillChanged | ( | ) |
Definition at line 151 of file qquickanchors.cpp.
References bottomMargin, fill, isItemComplete(), item, leftMargin, qmlWarning(), readHeight(), readParentItem(), readWidth(), readX(), readY(), rightMargin, setItemPos(), setItemSize(), topMargin, and updatingFill.
Referenced by itemGeometryChanged(), QQuickItemPrivate::setLayoutMirror(), and update().
|
inlinestatic |
Definition at line 179 of file qquickanchors_p_p.h.
References QObjectPrivate::get(), and o.
Referenced by QQuickItem::componentComplete(), QQuickItem::geometryChange(), hcenter(), QQuickItem::setBaselineOffset(), QQuickItemPrivate::setLayoutMirror(), and vcenter().
bool QQuickAnchorsPrivate::isItemComplete | ( | ) | const |
Definition at line 336 of file qquickanchors.cpp.
References componentComplete.
Referenced by centerInChanged(), fillChanged(), itemGeometryChanged(), update(), updateHorizontalAnchors(), and updateVerticalAnchors().
bool QQuickAnchorsPrivate::isMirrored | ( | ) | const |
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 451 of file qquickanchors.cpp.
References centerIn, centerInChanged(), fill, fillChanged(), QQuickAnchors::Horizontal_Mask, QQuickGeometryChange::horizontalChange(), isItemComplete(), updateHorizontalAnchors(), updateVerticalAnchors(), usedAnchors, QQuickAnchors::Vertical_Mask, and QQuickGeometryChange::verticalChange().
void QQuickAnchorsPrivate::remDepend | ( | QQuickItem * | item | ) |
Definition at line 298 of file qquickanchors.cpp.
References calculateDependency(), componentComplete, QQuickItemPrivate::get(), and item.
Definition at line 353 of file qquickanchors.cpp.
References item, QQuickItem::setHeight(), and updatingMe.
Referenced by updateVerticalAnchors().
Definition at line 381 of file qquickanchors.cpp.
References item, QQuickItem::setPosition(), and updatingMe.
Referenced by centerInChanged(), and fillChanged().
Definition at line 388 of file qquickanchors.cpp.
References item, QQuickItem::setSize(), and updatingMe.
Referenced by fillChanged().
Definition at line 360 of file qquickanchors.cpp.
References item, QQuickItem::setWidth(), and updatingMe.
Referenced by updateHorizontalAnchors().
Definition at line 367 of file qquickanchors.cpp.
References item, QQuickItem::setX(), and updatingMe.
Referenced by updateHorizontalAnchors().
Definition at line 374 of file qquickanchors.cpp.
References item, QQuickItem::setY(), and updatingMe.
Referenced by updateVerticalAnchors().
void QQuickAnchorsPrivate::update | ( | ) |
Definition at line 434 of file qquickanchors.cpp.
References centerIn, centerInChanged(), fill, fillChanged(), QQuickAnchors::Horizontal_Mask, isItemComplete(), updateHorizontalAnchors(), updateVerticalAnchors(), usedAnchors, and QQuickAnchors::Vertical_Mask.
Referenced by QQuickItem::~QQuickItem(), updateMe(), and updateOnComplete().
void QQuickAnchorsPrivate::updateHorizontalAnchors | ( | ) |
Definition at line 658 of file qquickanchors.cpp.
References adjustedPosition(), calcStretch(), centerIn, fill, hcenter(), QQuickAnchors::HCenterAnchor, hCenterAnchorItem, hCenterAnchorLine, hCenterOffset, isItemComplete(), item, QQuickAnchors::LeftAnchor, leftAnchorItem, leftAnchorLine, leftMargin, position(), qmlWarning(), readParentItem(), readWidth(), reverseAnchorLine(), QQuickAnchors::RightAnchor, rightAnchorItem, rightAnchorLine, rightMargin, setItemWidth(), setItemX(), updatingHorizontalAnchor, and usedAnchors.
Referenced by itemGeometryChanged(), QQuickItemPrivate::setLayoutMirror(), and update().
void QQuickAnchorsPrivate::updateMe | ( | ) |
Definition at line 395 of file qquickanchors.cpp.
References update(), and updatingMe.
Referenced by QQuickItem::geometryChange().
void QQuickAnchorsPrivate::updateOnComplete | ( | ) |
Definition at line 405 of file qquickanchors.cpp.
References addDepend(), baselineAnchorItem, bottomAnchorItem, centerIn, fill, hCenterAnchorItem, i, leftAnchorItem, rightAnchorItem, topAnchorItem, update(), and vCenterAnchorItem.
Referenced by QQuickItem::componentComplete().
void QQuickAnchorsPrivate::updateVerticalAnchors | ( | ) |
Definition at line 571 of file qquickanchors.cpp.
References adjustedPosition(), QQuickAnchors::BaselineAnchor, baselineAnchorItem, baselineAnchorLine, baselineOffset, QQuickAnchors::BottomAnchor, bottomAnchorItem, bottomAnchorLine, bottomMargin, calcStretch(), centerIn, fill, isItemComplete(), item, position(), Q_UNLIKELY, qmlWarning(), readBaselineOffset(), readHeight(), readParentItem(), setItemHeight(), setItemY(), QQuickAnchors::TopAnchor, topAnchorItem, topAnchorLine, topMargin, updatingVerticalAnchor, usedAnchors, vcenter(), QQuickAnchors::VCenterAnchor, vCenterAnchorItem, vCenterAnchorLine, and vCenterOffset.
Referenced by itemGeometryChanged(), QQuickItem::setBaselineOffset(), and update().
QQuickItem* QQuickAnchorsPrivate::baselineAnchorItem |
Definition at line 148 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateOnComplete(), and updateVerticalAnchors().
QQuickAnchors::Anchor QQuickAnchorsPrivate::baselineAnchorLine |
Definition at line 166 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
qreal QQuickAnchorsPrivate::baselineOffset |
Definition at line 135 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
QQuickItem* QQuickAnchorsPrivate::bottomAnchorItem |
Definition at line 145 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateOnComplete(), and updateVerticalAnchors().
QQuickAnchors::Anchor QQuickAnchorsPrivate::bottomAnchorLine |
Definition at line 159 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
qreal QQuickAnchorsPrivate::bottomMargin |
Definition at line 131 of file qquickanchors_p_p.h.
Referenced by fillChanged(), and updateVerticalAnchors().
uint QQuickAnchorsPrivate::bottomMarginExplicit |
Definition at line 160 of file qquickanchors_p_p.h.
uint QQuickAnchorsPrivate::centerAligned |
Definition at line 167 of file qquickanchors_p_p.h.
QQuickItem* QQuickAnchorsPrivate::centerIn |
Definition at line 140 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), centerInChanged(), clearItem(), itemGeometryChanged(), update(), updateHorizontalAnchors(), updateOnComplete(), and updateVerticalAnchors().
uint QQuickAnchorsPrivate::componentComplete |
Definition at line 169 of file qquickanchors_p_p.h.
Referenced by addDepend(), isItemComplete(), and remDepend().
QQuickItem* QQuickAnchorsPrivate::fill |
Definition at line 139 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), centerInChanged(), clearItem(), fillChanged(), itemGeometryChanged(), update(), updateHorizontalAnchors(), updateOnComplete(), and updateVerticalAnchors().
QQuickItem* QQuickAnchorsPrivate::hCenterAnchorItem |
Definition at line 147 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateHorizontalAnchors(), and updateOnComplete().
QQuickAnchors::Anchor QQuickAnchorsPrivate::hCenterAnchorLine |
Definition at line 164 of file qquickanchors_p_p.h.
Referenced by updateHorizontalAnchors().
qreal QQuickAnchorsPrivate::hCenterOffset |
Definition at line 134 of file qquickanchors_p_p.h.
Referenced by centerInChanged(), and updateHorizontalAnchors().
uint QQuickAnchorsPrivate::inDestructor |
Definition at line 165 of file qquickanchors_p_p.h.
Referenced by calculateDependency().
QQuickItem* QQuickAnchorsPrivate::item |
Definition at line 137 of file qquickanchors_p_p.h.
Referenced by QQuickItem::~QQuickItem(), addDepend(), calcStretch(), calculateDependency(), centerInChanged(), checkHAnchorValid(), checkHValid(), checkVAnchorValid(), checkVValid(), clearItem(), fillChanged(), remDepend(), setItemHeight(), setItemPos(), setItemSize(), setItemWidth(), setItemX(), setItemY(), updateHorizontalAnchors(), and updateVerticalAnchors().
QQuickItem* QQuickAnchorsPrivate::leftAnchorItem |
Definition at line 142 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateHorizontalAnchors(), and updateOnComplete().
QQuickAnchors::Anchor QQuickAnchorsPrivate::leftAnchorLine |
Definition at line 153 of file qquickanchors_p_p.h.
Referenced by updateHorizontalAnchors().
qreal QQuickAnchorsPrivate::leftMargin |
Definition at line 128 of file qquickanchors_p_p.h.
Referenced by fillChanged(), and updateHorizontalAnchors().
uint QQuickAnchorsPrivate::leftMarginExplicit |
Definition at line 154 of file qquickanchors_p_p.h.
qreal QQuickAnchorsPrivate::margins |
Definition at line 132 of file qquickanchors_p_p.h.
QQuickItem* QQuickAnchorsPrivate::rightAnchorItem |
Definition at line 143 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateHorizontalAnchors(), and updateOnComplete().
QQuickAnchors::Anchor QQuickAnchorsPrivate::rightAnchorLine |
Definition at line 155 of file qquickanchors_p_p.h.
Referenced by updateHorizontalAnchors().
qreal QQuickAnchorsPrivate::rightMargin |
Definition at line 129 of file qquickanchors_p_p.h.
Referenced by fillChanged(), and updateHorizontalAnchors().
uint QQuickAnchorsPrivate::rightMarginExplicit |
Definition at line 156 of file qquickanchors_p_p.h.
QQuickItem* QQuickAnchorsPrivate::topAnchorItem |
Definition at line 144 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateOnComplete(), and updateVerticalAnchors().
QQuickAnchors::Anchor QQuickAnchorsPrivate::topAnchorLine |
Definition at line 157 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
qreal QQuickAnchorsPrivate::topMargin |
Definition at line 130 of file qquickanchors_p_p.h.
Referenced by fillChanged(), and updateVerticalAnchors().
uint QQuickAnchorsPrivate::topMarginExplicit |
Definition at line 158 of file qquickanchors_p_p.h.
qint8 QQuickAnchorsPrivate::updatingCenterIn |
Definition at line 174 of file qquickanchors_p_p.h.
Referenced by centerInChanged().
qint8 QQuickAnchorsPrivate::updatingFill |
Definition at line 173 of file qquickanchors_p_p.h.
Referenced by fillChanged().
qint8 QQuickAnchorsPrivate::updatingHorizontalAnchor |
Definition at line 175 of file qquickanchors_p_p.h.
Referenced by updateHorizontalAnchors().
uint QQuickAnchorsPrivate::updatingMe |
Definition at line 163 of file qquickanchors_p_p.h.
Referenced by setItemHeight(), setItemPos(), setItemSize(), setItemWidth(), setItemX(), setItemY(), and updateMe().
qint8 QQuickAnchorsPrivate::updatingVerticalAnchor |
Definition at line 176 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
uint QQuickAnchorsPrivate::usedAnchors |
Definition at line 168 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), checkHValid(), checkVValid(), clearItem(), itemGeometryChanged(), update(), updateHorizontalAnchors(), and updateVerticalAnchors().
QQuickItem* QQuickAnchorsPrivate::vCenterAnchorItem |
Definition at line 146 of file qquickanchors_p_p.h.
Referenced by calculateDependency(), clearItem(), updateOnComplete(), and updateVerticalAnchors().
QQuickAnchors::Anchor QQuickAnchorsPrivate::vCenterAnchorLine |
Definition at line 162 of file qquickanchors_p_p.h.
Referenced by updateVerticalAnchors().
qreal QQuickAnchorsPrivate::vCenterOffset |
Definition at line 133 of file qquickanchors_p_p.h.
Referenced by centerInChanged(), and updateVerticalAnchors().