KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Rect_c.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11#include "kddockwidgets_export.h"
12#include <geometry_helpers_p.h>
13
15class Rect_wrapper : public ::KDDockWidgets::Rect
16{
17public:
20 Rect_wrapper(KDDockWidgets::Point pos, KDDockWidgets::Size size);
21 Rect_wrapper(int x, int y, int width, int height);
22 void adjust(int l, int t, int r, int b);
23 KDDockWidgets::Rect adjusted(int l, int t, int r, int b) const;
24 int bottom() const;
25 KDDockWidgets::Point bottomLeft() const;
26 KDDockWidgets::Point bottomRight() const;
27 KDDockWidgets::Point center() const;
28 bool contains(KDDockWidgets::Point pt) const;
29 bool contains(KDDockWidgets::Rect other) const;
30 int height() const;
31 KDDockWidgets::Rect intersected(KDDockWidgets::Rect other) const;
32 bool intersects(KDDockWidgets::Rect other) const;
33 bool isEmpty() const;
34 bool isNull() const;
35 bool isValid() const;
36 int left() const;
37 KDDockWidgets::Rect marginsAdded(KDDockWidgets::Margins m) const;
38 void moveBottom(int b);
39 void moveCenter(KDDockWidgets::Point pt);
40 void moveLeft(int x);
41 void moveRight(int r);
42 void moveTo(KDDockWidgets::Point pt);
43 void moveTo(int x, int y);
44 void moveTop(int y);
45 void moveTopLeft(KDDockWidgets::Point pt);
46 KDDockWidgets::Point pos() const;
47 int right() const;
48 void setBottom(int b);
49 void setHeight(int h);
50 void setLeft(int x);
51 void setRight(int r);
52 void setSize(KDDockWidgets::Size sz);
53 void setTop(int y);
54 void setTopLeft(KDDockWidgets::Point pt);
55 void setWidth(int w);
56 void setX(int x);
57 void setY(int y);
58 KDDockWidgets::Size size() const;
59 int top() const;
60 KDDockWidgets::Point topLeft() const;
61 KDDockWidgets::Point topRight() const;
62 void translate(KDDockWidgets::Point pt);
63 int width() const;
64 int x() const;
65 int y() const;
66};
67}
68extern "C" {
69// KDDockWidgets::Rect::Rect()
70DOCKS_EXPORT void *c_KDDockWidgets__Rect__constructor();
71// KDDockWidgets::Rect::Rect(KDDockWidgets::Point pos, KDDockWidgets::Size size)
72DOCKS_EXPORT void *c_KDDockWidgets__Rect__constructor_Point_Size(void *pos_, void *size_);
73// KDDockWidgets::Rect::Rect(int x, int y, int width, int height)
74DOCKS_EXPORT void *c_KDDockWidgets__Rect__constructor_int_int_int_int(int x, int y, int width, int height);
75// KDDockWidgets::Rect::adjust(int l, int t, int r, int b)
76DOCKS_EXPORT void c_KDDockWidgets__Rect__adjust_int_int_int_int(void *thisObj, int l, int t, int r, int b);
77// KDDockWidgets::Rect::adjusted(int l, int t, int r, int b) const
78DOCKS_EXPORT void *c_KDDockWidgets__Rect__adjusted_int_int_int_int(void *thisObj, int l, int t, int r, int b);
79// KDDockWidgets::Rect::bottom() const
80DOCKS_EXPORT int c_KDDockWidgets__Rect__bottom(void *thisObj);
81// KDDockWidgets::Rect::bottomLeft() const
82DOCKS_EXPORT void *c_KDDockWidgets__Rect__bottomLeft(void *thisObj);
83// KDDockWidgets::Rect::bottomRight() const
84DOCKS_EXPORT void *c_KDDockWidgets__Rect__bottomRight(void *thisObj);
85// KDDockWidgets::Rect::center() const
86DOCKS_EXPORT void *c_KDDockWidgets__Rect__center(void *thisObj);
87// KDDockWidgets::Rect::contains(KDDockWidgets::Point pt) const
88DOCKS_EXPORT bool c_KDDockWidgets__Rect__contains_Point(void *thisObj, void *pt_);
89// KDDockWidgets::Rect::contains(KDDockWidgets::Rect other) const
90DOCKS_EXPORT bool c_KDDockWidgets__Rect__contains_Rect(void *thisObj, void *other_);
91// KDDockWidgets::Rect::height() const
92DOCKS_EXPORT int c_KDDockWidgets__Rect__height(void *thisObj);
93// KDDockWidgets::Rect::intersected(KDDockWidgets::Rect other) const
94DOCKS_EXPORT void *c_KDDockWidgets__Rect__intersected_Rect(void *thisObj, void *other_);
95// KDDockWidgets::Rect::intersects(KDDockWidgets::Rect other) const
96DOCKS_EXPORT bool c_KDDockWidgets__Rect__intersects_Rect(void *thisObj, void *other_);
97// KDDockWidgets::Rect::isEmpty() const
98DOCKS_EXPORT bool c_KDDockWidgets__Rect__isEmpty(void *thisObj);
99// KDDockWidgets::Rect::isNull() const
100DOCKS_EXPORT bool c_KDDockWidgets__Rect__isNull(void *thisObj);
101// KDDockWidgets::Rect::isValid() const
102DOCKS_EXPORT bool c_KDDockWidgets__Rect__isValid(void *thisObj);
103// KDDockWidgets::Rect::left() const
104DOCKS_EXPORT int c_KDDockWidgets__Rect__left(void *thisObj);
105// KDDockWidgets::Rect::marginsAdded(KDDockWidgets::Margins m) const
106DOCKS_EXPORT void *c_KDDockWidgets__Rect__marginsAdded_Margins(void *thisObj, void *m_);
107// KDDockWidgets::Rect::moveBottom(int b)
108DOCKS_EXPORT void c_KDDockWidgets__Rect__moveBottom_int(void *thisObj, int b);
109// KDDockWidgets::Rect::moveCenter(KDDockWidgets::Point pt)
110DOCKS_EXPORT void c_KDDockWidgets__Rect__moveCenter_Point(void *thisObj, void *pt_);
111// KDDockWidgets::Rect::moveLeft(int x)
112DOCKS_EXPORT void c_KDDockWidgets__Rect__moveLeft_int(void *thisObj, int x);
113// KDDockWidgets::Rect::moveRight(int r)
114DOCKS_EXPORT void c_KDDockWidgets__Rect__moveRight_int(void *thisObj, int r);
115// KDDockWidgets::Rect::moveTo(KDDockWidgets::Point pt)
116DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTo_Point(void *thisObj, void *pt_);
117// KDDockWidgets::Rect::moveTo(int x, int y)
118DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTo_int_int(void *thisObj, int x, int y);
119// KDDockWidgets::Rect::moveTop(int y)
120DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTop_int(void *thisObj, int y);
121// KDDockWidgets::Rect::moveTopLeft(KDDockWidgets::Point pt)
122DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTopLeft_Point(void *thisObj, void *pt_);
123// KDDockWidgets::Rect::pos() const
124DOCKS_EXPORT void *c_KDDockWidgets__Rect__pos(void *thisObj);
125// KDDockWidgets::Rect::right() const
126DOCKS_EXPORT int c_KDDockWidgets__Rect__right(void *thisObj);
127// KDDockWidgets::Rect::setBottom(int b)
128DOCKS_EXPORT void c_KDDockWidgets__Rect__setBottom_int(void *thisObj, int b);
129// KDDockWidgets::Rect::setHeight(int h)
130DOCKS_EXPORT void c_KDDockWidgets__Rect__setHeight_int(void *thisObj, int h);
131// KDDockWidgets::Rect::setLeft(int x)
132DOCKS_EXPORT void c_KDDockWidgets__Rect__setLeft_int(void *thisObj, int x);
133// KDDockWidgets::Rect::setRight(int r)
134DOCKS_EXPORT void c_KDDockWidgets__Rect__setRight_int(void *thisObj, int r);
135// KDDockWidgets::Rect::setSize(KDDockWidgets::Size sz)
136DOCKS_EXPORT void c_KDDockWidgets__Rect__setSize_Size(void *thisObj, void *sz_);
137// KDDockWidgets::Rect::setTop(int y)
138DOCKS_EXPORT void c_KDDockWidgets__Rect__setTop_int(void *thisObj, int y);
139// KDDockWidgets::Rect::setTopLeft(KDDockWidgets::Point pt)
140DOCKS_EXPORT void c_KDDockWidgets__Rect__setTopLeft_Point(void *thisObj, void *pt_);
141// KDDockWidgets::Rect::setWidth(int w)
142DOCKS_EXPORT void c_KDDockWidgets__Rect__setWidth_int(void *thisObj, int w);
143// KDDockWidgets::Rect::setX(int x)
144DOCKS_EXPORT void c_KDDockWidgets__Rect__setX_int(void *thisObj, int x);
145// KDDockWidgets::Rect::setY(int y)
146DOCKS_EXPORT void c_KDDockWidgets__Rect__setY_int(void *thisObj, int y);
147// KDDockWidgets::Rect::size() const
148DOCKS_EXPORT void *c_KDDockWidgets__Rect__size(void *thisObj);
149// KDDockWidgets::Rect::top() const
150DOCKS_EXPORT int c_KDDockWidgets__Rect__top(void *thisObj);
151// KDDockWidgets::Rect::topLeft() const
152DOCKS_EXPORT void *c_KDDockWidgets__Rect__topLeft(void *thisObj);
153// KDDockWidgets::Rect::topRight() const
154DOCKS_EXPORT void *c_KDDockWidgets__Rect__topRight(void *thisObj);
155// KDDockWidgets::Rect::translate(KDDockWidgets::Point pt)
156DOCKS_EXPORT void c_KDDockWidgets__Rect__translate_Point(void *thisObj, void *pt_);
157// KDDockWidgets::Rect::width() const
158DOCKS_EXPORT int c_KDDockWidgets__Rect__width(void *thisObj);
159// KDDockWidgets::Rect::x() const
160DOCKS_EXPORT int c_KDDockWidgets__Rect__x(void *thisObj);
161// KDDockWidgets::Rect::y() const
162DOCKS_EXPORT int c_KDDockWidgets__Rect__y(void *thisObj);
163DOCKS_EXPORT void c_KDDockWidgets__Rect__destructor(void *thisObj);
164DOCKS_EXPORT void c_KDDockWidgets__Rect_Finalizer(void *cppObj);
165}
DOCKS_EXPORT void c_KDDockWidgets__Rect_Finalizer(void *cppObj)
Definition Rect_c.cpp:234
DOCKS_EXPORT void c_KDDockWidgets__Rect__setX_int(void *thisObj, int x)
Definition Rect_c.cpp:465
DOCKS_EXPORT bool c_KDDockWidgets__Rect__isEmpty(void *thisObj)
Definition Rect_c.cpp:331
DOCKS_EXPORT void * c_KDDockWidgets__Rect__size(void *thisObj)
Definition Rect_c.cpp:475
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveBottom_int(void *thisObj, int b)
Definition Rect_c.cpp:363
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTopLeft_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:402
DOCKS_EXPORT void * c_KDDockWidgets__Rect__bottomRight(void *thisObj)
Definition Rect_c.cpp:281
DOCKS_EXPORT void * c_KDDockWidgets__Rect__topRight(void *thisObj)
Definition Rect_c.cpp:493
DOCKS_EXPORT int c_KDDockWidgets__Rect__height(void *thisObj)
Definition Rect_c.cpp:309
DOCKS_EXPORT void c_KDDockWidgets__Rect__setHeight_int(void *thisObj, int h)
Definition Rect_c.cpp:426
DOCKS_EXPORT int c_KDDockWidgets__Rect__width(void *thisObj)
Definition Rect_c.cpp:506
DOCKS_EXPORT int c_KDDockWidgets__Rect__left(void *thisObj)
Definition Rect_c.cpp:349
DOCKS_EXPORT bool c_KDDockWidgets__Rect__contains_Rect(void *thisObj, void *other_)
Definition Rect_c.cpp:301
DOCKS_EXPORT void c_KDDockWidgets__Rect__setRight_int(void *thisObj, int r)
Definition Rect_c.cpp:436
DOCKS_EXPORT void c_KDDockWidgets__Rect__setTop_int(void *thisObj, int y)
Definition Rect_c.cpp:448
DOCKS_EXPORT void * c_KDDockWidgets__Rect__constructor_int_int_int_int(int x, int y, int width, int height)
Definition Rect_c.cpp:252
DOCKS_EXPORT void * c_KDDockWidgets__Rect__topLeft(void *thisObj)
Definition Rect_c.cpp:487
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveLeft_int(void *thisObj, int x)
Definition Rect_c.cpp:375
DOCKS_EXPORT void c_KDDockWidgets__Rect__setBottom_int(void *thisObj, int b)
Definition Rect_c.cpp:421
DOCKS_EXPORT void * c_KDDockWidgets__Rect__marginsAdded_Margins(void *thisObj, void *m_)
Definition Rect_c.cpp:355
DOCKS_EXPORT void c_KDDockWidgets__Rect__adjust_int_int_int_int(void *thisObj, int l, int t, int r, int b)
Definition Rect_c.cpp:258
DOCKS_EXPORT void * c_KDDockWidgets__Rect__pos(void *thisObj)
Definition Rect_c.cpp:409
DOCKS_EXPORT void * c_KDDockWidgets__Rect__constructor_Point_Size(void *pos_, void *size_)
Definition Rect_c.cpp:243
DOCKS_EXPORT void c_KDDockWidgets__Rect__setY_int(void *thisObj, int y)
Definition Rect_c.cpp:470
DOCKS_EXPORT int c_KDDockWidgets__Rect__x(void *thisObj)
Definition Rect_c.cpp:512
DOCKS_EXPORT bool c_KDDockWidgets__Rect__isValid(void *thisObj)
Definition Rect_c.cpp:343
DOCKS_EXPORT int c_KDDockWidgets__Rect__bottom(void *thisObj)
Definition Rect_c.cpp:269
DOCKS_EXPORT void * c_KDDockWidgets__Rect__constructor()
Definition Rect_c.cpp:238
DOCKS_EXPORT void c_KDDockWidgets__Rect__destructor(void *thisObj)
Definition Rect_c.cpp:523
DOCKS_EXPORT void * c_KDDockWidgets__Rect__adjusted_int_int_int_int(void *thisObj, int l, int t, int r, int b)
Definition Rect_c.cpp:263
DOCKS_EXPORT void * c_KDDockWidgets__Rect__bottomLeft(void *thisObj)
Definition Rect_c.cpp:275
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTop_int(void *thisObj, int y)
Definition Rect_c.cpp:397
DOCKS_EXPORT bool c_KDDockWidgets__Rect__contains_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:293
DOCKS_EXPORT void c_KDDockWidgets__Rect__translate_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:499
DOCKS_EXPORT void c_KDDockWidgets__Rect__setTopLeft_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:453
DOCKS_EXPORT void * c_KDDockWidgets__Rect__intersected_Rect(void *thisObj, void *other_)
Definition Rect_c.cpp:315
DOCKS_EXPORT int c_KDDockWidgets__Rect__y(void *thisObj)
Definition Rect_c.cpp:518
DOCKS_EXPORT void c_KDDockWidgets__Rect__setLeft_int(void *thisObj, int x)
Definition Rect_c.cpp:431
DOCKS_EXPORT int c_KDDockWidgets__Rect__top(void *thisObj)
Definition Rect_c.cpp:481
DOCKS_EXPORT void c_KDDockWidgets__Rect__setSize_Size(void *thisObj, void *sz_)
Definition Rect_c.cpp:441
DOCKS_EXPORT int c_KDDockWidgets__Rect__right(void *thisObj)
Definition Rect_c.cpp:415
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTo_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:385
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveRight_int(void *thisObj, int r)
Definition Rect_c.cpp:380
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveTo_int_int(void *thisObj, int x, int y)
Definition Rect_c.cpp:392
DOCKS_EXPORT bool c_KDDockWidgets__Rect__isNull(void *thisObj)
Definition Rect_c.cpp:337
DOCKS_EXPORT void c_KDDockWidgets__Rect__setWidth_int(void *thisObj, int w)
Definition Rect_c.cpp:460
DOCKS_EXPORT void c_KDDockWidgets__Rect__moveCenter_Point(void *thisObj, void *pt_)
Definition Rect_c.cpp:368
DOCKS_EXPORT bool c_KDDockWidgets__Rect__intersects_Rect(void *thisObj, void *other_)
Definition Rect_c.cpp:323
DOCKS_EXPORT void * c_KDDockWidgets__Rect__center(void *thisObj)
Definition Rect_c.cpp:287
KDDockWidgets::Rect intersected(KDDockWidgets::Rect other) const
Definition Rect_c.cpp:80
void translate(KDDockWidgets::Point pt)
Definition Rect_c.cpp:204
void setTopLeft(KDDockWidgets::Point pt)
Definition Rect_c.cpp:172
void setSize(KDDockWidgets::Size sz)
Definition Rect_c.cpp:164
KDDockWidgets::Point topLeft() const
Definition Rect_c.cpp:196
KDDockWidgets::Rect marginsAdded(KDDockWidgets::Margins m) const
Definition Rect_c.cpp:104
KDDockWidgets::Point bottomLeft() const
Definition Rect_c.cpp:56
void moveTo(KDDockWidgets::Point pt)
Definition Rect_c.cpp:124
void moveCenter(KDDockWidgets::Point pt)
Definition Rect_c.cpp:112
void moveTopLeft(KDDockWidgets::Point pt)
Definition Rect_c.cpp:136
KDDockWidgets::Point bottomRight() const
Definition Rect_c.cpp:60
KDDockWidgets::Point topRight() const
Definition Rect_c.cpp:200
bool intersects(KDDockWidgets::Rect other) const
Definition Rect_c.cpp:84
KDDockWidgets::Rect adjusted(int l, int t, int r, int b) const
Definition Rect_c.cpp:48
bool contains(KDDockWidgets::Point pt) const
Definition Rect_c.cpp:68
void adjust(int l, int t, int r, int b)
Definition Rect_c.cpp:44
KDDockWidgets::Point center() const
Definition Rect_c.cpp:64

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8