KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
KDDWBindingsCore/MainWindow_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/MainWindow.h"
13#include <core/View.h>
14#include <string_p.h>
15#include <core/DockWidget.h>
16#include <KDDockWidgets.h>
17#include <SideBar.h>
18#include "core/DropArea.h"
19#include <core/Layout.h>
20#include <geometry_helpers_p.h>
21
23namespace KDDWBindingsCore {
25{
26public:
32 bool anySideBarIsVisible() const;
33 KDDockWidgets::Margins centerWidgetMargins() const;
34 KDDockWidgets::Rect centralAreaGeometry() const;
35 void clearSideBarOverlay(bool deleteGroup = true);
36 bool closeDockWidgets(bool force = false);
38 void init(const QString &name);
39 bool isMDI() const;
41 void layoutEqually();
46 int overlayMargin() const;
50 void setContentsMargins(int l, int t, int r, int b);
51 void setOverlayMargin(int margin);
54 void setUniqueName(const QString &uniqueName);
57 QString uniqueName() const;
60};
61}
62}
63extern "C" {
64// KDDockWidgets::Core::MainWindow::MainWindow(KDDockWidgets::Core::View * view, const QString & uniqueName, QFlags<KDDockWidgets::MainWindowOption> options)
65DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__constructor_View_QString_MainWindowOptions(void *view_, const char *uniqueName_, int options_);
66// KDDockWidgets::Core::MainWindow::addDockWidget(KDDockWidgets::Core::DockWidget * dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget * relativeTo, KDDockWidgets::InitialOption initialOption)
67DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidget_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *dockWidget_, int location, void *relativeTo_, void *initialOption_);
68// KDDockWidgets::Core::MainWindow::addDockWidgetAsTab(KDDockWidgets::Core::DockWidget * dockwidget)
69DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidgetAsTab_DockWidget(void *thisObj, void *dockwidget_);
70// KDDockWidgets::Core::MainWindow::addDockWidgetToSide(KDDockWidgets::Core::DockWidget * dockWidget, KDDockWidgets::Location location, KDDockWidgets::InitialOption initialOption)
71DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidgetToSide_DockWidget_Location_InitialOption(void *thisObj, void *dockWidget_, int location, void *initialOption_);
72// KDDockWidgets::Core::MainWindow::anySideBarIsVisible() const
73DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__anySideBarIsVisible(void *thisObj);
74// KDDockWidgets::Core::MainWindow::centerWidgetMargins() const
75DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__centerWidgetMargins(void *thisObj);
76// KDDockWidgets::Core::MainWindow::centralAreaGeometry() const
77DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__centralAreaGeometry(void *thisObj);
78// KDDockWidgets::Core::MainWindow::clearSideBarOverlay(bool deleteGroup)
79DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__clearSideBarOverlay_bool(void *thisObj, bool deleteGroup);
80// KDDockWidgets::Core::MainWindow::closeDockWidgets(bool force)
81DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__closeDockWidgets_bool(void *thisObj, bool force);
82// KDDockWidgets::Core::MainWindow::dropArea() const
83DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__dropArea(void *thisObj);
84// KDDockWidgets::Core::MainWindow::init(const QString & name)
85DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__init_QString(void *thisObj, const char *name_);
86// KDDockWidgets::Core::MainWindow::isMDI() const
87DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__isMDI(void *thisObj);
88// KDDockWidgets::Core::MainWindow::layout() const
89DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__layout(void *thisObj);
90// KDDockWidgets::Core::MainWindow::layoutEqually()
91DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutEqually(void *thisObj);
92// KDDockWidgets::Core::MainWindow::layoutParentContainerEqually(KDDockWidgets::Core::DockWidget * dockWidget)
93DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutParentContainerEqually_DockWidget(void *thisObj, void *dockWidget_);
94// KDDockWidgets::Core::MainWindow::moveToSideBar(KDDockWidgets::Core::DockWidget * dw)
95DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__moveToSideBar_DockWidget(void *thisObj, void *dw_);
96// KDDockWidgets::Core::MainWindow::multiSplitter() const
97DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__multiSplitter(void *thisObj);
98// KDDockWidgets::Core::MainWindow::options() const
99DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__options(void *thisObj);
100// KDDockWidgets::Core::MainWindow::overlayMargin() const
101DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__overlayMargin(void *thisObj);
102// KDDockWidgets::Core::MainWindow::overlayOnSideBar(KDDockWidgets::Core::DockWidget * dw)
103DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__overlayOnSideBar_DockWidget(void *thisObj, void *dw_);
104// KDDockWidgets::Core::MainWindow::overlayedDockWidget() const
105DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__overlayedDockWidget(void *thisObj);
106// KDDockWidgets::Core::MainWindow::restoreFromSideBar(KDDockWidgets::Core::DockWidget * dw)
107DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__restoreFromSideBar_DockWidget(void *thisObj, void *dw_);
108// KDDockWidgets::Core::MainWindow::setContentsMargins(int l, int t, int r, int b)
109DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setContentsMargins_int_int_int_int(void *thisObj, int l, int t, int r, int b);
110// KDDockWidgets::Core::MainWindow::setOverlayMargin(int margin)
111DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setOverlayMargin_int(void *thisObj, int margin);
112// KDDockWidgets::Core::MainWindow::setParentView_impl(KDDockWidgets::Core::View * parent)
113DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setParentView_impl_View(void *thisObj, void *parent_);
114// KDDockWidgets::Core::MainWindow::setUniqueName(const QString & uniqueName)
115DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setUniqueName_QString(void *thisObj, const char *uniqueName_);
116// KDDockWidgets::Core::MainWindow::sideBarForDockWidget(const KDDockWidgets::Core::DockWidget * dw) const
117DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__sideBarForDockWidget_DockWidget(void *thisObj, void *dw_);
118// KDDockWidgets::Core::MainWindow::toggleOverlayOnSideBar(KDDockWidgets::Core::DockWidget * dw)
119DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__toggleOverlayOnSideBar_DockWidget(void *thisObj, void *dw_);
120// KDDockWidgets::Core::MainWindow::uniqueName() const
121DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__uniqueName(void *thisObj);
122DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__destructor(void *thisObj);
123DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
124DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow_Finalizer(void *cppObj);
125}
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setUniqueName_QString(void *thisObj, const char *uniqueName_)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__restoreFromSideBar_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__multiSplitter(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutEqually(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutParentContainerEqually_DockWidget(void *thisObj, void *dockWidget_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__overlayedDockWidget(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setContentsMargins_int_int_int_int(void *thisObj, int l, int t, int r, int b)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setOverlayMargin_int(void *thisObj, int margin)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__init_QString(void *thisObj, const char *name_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__layout(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidgetAsTab_DockWidget(void *thisObj, void *dockwidget_)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__moveToSideBar_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__centralAreaGeometry(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidget_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *dockWidget_, int location, void *relativeTo_, void *initialOption_)
DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__options(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__dropArea(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow_Finalizer(void *cppObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__centerWidgetMargins(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__overlayOnSideBar_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__anySideBarIsVisible(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setParentView_impl_View(void *thisObj, void *parent_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__sideBarForDockWidget_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__toggleOverlayOnSideBar_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidgetToSide_DockWidget_Location_InitialOption(void *thisObj, void *dockWidget_, int location, void *initialOption_)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__destructor(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__closeDockWidgets_bool(void *thisObj, bool force)
DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__isMDI(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__uniqueName(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__clearSideBarOverlay_bool(void *thisObj, bool deleteGroup)
DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__overlayMargin(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__MainWindow__constructor_View_QString_MainWindowOptions(void *view_, const char *uniqueName_, int options_)
File with KDDockWidgets namespace-level enums and methods.
A widget that supports an arbitrary number of splitters (called Separators) in any combination of ver...
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
void addDockWidgetToSide(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::InitialOption initialOption={})
KDDockWidgets::Core::SideBar * sideBarForDockWidget(const KDDockWidgets::Core::DockWidget *dw) const
void addDockWidget(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, 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 widget (QWidget or QQuickItem) which holds a layout of dock widgets.
Definition Layout.h:57
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.
A MultiSplitter with support for drop indicators when hovering over.
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