KDDockWidgets API Documentation 2.0
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 void moveToSideBar();
51 void onResize(KDDockWidgets::Size newSize);
52 void open();
54 void raise();
55 void resizeInLayout(int left, int top, int right, int bottom);
56 void setAffinityName(const QString &name);
57 void setAsCurrentTab();
58 bool setFloating(bool floats);
59 void setFloatingGeometry(KDDockWidgets::Rect geo);
60 void setMDIPosition(KDDockWidgets::Point pos);
61 void setMDISize(KDDockWidgets::Size size);
62 void setMDIZ(int z);
66 void setTitle(const QString &title);
67 void setUserType(int userType);
68 void show();
69 KDDockWidgets::Size sizeInLayout() const;
70 bool skipsRestore() const;
71 bool startDragging(bool singleTab = false);
72 int tabIndex() const;
73 QString title() const;
75 QString uniqueName() const;
76 int userType() const;
79};
80}
81}
82extern "C" {
83// KDDockWidgets::Core::DockWidget::DockWidget(KDDockWidgets::Core::View * view, const QString & uniqueName, QFlags<KDDockWidgets::DockWidgetOption> options, QFlags<KDDockWidgets::LayoutSaverOption> layoutSaverOptions)
84DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__constructor_View_QString_DockWidgetOptions_LayoutSaverOptions(void *view_, const char *uniqueName_, int options_, int layoutSaverOptions_);
85// KDDockWidgets::Core::DockWidget::addDockWidgetAsTab(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::InitialOption initialOption)
86DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetAsTab_DockWidget_InitialOption(void *thisObj, void *other_, void *initialOption_);
87// KDDockWidgets::Core::DockWidget::addDockWidgetToContainingWindow(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget * relativeTo, KDDockWidgets::InitialOption initialOption)
88DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__addDockWidgetToContainingWindow_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *other_, int location, void *relativeTo_, void *initialOption_);
89// KDDockWidgets::Core::DockWidget::byName(const QString & uniqueName)
90DOCKS_EXPORT void *c_static_KDDockWidgets__Core__DockWidget__byName_QString(const char *uniqueName_);
91// KDDockWidgets::Core::DockWidget::currentTabIndex() const
92DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__currentTabIndex(void *thisObj);
93// KDDockWidgets::Core::DockWidget::floatingWindow() const
94DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__floatingWindow(void *thisObj);
95// KDDockWidgets::Core::DockWidget::forceClose()
96DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__forceClose(void *thisObj);
97// KDDockWidgets::Core::DockWidget::groupGeometry() const
98DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__groupGeometry(void *thisObj);
99// KDDockWidgets::Core::DockWidget::hasPreviousDockedLocation() const
101// KDDockWidgets::Core::DockWidget::init()
102DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__init(void *thisObj);
103// KDDockWidgets::Core::DockWidget::isCurrentTab() const
104DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isCurrentTab(void *thisObj);
105// KDDockWidgets::Core::DockWidget::isFloating() const
106DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFloating(void *thisObj);
107// KDDockWidgets::Core::DockWidget::isFocused() const
108DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isFocused(void *thisObj);
109// KDDockWidgets::Core::DockWidget::isInMainWindow() const
110DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInMainWindow(void *thisObj);
111// KDDockWidgets::Core::DockWidget::isInSideBar() const
112DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInSideBar(void *thisObj);
113// KDDockWidgets::Core::DockWidget::isMainWindow() const
114DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isMainWindow(void *thisObj);
115// KDDockWidgets::Core::DockWidget::isOpen() const
116DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOpen(void *thisObj);
117// KDDockWidgets::Core::DockWidget::isOverlayed() const
118DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isOverlayed(void *thisObj);
119// KDDockWidgets::Core::DockWidget::isPersistentCentralDockWidget() const
121// KDDockWidgets::Core::DockWidget::isTabbed() const
122DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isTabbed(void *thisObj);
123// KDDockWidgets::Core::DockWidget::lastOverlayedSize() const
124DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__lastOverlayedSize(void *thisObj);
125// KDDockWidgets::Core::DockWidget::layoutSaverOptions() const
126DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__layoutSaverOptions(void *thisObj);
127// KDDockWidgets::Core::DockWidget::mainWindow() const
128DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__mainWindow(void *thisObj);
129// KDDockWidgets::Core::DockWidget::moveToSideBar()
130DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__moveToSideBar(void *thisObj);
131// KDDockWidgets::Core::DockWidget::onResize(KDDockWidgets::Size newSize)
132DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__onResize_Size(void *thisObj, void *newSize_);
133// KDDockWidgets::Core::DockWidget::open()
134DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__open(void *thisObj);
135// KDDockWidgets::Core::DockWidget::options() const
136DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__options(void *thisObj);
137// KDDockWidgets::Core::DockWidget::raise()
138DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__raise(void *thisObj);
139// KDDockWidgets::Core::DockWidget::resizeInLayout(int left, int top, int right, int bottom)
140DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__resizeInLayout_int_int_int_int(void *thisObj, int left, int top, int right, int bottom);
141// KDDockWidgets::Core::DockWidget::setAffinityName(const QString & name)
142DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAffinityName_QString(void *thisObj, const char *name_);
143// KDDockWidgets::Core::DockWidget::setAsCurrentTab()
144DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setAsCurrentTab(void *thisObj);
145// KDDockWidgets::Core::DockWidget::setFloating(bool floats)
146DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__setFloating_bool(void *thisObj, bool floats);
147// KDDockWidgets::Core::DockWidget::setFloatingGeometry(KDDockWidgets::Rect geo)
148DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setFloatingGeometry_Rect(void *thisObj, void *geo_);
149// KDDockWidgets::Core::DockWidget::setMDIPosition(KDDockWidgets::Point pos)
150DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIPosition_Point(void *thisObj, void *pos_);
151// KDDockWidgets::Core::DockWidget::setMDISize(KDDockWidgets::Size size)
152DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDISize_Size(void *thisObj, void *size_);
153// KDDockWidgets::Core::DockWidget::setMDIZ(int z)
154DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setMDIZ_int(void *thisObj, int z);
155// KDDockWidgets::Core::DockWidget::setOptions(QFlags<KDDockWidgets::DockWidgetOption> arg__1)
156DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setOptions_DockWidgetOptions(void *thisObj, int arg__1_);
157// KDDockWidgets::Core::DockWidget::setParentView_impl(KDDockWidgets::Core::View * parent)
158DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setParentView_impl_View(void *thisObj, void *parent_);
159// KDDockWidgets::Core::DockWidget::setTitle(const QString & title)
160DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setTitle_QString(void *thisObj, const char *title_);
161// KDDockWidgets::Core::DockWidget::setUserType(int userType)
162DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__setUserType_int(void *thisObj, int userType);
163// KDDockWidgets::Core::DockWidget::show()
164DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__show(void *thisObj);
165// KDDockWidgets::Core::DockWidget::sizeInLayout() const
166DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__sizeInLayout(void *thisObj);
167// KDDockWidgets::Core::DockWidget::skipsRestore() const
168DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__skipsRestore(void *thisObj);
169// KDDockWidgets::Core::DockWidget::startDragging(bool singleTab)
170DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__startDragging_bool(void *thisObj, bool singleTab);
171// KDDockWidgets::Core::DockWidget::tabIndex() const
172DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__tabIndex(void *thisObj);
173// KDDockWidgets::Core::DockWidget::title() const
174DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__title(void *thisObj);
175// KDDockWidgets::Core::DockWidget::titleBar() const
176DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__titleBar(void *thisObj);
177// KDDockWidgets::Core::DockWidget::uniqueName() const
178DOCKS_EXPORT void *c_KDDockWidgets__Core__DockWidget__uniqueName(void *thisObj);
179// KDDockWidgets::Core::DockWidget::userType() const
180DOCKS_EXPORT int c_KDDockWidgets__Core__DockWidget__userType(void *thisObj);
181DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__destructor(void *thisObj);
182DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
183DOCKS_EXPORT void c_KDDockWidgets__Core__DockWidget_Finalizer(void *cppObj);
184}
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 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__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 void c_KDDockWidgets__Core__DockWidget__setOptions_DockWidgetOptions(void *thisObj, int arg__1_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__DockWidget__isInMainWindow(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