Qt 4.8
Classes | Functions
qtoolbararealayout_p.h File Reference
#include <QList>
#include <QSize>
#include <QRect>

Go to the source code of this file.

Classes

class  QToolBarAreaLayout
 
class  QToolBarAreaLayoutInfo
 
class  QToolBarAreaLayoutItem
 
class  QToolBarAreaLayoutLine
 

Functions

static int perp (Qt::Orientation o, const QPoint &pos)
 
static int perp (Qt::Orientation o, const QSize &size)
 
static int pick (Qt::Orientation o, const QPoint &pos)
 
static int pick (Qt::Orientation o, const QSize &size)
 
static QSizePolicy::Policy pick (Qt::Orientation o, const QSizePolicy &policy)
 
static int & rperp (Qt::Orientation o, QPoint &pos)
 
static int & rperp (Qt::Orientation o, QSize &size)
 
static int & rpick (Qt::Orientation o, QPoint &pos)
 
static int & rpick (Qt::Orientation o, QSize &size)
 

Function Documentation

◆ perp() [1/2]

static int perp ( Qt::Orientation  o,
const QPoint pos 
)
inlinestatic

Definition at line 77 of file qtoolbararealayout_p.h.

78 { return o == Qt::Vertical ? pos.x() : pos.y(); }
int y() const
Returns the y coordinate of this point.
Definition: qpoint.h:131
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128

◆ perp() [2/2]

static int perp ( Qt::Orientation  o,
const QSize size 
)
inlinestatic

Definition at line 80 of file qtoolbararealayout_p.h.

81 { return o == Qt::Vertical ? size.width() : size.height(); }
int width() const
Returns the width.
Definition: qsize.h:126
int height() const
Returns the height.
Definition: qsize.h:129

◆ pick() [1/3]

static int pick ( Qt::Orientation  o,
const QPoint pos 
)
inlinestatic

Definition at line 62 of file qtoolbararealayout_p.h.

Referenced by QToolBarAreaLayoutItem::extendSize(), and QToolBarAreaLayoutItem::resize().

63 { return o == Qt::Horizontal ? pos.x() : pos.y(); }
int y() const
Returns the y coordinate of this point.
Definition: qpoint.h:131
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128

◆ pick() [2/3]

static int pick ( Qt::Orientation  o,
const QSize size 
)
inlinestatic

Definition at line 65 of file qtoolbararealayout_p.h.

66 { return o == Qt::Horizontal ? size.width() : size.height(); }
int width() const
Returns the width.
Definition: qsize.h:126
int height() const
Returns the height.
Definition: qsize.h:129

◆ pick() [3/3]

static QSizePolicy::Policy pick ( Qt::Orientation  o,
const QSizePolicy policy 
)
inlinestatic

Definition at line 74 of file qtoolbararealayout_p.h.

75 { return o == Qt::Horizontal ? policy.horizontalPolicy() : policy.verticalPolicy(); }
Policy horizontalPolicy() const
Definition: qsizepolicy.h:118
Policy verticalPolicy() const
Definition: qsizepolicy.h:119

◆ rperp() [1/2]

static int& rperp ( Qt::Orientation  o,
QPoint pos 
)
inlinestatic

◆ rperp() [2/2]

static int& rperp ( Qt::Orientation  o,
QSize size 
)
inlinestatic

Definition at line 86 of file qtoolbararealayout_p.h.

87 { return o == Qt::Vertical ? size.rwidth() : size.rheight(); }
int & rheight()
Returns a reference to the height.
Definition: qsize.h:144
int & rwidth()
Returns a reference to the width.
Definition: qsize.h:141

◆ rpick() [1/2]

static int& rpick ( Qt::Orientation  o,
QPoint pos 
)
inlinestatic

◆ rpick() [2/2]

static int& rpick ( Qt::Orientation  o,
QSize size 
)
inlinestatic

Definition at line 71 of file qtoolbararealayout_p.h.

72 { return o == Qt::Horizontal ? size.rwidth() : size.rheight(); }
int & rheight()
Returns a reference to the height.
Definition: qsize.h:144
int & rwidth()
Returns a reference to the width.
Definition: qsize.h:141