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

Detailed Description

Definition at line 13 of file QskSizePolicy.h.

Public Types

enum  Flag {
  GrowFlag = 1 << 0 , ExpandFlag = 1 << 1 , ShrinkFlag = 1 << 2 , IgnoreFlag = 1 << 3 ,
  ConstrainedFlag = 1 << 4
}
 
enum  Policy {
  Fixed = 0 , Minimum = GrowFlag , Maximum = ShrinkFlag , Preferred = GrowFlag | ShrinkFlag ,
  MinimumExpanding = GrowFlag | ExpandFlag , Expanding = GrowFlag | ShrinkFlag | ExpandFlag , Ignored = ShrinkFlag | GrowFlag | IgnoreFlag , Constrained = ConstrainedFlag ,
  ConstrainedMinimum = ConstrainedFlag | Minimum , ConstrainedMaximum = ConstrainedFlag | Maximum , ConstrainedPreferred = ConstrainedFlag | Preferred , ConstrainedMinimumExpanding = ConstrainedFlag | MinimumExpanding ,
  ConstrainedExpanding = ConstrainedFlag | Expanding
}
 
enum  ConstraintType { Unconstrained = 0 , WidthForHeight = 1 << 0 , HeightForWidth = 1 << 1 }
 

Properties

Policy horizontal
 
Policy vertical
 

Public Member Functions

constexpr QskSizePolicy (Policy horizontalPolicy, Policy verticalPolicy) noexcept
 
constexpr bool operator== (const QskSizePolicy &) const noexcept
 
constexpr bool operator!= (const QskSizePolicy &) const noexcept
 
void setHorizontalPolicy (Policy) noexcept
 
constexpr Policy horizontalPolicy () const noexcept
 
void setVerticalPolicy (Policy) noexcept
 
constexpr Policy verticalPolicy () const noexcept
 
void setPolicy (Qt::Orientation, Policy) noexcept
 
constexpr Policy policy (Qt::Orientation) const noexcept
 
ConstraintType constraintType () const noexcept
 
constexpr bool isConstrained (Qt::Orientation) const noexcept
 
Qt::SizeHint effectiveSizeHintType (Qt::SizeHint, Qt::Orientation) const noexcept
 
constexpr QskSizePolicy transposed () const noexcept
 
void transpose () noexcept
 

Member Enumeration Documentation

◆ ConstraintType

enum QskSizePolicy::ConstraintType

Definition at line 51 of file QskSizePolicy.h.

◆ Flag

enum QskSizePolicy::Flag

Definition at line 21 of file QskSizePolicy.h.

◆ Policy

enum QskSizePolicy::Policy

Definition at line 30 of file QskSizePolicy.h.

Constructor & Destructor Documentation

◆ QskSizePolicy()

constexpr QskSizePolicy::QskSizePolicy ( Policy  horizontalPolicy,
Policy  verticalPolicy 
)
inlineconstexprnoexcept

Definition at line 92 of file QskSizePolicy.h.

Member Function Documentation

◆ constraintType()

QskSizePolicy::ConstraintType QskSizePolicy::constraintType ( ) const
noexcept

Definition at line 25 of file QskSizePolicy.cpp.

◆ effectiveSizeHintType()

Qt::SizeHint QskSizePolicy::effectiveSizeHintType ( Qt::SizeHint  which,
Qt::Orientation  orientation 
) const
noexcept

Definition at line 46 of file QskSizePolicy.cpp.

◆ horizontalPolicy()

constexpr QskSizePolicy::Policy QskSizePolicy::horizontalPolicy ( ) const
inlineconstexprnoexcept

Definition at line 117 of file QskSizePolicy.h.

◆ isConstrained()

constexpr bool QskSizePolicy::isConstrained ( Qt::Orientation  orientation) const
inlineconstexprnoexcept

Definition at line 148 of file QskSizePolicy.h.

◆ operator!=()

constexpr bool QskSizePolicy::operator!= ( const QskSizePolicy other) const
inlineconstexprnoexcept

Definition at line 106 of file QskSizePolicy.h.

◆ operator==()

constexpr bool QskSizePolicy::operator== ( const QskSizePolicy other) const
inlineconstexprnoexcept

Definition at line 99 of file QskSizePolicy.h.

◆ policy()

constexpr QskSizePolicy::Policy QskSizePolicy::policy ( Qt::Orientation  orientation) const
inlineconstexprnoexcept

Definition at line 132 of file QskSizePolicy.h.

◆ setHorizontalPolicy()

void QskSizePolicy::setHorizontalPolicy ( Policy  policy)
inlinenoexcept

Definition at line 112 of file QskSizePolicy.h.

◆ setPolicy()

void QskSizePolicy::setPolicy ( Qt::Orientation  orientation,
Policy  policy 
)
inlinenoexcept

Definition at line 139 of file QskSizePolicy.h.

◆ setVerticalPolicy()

void QskSizePolicy::setVerticalPolicy ( Policy  policy)
inlinenoexcept

Definition at line 122 of file QskSizePolicy.h.

◆ transpose()

void QskSizePolicy::transpose ( )
noexcept

Definition at line 66 of file QskSizePolicy.cpp.

◆ transposed()

constexpr QskSizePolicy QskSizePolicy::transposed ( ) const
inlineconstexprnoexcept

Definition at line 154 of file QskSizePolicy.h.

◆ verticalPolicy()

constexpr QskSizePolicy::Policy QskSizePolicy::verticalPolicy ( ) const
inlineconstexprnoexcept

Definition at line 127 of file QskSizePolicy.h.

Property Documentation

◆ horizontal

Policy QskSizePolicy::horizontal
readwrite

Definition at line 17 of file QskSizePolicy.h.

◆ vertical

Policy QskSizePolicy::vertical
readwrite

Definition at line 18 of file QskSizePolicy.h.