32namespace KDDWBindingsCore {
34 : ::
KDDockWidgets::Core::MainWindow(view, uniqueName, options)
51 return ::KDDockWidgets::Core::MainWindow::anySideBarIsVisible();
55 return ::KDDockWidgets::Core::MainWindow::centerWidgetMargins();
59 return ::KDDockWidgets::Core::MainWindow::centralAreaGeometry();
67 return ::KDDockWidgets::Core::MainWindow::closeDockWidgets(force);
71 return ::KDDockWidgets::Core::MainWindow::dropArea();
79 return ::KDDockWidgets::Core::MainWindow::isMDI();
83 return ::KDDockWidgets::Core::MainWindow::layout();
99 return ::KDDockWidgets::Core::MainWindow::multiSplitter();
103 return ::KDDockWidgets::Core::MainWindow::options();
107 return ::KDDockWidgets::Core::MainWindow::overlayMargin();
115 return ::KDDockWidgets::Core::MainWindow::overlayedDockWidget();
132 const void *thisPtr =
this;
148 return ::KDDockWidgets::Core::MainWindow::sideBarForDockWidget(dw);
156 return ::KDDockWidgets::Core::MainWindow::uniqueName();
183 return reinterpret_cast<void *
>(ptr);
190 assert(initialOption_);
204 assert(initialOption_);
248 free((
char * )name_);
336 free((
char * )uniqueName_);
354 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__addDockWidgetToSide_DockWidget_Location_InitialOption(void *thisObj, void *dockWidget_, int location, void *initialOption_)
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__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__clearSideBarOverlay_bool(void *thisObj, bool deleteGroup)
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
int overlayMargin() const
void toggleOverlayOnSideBar(KDDockWidgets::Core::DockWidget *dw)
void init(const QString &name)
void setContentsMargins(int l, int t, int r, int b)
void clearSideBarOverlay(bool deleteGroup=true)
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)
void addDockWidgetToSide(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::InitialOption initialOption={})
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...
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.
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
void clearSideBarOverlay(bool deleteGroup=true)
closes any overlayed dock widget. The sidebar still displays them as button.
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 addDockWidgetToSide(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, const KDDockWidgets::InitialOption &initialOption={})
void restoreFromSideBar(KDDockWidgets::Core::DockWidget *dw)
Removes the dock widget from the sidebar and docks it into the main window again.
void addDockWidget(KDDockWidgets::Core::DockWidget *dockWidget, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, const KDDockWidgets::InitialOption &initialOption={})
Docks a DockWidget into this main window.
void setUniqueName(const QString &uniqueName)
int(* CleanupCallback)(void *thisPtr)
static CleanupCallback s_cleanupCallback
QString fromUtf8(const char *str, int size)