OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Positioning.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10#include "OTGui/GuiTypes.h"
12
13// Qt header
14#include <QtCore/qrect.h>
15
16namespace ot {
17
21 public:
26 static QRect calculateChildRect(const QRect& _parentRect, const QSize& _childSize, ot::Alignment _childAlignment);
27
32 static QRectF calculateChildRect(const QRectF& _parentRect, const QSizeF& _childSize, ot::Alignment _childAlignment);
33
38 static QRect fitOnScreen(const QRect& _sourceRect, bool _primaryScreenOnly = false);
39
40 };
41}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition Positioning.h:18
Definition Connector.h:8
Alignment
Alignment.
Definition GuiTypes.h:21