KDDockWidgets API Documentation 2.0
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:
31 bool anySideBarIsVisible() const;
32 KDDockWidgets::Margins centerWidgetMargins() const;
33 KDDockWidgets::Rect centralAreaGeometry() const;
34 void clearSideBarOverlay(bool deleteFrame = true);
35 bool closeDockWidgets(bool force = false);
37 void init(const QString &name);
38 bool isMDI() const;
40 void layoutEqually();
45 int overlayMargin() const;
49 void setContentsMargins(int l, int t, int r, int b);
50 void setOverlayMargin(int margin);
53 void setUniqueName(const QString &uniqueName);
56 QString uniqueName() const;
59};
60}
61}
62extern "C" {
63// KDDockWidgets::Core::MainWindow::MainWindow(KDDockWidgets::Core::View * view, const QString & uniqueName, QFlags<KDDockWidgets::MainWindowOption> options)
64DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__constructor_View_QString_MainWindowOptions(void *view_, const char *uniqueName_, int options_);
65// KDDockWidgets::Core::MainWindow::addDockWidget(KDDockWidgets::Core::DockWidget * dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget * relativeTo, KDDockWidgets::InitialOption initialOption)
66DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidget_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *dockWidget_, int location, void *relativeTo_, void *initialOption_);
67// KDDockWidgets::Core::MainWindow::addDockWidgetAsTab(KDDockWidgets::Core::DockWidget * dockwidget)
68DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__addDockWidgetAsTab_DockWidget(void *thisObj, void *dockwidget_);
69// KDDockWidgets::Core::MainWindow::anySideBarIsVisible() const
70DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__anySideBarIsVisible(void *thisObj);
71// KDDockWidgets::Core::MainWindow::centerWidgetMargins() const
72DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__centerWidgetMargins(void *thisObj);
73// KDDockWidgets::Core::MainWindow::centralAreaGeometry() const
74DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__centralAreaGeometry(void *thisObj);
75// KDDockWidgets::Core::MainWindow::clearSideBarOverlay(bool deleteFrame)
76DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__clearSideBarOverlay_bool(void *thisObj, bool deleteFrame);
77// KDDockWidgets::Core::MainWindow::closeDockWidgets(bool force)
78DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__closeDockWidgets_bool(void *thisObj, bool force);
79// KDDockWidgets::Core::MainWindow::dropArea() const
80DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__dropArea(void *thisObj);
81// KDDockWidgets::Core::MainWindow::init(const QString & name)
82DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__init_QString(void *thisObj, const char *name_);
83// KDDockWidgets::Core::MainWindow::isMDI() const
84DOCKS_EXPORT bool c_KDDockWidgets__Core__MainWindow__isMDI(void *thisObj);
85// KDDockWidgets::Core::MainWindow::layout() const
86DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__layout(void *thisObj);
87// KDDockWidgets::Core::MainWindow::layoutEqually()
88DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutEqually(void *thisObj);
89// KDDockWidgets::Core::MainWindow::layoutParentContainerEqually(KDDockWidgets::Core::DockWidget * dockWidget)
90DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__layoutParentContainerEqually_DockWidget(void *thisObj, void *dockWidget_);
91// KDDockWidgets::Core::MainWindow::moveToSideBar(KDDockWidgets::Core::DockWidget * dw)
92DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__moveToSideBar_DockWidget(void *thisObj, void *dw_);
93// KDDockWidgets::Core::MainWindow::multiSplitter() const
94DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__multiSplitter(void *thisObj);
95// KDDockWidgets::Core::MainWindow::options() const
96DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__options(void *thisObj);
97// KDDockWidgets::Core::MainWindow::overlayMargin() const
98DOCKS_EXPORT int c_KDDockWidgets__Core__MainWindow__overlayMargin(void *thisObj);
99// KDDockWidgets::Core::MainWindow::overlayOnSideBar(KDDockWidgets::Core::DockWidget * dw)
100DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__overlayOnSideBar_DockWidget(void *thisObj, void *dw_);
101// KDDockWidgets::Core::MainWindow::overlayedDockWidget() const
102DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__overlayedDockWidget(void *thisObj);
103// KDDockWidgets::Core::MainWindow::restoreFromSideBar(KDDockWidgets::Core::DockWidget * dw)
104DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__restoreFromSideBar_DockWidget(void *thisObj, void *dw_);
105// KDDockWidgets::Core::MainWindow::setContentsMargins(int l, int t, int r, int b)
106DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setContentsMargins_int_int_int_int(void *thisObj, int l, int t, int r, int b);
107// KDDockWidgets::Core::MainWindow::setOverlayMargin(int margin)
108DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setOverlayMargin_int(void *thisObj, int margin);
109// KDDockWidgets::Core::MainWindow::setParentView_impl(KDDockWidgets::Core::View * parent)
110DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setParentView_impl_View(void *thisObj, void *parent_);
111// KDDockWidgets::Core::MainWindow::setUniqueName(const QString & uniqueName)
112DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__setUniqueName_QString(void *thisObj, const char *uniqueName_);
113// KDDockWidgets::Core::MainWindow::sideBarForDockWidget(const KDDockWidgets::Core::DockWidget * dw) const
114DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__sideBarForDockWidget_DockWidget(void *thisObj, void *dw_);
115// KDDockWidgets::Core::MainWindow::toggleOverlayOnSideBar(KDDockWidgets::Core::DockWidget * dw)
116DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__toggleOverlayOnSideBar_DockWidget(void *thisObj, void *dw_);
117// KDDockWidgets::Core::MainWindow::uniqueName() const
118DOCKS_EXPORT void *c_KDDockWidgets__Core__MainWindow__uniqueName(void *thisObj);
119DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__destructor(void *thisObj);
120DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
121DOCKS_EXPORT void c_KDDockWidgets__Core__MainWindow_Finalizer(void *cppObj);
122}
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__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 deleteFrame)
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)
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