KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
KDDWBindingsCore/DockWidget_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 <core/DockWidget.h>
13#include <core/View.h>
14#include <string_p.h>
15#include <KDDockWidgets.h>
16#include <FloatingWindow.h>
17#include <geometry_helpers_p.h>
18#include "core/TitleBar.h"
19#include "core/MainWindow.h"
20
22namespace KDDWBindingsCore {
24{
25public:
31 int currentTabIndex() const;
33 void forceClose();
34 KDDockWidgets::Rect groupGeometry() const;
35 bool hasPreviousDockedLocation() const;
36 void init();
37 bool isCurrentTab() const;
38 bool isFloating() const;
39 bool isFocused() const;
40 bool isInMainWindow() const;
41 bool isInSideBar() const;
42 bool isMainWindow() const;
43 bool isOpen() const;
44 bool isOverlayed() const;
46 bool isTabbed() const;
47 KDDockWidgets::Size lastOverlayedSize() const;
50 int mdiZ() const;
51 void moveToSideBar();
52 void onResize(KDDockWidgets::Size newSize);
53 void open();
55 void raise();
56 void removeFromSideBar();
57 void resizeInLayout(int left, int top, int right, int bottom);
58 void setAffinityName(const QString &name);
59 void setAsCurrentTab();
60 bool setFloating(bool floats);
61 void setFloatingGeometry(KDDockWidgets::Rect geo);
62 void setMDIPosition(KDDockWidgets::Point pos);
63 void setMDISize(KDDockWidgets::Size size);
64 void setMDIZ(int z);
68 void setTitle(const QString &title);
69 void setUniqueName(const QString &arg__1);
70 void setUserType(int userType);
71 void show();
72 KDDockWidgets::Size sizeInLayout() const;
73 bool skipsRestore() const;
74 bool startDragging(bool singleTab = false);
75 int tabIndex() const;
76 QString title() const;
78 QString uniqueName() const;
79 int userType() const;
80 bool wasRestored() const;
83};
84}
85}
86extern "C" {
87// KDDockWidgets::Core::DockWidget::DockWidget(KDDockWidgets::Core::View * view, const QString & uniqueName, QFlags<KDDockWidgets::DockWidgetOption> options, QFlags<KDDockWidgets::LayoutSaverOption> layoutSaverOptions)
88DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__constructor_View_QString_DockWidgetOptions_LayoutSaverOptions(void *view_, const char *uniqueName_, int options_, int layoutSaverOptions_);
89// KDDockWidgets::Core::DockWidget::addDockWidgetAsTab(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::InitialOption initialOption)
90DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetAsTab_DockWidget_InitialOption(void *thisObj, void *other_, void *initialOption_);
91// KDDockWidgets::Core::DockWidget::addDockWidgetToContainingWindow(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget * relativeTo, KDDockWidgets::InitialOption initialOption)
92DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetToContainingWindow_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *other_, int location, void *relativeTo_, void *initialOption_);
93// KDDockWidgets::Core::DockWidget::byName(const QString & uniqueName)
94DOCKS_EXPORT void *c_static_KDDockWidgets__Core__DockWidget__byName_QString(const char *uniqueName_);
95// KDDockWidgets::Core::DockWidget::currentTabIndex() const
96DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__currentTabIndex(void *thisObj);
97// KDDockWidgets::Core::DockWidget::floatingWindow() const
98DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__floatingWindow(void *thisObj);
99// KDDockWidgets::Core::DockWidget::forceClose()
100DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__forceClose(void *thisObj);
101// KDDockWidgets::Core::DockWidget::groupGeometry() const
102DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__groupGeometry(void *thisObj);
103// KDDockWidgets::Core::DockWidget::hasPreviousDockedLocation() const
105// KDDockWidgets::Core::DockWidget::init()
106DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__init(void *thisObj);
107// KDDockWidgets::Core::DockWidget::isCurrentTab() const
108DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isCurrentTab(void *thisObj);
109// KDDockWidgets::Core::DockWidget::isFloating() const
110DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFloating(void *thisObj);
111// KDDockWidgets::Core::DockWidget::isFocused() const
112DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFocused(void *thisObj);
113// KDDockWidgets::Core::DockWidget::isInMainWindow() const
114DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInMainWindow(void *thisObj);
115// KDDockWidgets::Core::DockWidget::isInSideBar() const
116DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInSideBar(void *thisObj);
117// KDDockWidgets::Core::DockWidget::isMainWindow() const
118DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isMainWindow(void *thisObj);
119// KDDockWidgets::Core::DockWidget::isOpen() const
120DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOpen(void *thisObj);
121// KDDockWidgets::Core::DockWidget::isOverlayed() const
122DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOverlayed(void *thisObj);
123// KDDockWidgets::Core::DockWidget::isPersistentCentralDockWidget() const
125// KDDockWidgets::Core::DockWidget::isTabbed() const
126DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isTabbed(void *thisObj);
127// KDDockWidgets::Core::DockWidget::lastOverlayedSize() const
128DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__lastOverlayedSize(void *thisObj);
129// KDDockWidgets::Core::DockWidget::layoutSaverOptions() const
130DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__layoutSaverOptions(void *thisObj);
131// KDDockWidgets::Core::DockWidget::mainWindow() const
132DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__mainWindow(void *thisObj);
133// KDDockWidgets::Core::DockWidget::mdiZ() const
134DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__mdiZ(void *thisObj);
135// KDDockWidgets::Core::DockWidget::moveToSideBar()
136DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__moveToSideBar(void *thisObj);
137// KDDockWidgets::Core::DockWidget::onResize(KDDockWidgets::Size newSize)
138DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__onResize_Size(void *thisObj, void *newSize_);
139// KDDockWidgets::Core::DockWidget::open()
140DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__open(void *thisObj);
141// KDDockWidgets::Core::DockWidget::options() const
142DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__options(void *thisObj);
143// KDDockWidgets::Core::DockWidget::raise()
144DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__raise(void *thisObj);
145// KDDockWidgets::Core::DockWidget::removeFromSideBar()
146DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__removeFromSideBar(void *thisObj);
147// KDDockWidgets::Core::DockWidget::resizeInLayout(int left, int top, int right, int bottom)
148DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__resizeInLayout_int_int_int_int(void *thisObj, int left, int top, int right, int bottom);
149// KDDockWidgets::Core::DockWidget::setAffinityName(const QString & name)
150DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAffinityName_QString(void *thisObj, const char *name_);
151// KDDockWidgets::Core::DockWidget::setAsCurrentTab()
152DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAsCurrentTab(void *thisObj);
153// KDDockWidgets::Core::DockWidget::setFloating(bool floats)
154DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__setFloating_bool(void *thisObj, bool floats);
155// KDDockWidgets::Core::DockWidget::setFloatingGeometry(KDDockWidgets::Rect geo)
156DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setFloatingGeometry_Rect(void *thisObj, void *geo_);
157// KDDockWidgets::Core::DockWidget::setMDIPosition(KDDockWidgets::Point pos)
158DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIPosition_Point(void *thisObj, void *pos_);
159// KDDockWidgets::Core::DockWidget::setMDISize(KDDockWidgets::Size size)
160DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDISize_Size(void *thisObj, void *size_);
161// KDDockWidgets::Core::DockWidget::setMDIZ(int z)
162DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIZ_int(void *thisObj, int z);
163// KDDockWidgets::Core::DockWidget::setOptions(QFlags<KDDockWidgets::DockWidgetOption> arg__1)
164DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setOptions_DockWidgetOptions(void *thisObj, int arg__1_);
165// KDDockWidgets::Core::DockWidget::setParentView_impl(KDDockWidgets::Core::View * parent)
166DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setParentView_impl_View(void *thisObj, void *parent_);
167// KDDockWidgets::Core::DockWidget::setTitle(const QString & title)
168DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setTitle_QString(void *thisObj, const char *title_);
169// KDDockWidgets::Core::DockWidget::setUniqueName(const QString & arg__1)
170DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setUniqueName_QString(void *thisObj, const char *arg__1_);
171// KDDockWidgets::Core::DockWidget::setUserType(int userType)
172DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setUserType_int(void *thisObj, int userType);
173// KDDockWidgets::Core::DockWidget::show()
174DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__show(void *thisObj);
175// KDDockWidgets::Core::DockWidget::sizeInLayout() const
176DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__sizeInLayout(void *thisObj);
177// KDDockWidgets::Core::DockWidget::skipsRestore() const
178DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__skipsRestore(void *thisObj);
179// KDDockWidgets::Core::DockWidget::startDragging(bool singleTab)
180DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__startDragging_bool(void *thisObj, bool singleTab);
181// KDDockWidgets::Core::DockWidget::tabIndex() const
182DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__tabIndex(void *thisObj);
183// KDDockWidgets::Core::DockWidget::title() const
184DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__title(void *thisObj);
185// KDDockWidgets::Core::DockWidget::titleBar() const
186DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__titleBar(void *thisObj);
187// KDDockWidgets::Core::DockWidget::uniqueName() const
188DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__uniqueName(void *thisObj);
189// KDDockWidgets::Core::DockWidget::userType() const
190DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__userType(void *thisObj);
191// KDDockWidgets::Core::DockWidget::wasRestored() const
192DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__wasRestored(void *thisObj);
193DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__destructor(void *thisObj);
194DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
195DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget_Finalizer(void *cppObj);
196}
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIZ_int(void *thisObj, int z)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__init(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__tabIndex(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__lastOverlayedSize(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__floatingWindow(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__resizeInLayout_int_int_int_int(void *thisObj, int left, int top, int right, int bottom)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOverlayed(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__raise(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setUserType_int(void *thisObj, int userType)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__mainWindow(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetToContainingWindow_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *other_, int location, void *relativeTo_, void *initialOption_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFocused(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__forceClose(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__sizeInLayout(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isCurrentTab(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__show(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIPosition_Point(void *thisObj, void *pos_)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDISize_Size(void *thisObj, void *size_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__uniqueName(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__wasRestored(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAsCurrentTab(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__constructor_View_QString_DockWidgetOptions_LayoutSaverOptions(void *view_, const char *uniqueName_, int options_, int layoutSaverOptions_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__groupGeometry(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__userType(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAffinityName_QString(void *thisObj, const char *name_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__skipsRestore(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFloating(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__layoutSaverOptions(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__hasPreviousDockedLocation(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__moveToSideBar(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isPersistentCentralDockWidget(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__title(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isTabbed(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__setFloating_bool(void *thisObj, bool floats)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setTitle_QString(void *thisObj, const char *title_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__DockWidget__titleBar(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setFloatingGeometry_Rect(void *thisObj, void *geo_)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__currentTabIndex(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget_Finalizer(void *cppObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__open(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOpen(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setParentView_impl_View(void *thisObj, void *parent_)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setUniqueName_QString(void *thisObj, const char *arg__1_)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__onResize_Size(void *thisObj, void *newSize_)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__destructor(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__options(void *thisObj)
DOCKS_EXPORT void * c_static_KDDockWidgets__Core__DockWidget__byName_QString(const char *uniqueName_)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetAsTab_DockWidget_InitialOption(void *thisObj, void *other_, void *initialOption_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isMainWindow(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInSideBar(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__mdiZ(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setOptions_DockWidgetOptions(void *thisObj, int arg__1_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInMainWindow(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__removeFromSideBar(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__startDragging_bool(void *thisObj, bool singleTab)
File with KDDockWidgets namespace-level enums and methods.
void addDockWidgetToContainingWindow(KDDockWidgets::Core::DockWidget *other, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, KDDockWidgets::InitialOption initialOption={})
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
static KDDockWidgets::Core::DockWidget * byName(const QString &uniqueName)
void addDockWidgetAsTab(KDDockWidgets::Core::DockWidget *other, KDDockWidgets::InitialOption initialOption={})
View * view() const
Returns the view associated with this controller, if any.
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
The DockWidget controller that's shared between QtWidgets and QtQuick frontends.
The MainWindow base-class that's shared between QtWidgets and QtQuick stack.
Struct describing the preferred dock widget size and visibility when adding it to a layout.

© 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