32namespace KDDWBindingsCore {
34 : ::
KDDockWidgets::Core::MainWindow(view, uniqueName, options)
47 return ::KDDockWidgets::Core::MainWindow::anySideBarIsVisible();
51 return ::KDDockWidgets::Core::MainWindow::centerWidgetMargins();
55 return ::KDDockWidgets::Core::MainWindow::centralAreaGeometry();
63 return ::KDDockWidgets::Core::MainWindow::closeDockWidgets(force);
67 return ::KDDockWidgets::Core::MainWindow::dropArea();
75 return ::KDDockWidgets::Core::MainWindow::isMDI();
79 return ::KDDockWidgets::Core::MainWindow::layout();
95 return ::KDDockWidgets::Core::MainWindow::multiSplitter();
99 return ::KDDockWidgets::Core::MainWindow::options();
103 return ::KDDockWidgets::Core::MainWindow::overlayMargin();
111 return ::KDDockWidgets::Core::MainWindow::overlayedDockWidget();
128 const void *thisPtr =
this;
144 return ::KDDockWidgets::Core::MainWindow::sideBarForDockWidget(dw);
152 return ::KDDockWidgets::Core::MainWindow::uniqueName();
179 return reinterpret_cast<void *
>(ptr);
186 assert(initialOption_);
236 free((
char * )name_);
324 free((
char * )uniqueName_);
342 const auto &result =
new Dartagnan::ValueWrapper<QString> {
fromPtr(thisObj)->
uniqueName() };
void c_KDDockWidgets__Core__MainWindow__moveToSideBar_DockWidget(void *thisObj, void *dw_)
void c_KDDockWidgets__Core__MainWindow__layoutParentContainerEqually_DockWidget(void *thisObj, void *dockWidget_)
int c_KDDockWidgets__Core__MainWindow__options(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__setOverlayMargin_int(void *thisObj, int margin)
void c_KDDockWidgets__Core__MainWindow__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
void c_KDDockWidgets__Core__MainWindow__destructor(void *thisObj)
bool c_KDDockWidgets__Core__MainWindow__anySideBarIsVisible(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::MainWindow_wrapper * fromWrapperPtr(void *ptr)
void * c_KDDockWidgets__Core__MainWindow__overlayedDockWidget(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__overlayOnSideBar_DockWidget(void *thisObj, void *dw_)
void * c_KDDockWidgets__Core__MainWindow__sideBarForDockWidget_DockWidget(void *thisObj, void *dw_)
void c_KDDockWidgets__Core__MainWindow__clearSideBarOverlay_bool(void *thisObj, bool deleteFrame)
void * c_KDDockWidgets__Core__MainWindow__centralAreaGeometry(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__setContentsMargins_int_int_int_int(void *thisObj, int l, int t, int r, int b)
static KDDockWidgets::Core::MainWindow * fromPtr(void *ptr)
bool c_KDDockWidgets__Core__MainWindow__isMDI(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__layoutEqually(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__toggleOverlayOnSideBar_DockWidget(void *thisObj, void *dw_)
void * c_KDDockWidgets__Core__MainWindow__layout(void *thisObj)
void * c_KDDockWidgets__Core__MainWindow__multiSplitter(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__restoreFromSideBar_DockWidget(void *thisObj, void *dw_)
void * c_KDDockWidgets__Core__MainWindow__dropArea(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__setParentView_impl_View(void *thisObj, void *parent_)
bool c_KDDockWidgets__Core__MainWindow__closeDockWidgets_bool(void *thisObj, bool force)
void * c_KDDockWidgets__Core__MainWindow__uniqueName(void *thisObj)
void * c_KDDockWidgets__Core__MainWindow__constructor_View_QString_MainWindowOptions(void *view_, const char *uniqueName_, int options_)
void * c_KDDockWidgets__Core__MainWindow__centerWidgetMargins(void *thisObj)
void c_KDDockWidgets__Core__MainWindow_Finalizer(void *cppObj)
int c_KDDockWidgets__Core__MainWindow__overlayMargin(void *thisObj)
void c_KDDockWidgets__Core__MainWindow__init_QString(void *thisObj, const char *name_)
void c_KDDockWidgets__Core__MainWindow__addDockWidgetAsTab_DockWidget(void *thisObj, void *dockwidget_)
void c_KDDockWidgets__Core__MainWindow__setUniqueName_QString(void *thisObj, const char *uniqueName_)
void c_KDDockWidgets__Core__MainWindow__addDockWidget_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *dockWidget_, int location, void *relativeTo_, void *initialOption_)
bool anySideBarIsVisible() const
void clearSideBarOverlay(bool deleteFrame=true)
int overlayMargin() const
void toggleOverlayOnSideBar(KDDockWidgets::Core::DockWidget *dw)
void init(const QString &name)
void setContentsMargins(int l, int t, int r, int b)
virtual void setParentView_impl_nocallback(KDDockWidgets::Core::View *parent)
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
KDDockWidgets::Core::DropArea * multiSplitter() const
void setOverlayMargin(int margin)
Callback_setParentView_impl m_setParentView_implCallback
KDDockWidgets::Core::SideBar * sideBarForDockWidget(const KDDockWidgets::Core::DockWidget *dw) const
QFlags< KDDockWidgets::MainWindowOption > options() const
bool closeDockWidgets(bool force=false)
QString uniqueName() const
KDDockWidgets::Core::Layout * layout() const
void overlayOnSideBar(KDDockWidgets::Core::DockWidget *dw)
void addDockWidget(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, KDDockWidgets::InitialOption initialOption={})
MainWindow_wrapper(KDDockWidgets::Core::View *view, const QString &uniqueName, QFlags< KDDockWidgets::MainWindowOption > options)
void setUniqueName(const QString &uniqueName)
void restoreFromSideBar(KDDockWidgets::Core::DockWidget *dw)
void addDockWidgetAsTab(KDDockWidgets::Core::DockWidget *dockwidget)
virtual void setParentView_impl(KDDockWidgets::Core::View *parent)
KDDockWidgets::Core::DropArea * dropArea() const
KDDockWidgets::Rect centralAreaGeometry() const
void layoutParentContainerEqually(KDDockWidgets::Core::DockWidget *dockWidget)
KDDockWidgets::Margins centerWidgetMargins() const
KDDockWidgets::Core::DockWidget * overlayedDockWidget() const
void moveToSideBar(KDDockWidgets::Core::DockWidget *dw)
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
void clearSideBarOverlay(bool deleteFrame=true)
closes any overlayed dock widget. The sidebar still displays them as button.
QString uniqueName() const
Returns the unique name that was passed via constructor. Used internally by the save/restore mechanis...
void setOverlayMargin(int margin)
Sets the margin used by overlay docks. Does not modify currently overlayed docks.
void addDockWidgetAsTab(KDDockWidgets::Core::DockWidget *dockwidget)
Docks a DockWidget into the central group, tabbed.
void overlayOnSideBar(KDDockWidgets::Core::DockWidget *dw)
Shows the dock widget overlayed on top of the main window, placed next to the sidebar.
KDDockWidgets::Core::SideBar * sideBarForDockWidget(const KDDockWidgets::Core::DockWidget *dw) const
Returns the sidebar this dockwidget is in. nullptr if not in any.
DropArea * dropArea() const
void toggleOverlayOnSideBar(KDDockWidgets::Core::DockWidget *dw)
Shows or hides an overlay. It's assumed the dock widget is already in a side-bar.
void layoutParentContainerEqually(KDDockWidgets::Core::DockWidget *dockWidget)
like layoutEqually() but starts with the container that has dockWidget. While layoutEqually() starts ...
Margins centerWidgetMargins() const
bool anySideBarIsVisible() const
Returns whether any side bar is visible.
void addDockWidget(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, KDDockWidgets::InitialOption initialOption={})
Docks a DockWidget into this main window.
int overlayMargin() const
Returns the margin used by overlay docks. Default: 1.
void setContentsMargins(int l, int t, int r, int b)
Sets the content's margins.
void layoutEqually()
layouts all the widgets so they have an equal size within their parent container
DropArea * multiSplitter() const
MainWindowOptions options() const
Returns the main window options that were passed via constructor.
Core::DockWidget * overlayedDockWidget() const
returns the dock widget which is currently overlayed. nullptr if none. This is only relevant when usi...
void moveToSideBar(KDDockWidgets::Core::DockWidget *dw)
Moves the dock widget into one of the MainWindow's sidebar. Means the dock widget is removed from the...
bool closeDockWidgets(bool force=false)
Closes all dock widgets which are docked into this main window This is convenience to calling DockWid...
void init(const QString &name)
bool isMDI() const
Returns whether this main window is using an MDI layout. In other words, returns true if MainWindowOp...
void restoreFromSideBar(KDDockWidgets::Core::DockWidget *dw)
Removes the dock widget from the sidebar and docks it into the main window again.
void setUniqueName(const QString &uniqueName)
int(* CleanupCallback)(void *thisPtr)
static CleanupCallback s_cleanupCallback
QString fromUtf8(const char *str, int size)