17 Q_PROPERTY( Policy horizontal READ horizontalPolicy WRITE setHorizontalPolicy )
18 Q_PROPERTY( Policy vertical READ verticalPolicy WRITE setVerticalPolicy )
27 ConstrainedFlag = 1 << 4
36 Preferred = GrowFlag | ShrinkFlag,
37 MinimumExpanding = GrowFlag | ExpandFlag,
38 Expanding = GrowFlag | ShrinkFlag | ExpandFlag,
40 Ignored = ShrinkFlag | GrowFlag | IgnoreFlag,
42 Constrained = ConstrainedFlag,
44 ConstrainedMinimum = ConstrainedFlag | Minimum,
45 ConstrainedMaximum = ConstrainedFlag | Maximum,
46 ConstrainedPreferred = ConstrainedFlag | Preferred,
47 ConstrainedMinimumExpanding = ConstrainedFlag | MinimumExpanding,
48 ConstrainedExpanding = ConstrainedFlag | Expanding
55 WidthForHeight = 1 << 0,
56 HeightForWidth = 1 << 1
61 Q_ENUM( ConstraintType )
64 constexpr QskSizePolicy( Policy horizontalPolicy, Policy verticalPolicy )
noexcept;
66 constexpr bool operator==(
const QskSizePolicy& )
const noexcept;
67 constexpr bool operator!=(
const QskSizePolicy& )
const noexcept;
69 void setHorizontalPolicy( Policy )
noexcept;
70 constexpr Policy horizontalPolicy()
const noexcept;
72 void setVerticalPolicy( Policy )
noexcept;
73 constexpr Policy verticalPolicy()
const noexcept;
75 void setPolicy( Qt::Orientation, Policy )
noexcept;
76 constexpr Policy policy( Qt::Orientation )
const noexcept;
78 ConstraintType constraintType()
const noexcept;
79 constexpr bool isConstrained( Qt::Orientation )
const noexcept;
81 Qt::SizeHint effectiveSizeHintType(
82 Qt::SizeHint, Qt::Orientation )
const noexcept;
85 void transpose()
noexcept;
88 unsigned char m_horizontalPolicy = Ignored;
89 unsigned char m_verticalPolicy = Ignored;