#include "Positioning.h"
|
static QRect | calculateChildRect (const QRect &_parentRect, const QSize &_childSize, ot::Alignment _childAlignment) |
| Calculates the child rect.
|
|
static QRectF | calculateChildRect (const QRectF &_parentRect, const QSizeF &_childSize, ot::Alignment _childAlignment) |
| Calculates the child rect.
|
|
static QRect | fitOnScreen (const QRect &_sourceRect, bool _primaryScreenOnly=false) |
| Fits the provided rect on the screen. If the source rect is bigger than the screen size the source rect will be returned.
|
|
◆ calculateChildRect() [1/2]
QRect ot::Positioning::calculateChildRect |
( |
const QRect & | _parentRect, |
|
|
const QSize & | _childSize, |
|
|
ot::Alignment | _childAlignment ) |
|
static |
Calculates the child rect.
- Parameters
-
_parentRect | Parent rectangle. |
_childSize | Child size. |
_childAlignment | Child alignment. |
◆ calculateChildRect() [2/2]
QRectF ot::Positioning::calculateChildRect |
( |
const QRectF & | _parentRect, |
|
|
const QSizeF & | _childSize, |
|
|
ot::Alignment | _childAlignment ) |
|
static |
Calculates the child rect.
- Parameters
-
_parentRect | Parent rectangle. |
_childSize | Child size. |
_childAlignment | Child alignment. |
◆ fitOnScreen()
QRect ot::Positioning::fitOnScreen |
( |
const QRect & | _sourceRect, |
|
|
bool | _primaryScreenOnly = false ) |
|
static |
Fits the provided rect on the screen. If the source rect is bigger than the screen size the source rect will be returned.
- Parameters
-
_sourceRect | Initial rect. |
_primaryScreenOnly | If true the source rect will be fitted onto the primary screen only, otherwise on any screen. |
The documentation for this class was generated from the following files: