KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
KDDWBindingsCore/DockWidget_c.cpp
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 "DockWidget_c.h"
12
13
14#include <iostream>
15
16#include <cassert>
17
18
19namespace Dartagnan {
20
21typedef int (*CleanupCallback)(void *thisPtr);
23
24template<typename T>
25struct ValueWrapper
26{
27 T value;
28};
29
30}
32namespace KDDWBindingsCore {
34 : ::KDDockWidgets::Core::DockWidget(view, uniqueName, options, layoutSaverOptions)
35{
36}
46{
47 return ::KDDockWidgets::Core::DockWidget::byName(uniqueName);
48}
50{
51 return ::KDDockWidgets::Core::DockWidget::currentTabIndex();
52}
54{
55 return ::KDDockWidgets::Core::DockWidget::floatingWindow();
56}
61KDDockWidgets::Rect DockWidget_wrapper::groupGeometry() const
62{
63 return ::KDDockWidgets::Core::DockWidget::groupGeometry();
64}
66{
67 return ::KDDockWidgets::Core::DockWidget::hasPreviousDockedLocation();
68}
74{
75 return ::KDDockWidgets::Core::DockWidget::isCurrentTab();
76}
78{
79 return ::KDDockWidgets::Core::DockWidget::isFloating();
80}
82{
83 return ::KDDockWidgets::Core::DockWidget::isFocused();
84}
86{
87 return ::KDDockWidgets::Core::DockWidget::isInMainWindow();
88}
90{
91 return ::KDDockWidgets::Core::DockWidget::isInSideBar();
92}
94{
95 return ::KDDockWidgets::Core::DockWidget::isMainWindow();
96}
98{
99 return ::KDDockWidgets::Core::DockWidget::isOpen();
100}
102{
103 return ::KDDockWidgets::Core::DockWidget::isOverlayed();
104}
106{
107 return ::KDDockWidgets::Core::DockWidget::isPersistentCentralDockWidget();
108}
110{
111 return ::KDDockWidgets::Core::DockWidget::isTabbed();
112}
113KDDockWidgets::Size DockWidget_wrapper::lastOverlayedSize() const
114{
115 return ::KDDockWidgets::Core::DockWidget::lastOverlayedSize();
116}
118{
119 return ::KDDockWidgets::Core::DockWidget::layoutSaverOptions();
120}
122{
123 return ::KDDockWidgets::Core::DockWidget::mainWindow();
124}
126{
127 return ::KDDockWidgets::Core::DockWidget::mdiZ();
128}
133void DockWidget_wrapper::onResize(KDDockWidgets::Size newSize)
134{
136}
142{
143 return ::KDDockWidgets::Core::DockWidget::options();
144}
153void DockWidget_wrapper::resizeInLayout(int left, int top, int right, int bottom)
154{
156}
166{
167 return ::KDDockWidgets::Core::DockWidget::setFloating(floats);
168}
190{
192 const void *thisPtr = this;
193 m_setParentView_implCallback(const_cast<void *>(thisPtr), parent);
194 } else {
196 }
197}
218KDDockWidgets::Size DockWidget_wrapper::sizeInLayout() const
219{
220 return ::KDDockWidgets::Core::DockWidget::sizeInLayout();
221}
223{
224 return ::KDDockWidgets::Core::DockWidget::skipsRestore();
225}
227{
228 return ::KDDockWidgets::Core::DockWidget::startDragging(singleTab);
229}
231{
232 return ::KDDockWidgets::Core::DockWidget::tabIndex();
233}
235{
236 return ::KDDockWidgets::Core::DockWidget::title();
237}
239{
240 return ::KDDockWidgets::Core::DockWidget::titleBar();
241}
243{
244 return ::KDDockWidgets::Core::DockWidget::uniqueName();
245}
247{
248 return ::KDDockWidgets::Core::DockWidget::userType();
249}
251{
252 return ::KDDockWidgets::Core::DockWidget::wasRestored();
253}
257
258}
259}
261{
262 return reinterpret_cast<KDDockWidgets::Core::DockWidget *>(ptr);
263}
268extern "C" {
273void *c_KDDockWidgets__Core__DockWidget__constructor_View_QString_DockWidgetOptions_LayoutSaverOptions(void *view_, const char *uniqueName_, int options_, int layoutSaverOptions_)
274{
275 auto view = reinterpret_cast<KDDockWidgets::Core::View *>(view_);
276 const auto uniqueName = QString::fromUtf8(uniqueName_);
277 auto options = static_cast<QFlags<KDDockWidgets::DockWidgetOption>>(options_);
278 auto layoutSaverOptions = static_cast<QFlags<KDDockWidgets::LayoutSaverOption>>(layoutSaverOptions_);
279 auto ptr = new KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DockWidget_wrapper(view, uniqueName, options, layoutSaverOptions);
280 return reinterpret_cast<void *>(ptr);
281}
282// addDockWidgetAsTab(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::InitialOption initialOption)
283void c_KDDockWidgets__Core__DockWidget__addDockWidgetAsTab_DockWidget_InitialOption(void *thisObj, void *other_, void *initialOption_)
284{
285 auto other = reinterpret_cast<KDDockWidgets::Core::DockWidget *>(other_);
286 assert(initialOption_);
287 auto &initialOption = *reinterpret_cast<KDDockWidgets::InitialOption *>(initialOption_);
288 fromPtr(thisObj)->addDockWidgetAsTab(other, initialOption);
289}
290// addDockWidgetToContainingWindow(KDDockWidgets::Core::DockWidget * other, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget * relativeTo, KDDockWidgets::InitialOption initialOption)
291void c_KDDockWidgets__Core__DockWidget__addDockWidgetToContainingWindow_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *other_, int location, void *relativeTo_, void *initialOption_)
292{
293 auto other = reinterpret_cast<KDDockWidgets::Core::DockWidget *>(other_);
294 auto relativeTo = reinterpret_cast<KDDockWidgets::Core::DockWidget *>(relativeTo_);
295 assert(initialOption_);
296 auto &initialOption = *reinterpret_cast<KDDockWidgets::InitialOption *>(initialOption_);
297 fromPtr(thisObj)->addDockWidgetToContainingWindow(other, static_cast<KDDockWidgets::Location>(location), relativeTo, initialOption);
298}
299// byName(const QString & uniqueName)
301{
302 const auto uniqueName = QString::fromUtf8(uniqueName_);
304 free(( char * )uniqueName_);
305 return result;
306}
307// currentTabIndex() const
309{
310 const auto &result = fromPtr(thisObj)->currentTabIndex();
311 return result;
312}
313// floatingWindow() const
315{
316 const auto &result = fromPtr(thisObj)->floatingWindow();
317 return result;
318}
319// forceClose()
321{
322 fromPtr(thisObj)->forceClose();
323}
324// groupGeometry() const
326{
327 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Rect> { fromPtr(thisObj)->groupGeometry() };
328 return result;
329}
330// hasPreviousDockedLocation() const
332{
333 const auto &result = fromPtr(thisObj)->hasPreviousDockedLocation();
334 return result;
335}
336// init()
338{
339 fromPtr(thisObj)->init();
340}
341// isCurrentTab() const
343{
344 const auto &result = fromPtr(thisObj)->isCurrentTab();
345 return result;
346}
347// isFloating() const
349{
350 const auto &result = fromPtr(thisObj)->isFloating();
351 return result;
352}
353// isFocused() const
355{
356 const auto &result = fromPtr(thisObj)->isFocused();
357 return result;
358}
359// isInMainWindow() const
361{
362 const auto &result = fromPtr(thisObj)->isInMainWindow();
363 return result;
364}
365// isInSideBar() const
367{
368 const auto &result = fromPtr(thisObj)->isInSideBar();
369 return result;
370}
371// isMainWindow() const
373{
374 const auto &result = fromPtr(thisObj)->isMainWindow();
375 return result;
376}
377// isOpen() const
379{
380 const auto &result = fromPtr(thisObj)->isOpen();
381 return result;
382}
383// isOverlayed() const
385{
386 const auto &result = fromPtr(thisObj)->isOverlayed();
387 return result;
388}
389// isPersistentCentralDockWidget() const
391{
392 const auto &result = fromPtr(thisObj)->isPersistentCentralDockWidget();
393 return result;
394}
395// isTabbed() const
397{
398 const auto &result = fromPtr(thisObj)->isTabbed();
399 return result;
400}
401// lastOverlayedSize() const
403{
404 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { fromPtr(thisObj)->lastOverlayedSize() };
405 return result;
406}
407// layoutSaverOptions() const
409{
410 const auto &result = fromPtr(thisObj)->layoutSaverOptions();
411 return result;
412}
413// mainWindow() const
415{
416 const auto &result = fromPtr(thisObj)->mainWindow();
417 return result;
418}
419// mdiZ() const
421{
422 const auto &result = fromPtr(thisObj)->mdiZ();
423 return result;
424}
425// moveToSideBar()
427{
428 fromPtr(thisObj)->moveToSideBar();
429}
430// onResize(KDDockWidgets::Size newSize)
431void c_KDDockWidgets__Core__DockWidget__onResize_Size(void *thisObj, void *newSize_)
432{
433 assert(newSize_);
434 auto &newSize = *reinterpret_cast<KDDockWidgets::Size *>(newSize_);
435 fromPtr(thisObj)->onResize(newSize);
436}
437// open()
439{
440 fromPtr(thisObj)->open();
441}
442// options() const
444{
445 const auto &result = fromPtr(thisObj)->options();
446 return result;
447}
448// raise()
450{
451 fromPtr(thisObj)->raise();
452}
453// removeFromSideBar()
458// resizeInLayout(int left, int top, int right, int bottom)
459void c_KDDockWidgets__Core__DockWidget__resizeInLayout_int_int_int_int(void *thisObj, int left, int top, int right, int bottom)
460{
461 fromPtr(thisObj)->resizeInLayout(left, top, right, bottom);
462}
463// setAffinityName(const QString & name)
465{
466 const auto name = QString::fromUtf8(name_);
467 fromPtr(thisObj)->setAffinityName(name);
468 free(( char * )name_);
469}
470// setAsCurrentTab()
475// setFloating(bool floats)
477{
478 const auto &result = fromPtr(thisObj)->setFloating(floats);
479 return result;
480}
481// setFloatingGeometry(KDDockWidgets::Rect geo)
483{
484 assert(geo_);
485 auto &geo = *reinterpret_cast<KDDockWidgets::Rect *>(geo_);
486 fromPtr(thisObj)->setFloatingGeometry(geo);
487}
488// setMDIPosition(KDDockWidgets::Point pos)
490{
491 assert(pos_);
492 auto &pos = *reinterpret_cast<KDDockWidgets::Point *>(pos_);
493 fromPtr(thisObj)->setMDIPosition(pos);
494}
495// setMDISize(KDDockWidgets::Size size)
497{
498 assert(size_);
499 auto &size = *reinterpret_cast<KDDockWidgets::Size *>(size_);
500 fromPtr(thisObj)->setMDISize(size);
501}
502// setMDIZ(int z)
504{
505 fromPtr(thisObj)->setMDIZ(z);
506}
507// setOptions(QFlags<KDDockWidgets::DockWidgetOption> arg__1)
509{
510 auto arg__1 = static_cast<QFlags<KDDockWidgets::DockWidgetOption>>(arg__1_);
511 fromPtr(thisObj)->setOptions(arg__1);
512}
513// setParentView_impl(KDDockWidgets::Core::View * parent)
515{
516 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
518}
519// setTitle(const QString & title)
520void c_KDDockWidgets__Core__DockWidget__setTitle_QString(void *thisObj, const char *title_)
521{
522 const auto title = QString::fromUtf8(title_);
523 fromPtr(thisObj)->setTitle(title);
524 free(( char * )title_);
525}
526// setUniqueName(const QString & arg__1)
527void c_KDDockWidgets__Core__DockWidget__setUniqueName_QString(void *thisObj, const char *arg__1_)
528{
529 const auto arg__1 = QString::fromUtf8(arg__1_);
530 fromPtr(thisObj)->setUniqueName(arg__1);
531 free(( char * )arg__1_);
532}
533// setUserType(int userType)
535{
536 fromPtr(thisObj)->setUserType(userType);
537}
538// show()
540{
541 fromPtr(thisObj)->show();
542}
543// sizeInLayout() const
545{
546 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { fromPtr(thisObj)->sizeInLayout() };
547 return result;
548}
549// skipsRestore() const
551{
552 const auto &result = fromPtr(thisObj)->skipsRestore();
553 return result;
554}
555// startDragging(bool singleTab)
557{
558 const auto &result = fromPtr(thisObj)->startDragging(singleTab);
559 return result;
560}
561// tabIndex() const
563{
564 const auto &result = fromPtr(thisObj)->tabIndex();
565 return result;
566}
567// title() const
569{
570 const auto &result = new Dartagnan::ValueWrapper<QString> { fromPtr(thisObj)->title() };
571 return result;
572}
573// titleBar() const
575{
576 const auto &result = fromPtr(thisObj)->titleBar();
577 return result;
578}
579// uniqueName() const
581{
582 const auto &result = new Dartagnan::ValueWrapper<QString> { fromPtr(thisObj)->uniqueName() };
583 return result;
584}
585// userType() const
587{
588 const auto &result = fromPtr(thisObj)->userType();
589 return result;
590}
591// wasRestored() const
593{
594 const auto &result = fromPtr(thisObj)->wasRestored();
595 return result;
596}
598{
599 delete fromPtr(thisObj);
600}
601void c_KDDockWidgets__Core__DockWidget__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
602{
603 auto wrapper = fromWrapperPtr(ptr);
604 switch (methodId) {
605 case 331:
606 wrapper->m_setParentView_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DockWidget_wrapper::Callback_setParentView_impl>(callback);
607 break;
608 }
609}
610}
void c_KDDockWidgets__Core__DockWidget_Finalizer(void *cppObj)
void c_KDDockWidgets__Core__DockWidget__setMDIPosition_Point(void *thisObj, void *pos_)
void c_KDDockWidgets__Core__DockWidget__setParentView_impl_View(void *thisObj, void *parent_)
void c_KDDockWidgets__Core__DockWidget__setAsCurrentTab(void *thisObj)
int c_KDDockWidgets__Core__DockWidget__options(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__raise(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__startDragging_bool(void *thisObj, bool singleTab)
void c_KDDockWidgets__Core__DockWidget__init(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isPersistentCentralDockWidget(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setMDIZ_int(void *thisObj, int z)
void c_KDDockWidgets__Core__DockWidget__moveToSideBar(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__sizeInLayout(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__floatingWindow(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setMDISize_Size(void *thisObj, void *size_)
bool c_KDDockWidgets__Core__DockWidget__skipsRestore(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__mainWindow(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__titleBar(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isFloating(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setFloatingGeometry_Rect(void *thisObj, void *geo_)
void c_KDDockWidgets__Core__DockWidget__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
void c_KDDockWidgets__Core__DockWidget__resizeInLayout_int_int_int_int(void *thisObj, int left, int top, int right, int bottom)
void c_KDDockWidgets__Core__DockWidget__setOptions_DockWidgetOptions(void *thisObj, int arg__1_)
int c_KDDockWidgets__Core__DockWidget__userType(void *thisObj)
int c_KDDockWidgets__Core__DockWidget__tabIndex(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__lastOverlayedSize(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__show(void *thisObj)
int c_KDDockWidgets__Core__DockWidget__layoutSaverOptions(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__setFloating_bool(void *thisObj, bool floats)
int c_KDDockWidgets__Core__DockWidget__currentTabIndex(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__addDockWidgetAsTab_DockWidget_InitialOption(void *thisObj, void *other_, void *initialOption_)
void * c_KDDockWidgets__Core__DockWidget__groupGeometry(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__removeFromSideBar(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DockWidget_wrapper * fromWrapperPtr(void *ptr)
void * c_KDDockWidgets__Core__DockWidget__uniqueName(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isOverlayed(void *thisObj)
void * c_static_KDDockWidgets__Core__DockWidget__byName_QString(const char *uniqueName_)
bool c_KDDockWidgets__Core__DockWidget__isTabbed(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__onResize_Size(void *thisObj, void *newSize_)
void c_KDDockWidgets__Core__DockWidget__addDockWidgetToContainingWindow_DockWidget_Location_DockWidget_InitialOption(void *thisObj, void *other_, int location, void *relativeTo_, void *initialOption_)
bool c_KDDockWidgets__Core__DockWidget__wasRestored(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__destructor(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isOpen(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setAffinityName_QString(void *thisObj, const char *name_)
void c_KDDockWidgets__Core__DockWidget__setUserType_int(void *thisObj, int userType)
bool c_KDDockWidgets__Core__DockWidget__isInMainWindow(void *thisObj)
static KDDockWidgets::Core::DockWidget * fromPtr(void *ptr)
bool c_KDDockWidgets__Core__DockWidget__isCurrentTab(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__constructor_View_QString_DockWidgetOptions_LayoutSaverOptions(void *view_, const char *uniqueName_, int options_, int layoutSaverOptions_)
bool c_KDDockWidgets__Core__DockWidget__isMainWindow(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setTitle_QString(void *thisObj, const char *title_)
int c_KDDockWidgets__Core__DockWidget__mdiZ(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__hasPreviousDockedLocation(void *thisObj)
void * c_KDDockWidgets__Core__DockWidget__title(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isFocused(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__open(void *thisObj)
void c_KDDockWidgets__Core__DockWidget__setUniqueName_QString(void *thisObj, const char *arg__1_)
void c_KDDockWidgets__Core__DockWidget__forceClose(void *thisObj)
bool c_KDDockWidgets__Core__DockWidget__isInSideBar(void *thisObj)
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={})
DockWidget_wrapper(KDDockWidgets::Core::View *view, const QString &uniqueName, QFlags< KDDockWidgets::DockWidgetOption > options={}, QFlags< KDDockWidgets::LayoutSaverOption > layoutSaverOptions={})
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
void setMDISize(Size size)
like setMDIPosition(), but for the size.
bool setFloating(bool floats)
setter to make the dock widget float or dock.
Core::TitleBar * titleBar() const
Returns this dock widget's title bar.
void setAsCurrentTab()
Makes this dock widget current in its tab group.
void setTitle(const QString &title)
setter for the dock widget's title
void show()
Deprecated, use open() instead. Visibility isn't a good concept since tabbed non-current dock widgets...
bool isCurrentTab() const
Returns true if this dock widget is the current one in the tab widget that contains it....
MainWindow * mainWindow() const
Returns the main window this dock widget is in. nullptr if it's not inside a main window Also returns...
Size lastOverlayedSize() const
returns the last size the widget has when overlayed Empty otherwise
void resizeInLayout(int left, int top, int right, int bottom)
void setUserType(int userType)
Allows the user to set a type on this dock widget The type is opaque and will not be interpreted by K...
QString uniqueName() const
the dock widget's unique name.
void addDockWidgetToContainingWindow(KDDockWidgets::Core::DockWidget *other, KDDockWidgets::Location location, KDDockWidgets::Core::DockWidget *relativeTo=nullptr, const KDDockWidgets::InitialOption &initialOption={})
docks other widget into the window that contains this one. Equivalent to MainWindow::addDockWidget() ...
Rect groupGeometry() const
Returns the size of the dock widget's parent group.
bool skipsRestore() const
Returns whether this widget has the LayoutSaverOption::Skip flag.
void addDockWidgetAsTab(KDDockWidgets::Core::DockWidget *other, const KDDockWidgets::InitialOption &initialOption={})
docks other widget into this one. Tabs will be shown if not already.
void setOptions(DockWidgetOptions)
Setter for the options. Only DockWidetOption_NotClosable is allowed to change after construction....
bool isOpen() const
Returns whether this dock widget is open. Equivalent to calling toggleAction().isChecked()
void open()
Opens this dock widget. Does nothing if already open. The dock widget will appear floating unless it ...
bool isFocused() const
Returns whether This or any child of this dock widget is focused Not to be confused with QWidget::has...
void removeFromSideBar()
Removes itself from the sidebar, if it's in the sidebar.
bool isOverlayed() const
Returns whether this dock widget is overlayed from the side-bar.
void setMDIZ(int z)
like setMDIPosition(), but for the Z only implemented for QtQuick
bool isTabbed() const
returns if this dock widget is tabbed into another
QString title() const
Returns the dock widget's title. This title is visible in title bars and tab bars.
bool isInSideBar() const
Returns where this dockwidget is in a sidebar Similar to sideBarLocation(), but returns a bool.
int tabIndex() const
Returns the tab index this dock widget occupies Note that dock widgets are almost always tabbed,...
int currentTabIndex() const
Returns the index of the current tab of the tab group this dock widget is in.
void moveToSideBar()
Minimizes this dock widget to the MainWindow's side-bar.
bool isFloating() const
Returns whether the dock widget is floating. Floating means it's not docked and has a window of its o...
bool startDragging(bool singleTab=false)
void setParentView_impl(View *parent) override
void setMDIPosition(Point pos)
Sets this dock widgets position to pos within the MDI layout This only applies if the main window is ...
bool isInMainWindow() const
Returns whether this dock widget is docked into a main window (as opposed to floating)
void setFloatingGeometry(Rect geo)
If this dock widget is floating, then sets its geometry to geo.
void raise()
Brings the dock widget to the front.
bool hasPreviousDockedLocation() const
Returns whether this floating dock widget knows its previous docked location Result only makes sense ...
bool isPersistentCentralDockWidget() const
Returns whether this dock widget is the main window persistent central widget This only applies when ...
bool isMainWindow() const
Returns whether widget() is a KDDockWidget::MainWindow.
FloatingWindow * floatingWindow() const
returns the FloatingWindow this widget is in, otherwise nullptr
DockWidgetOptions options() const
Returns the dock widget's options which control behaviour.
KDDockWidgets::LayoutSaverOptions layoutSaverOptions() const
returns the per-dockwidget options which will affect LayoutSaver These are the options which were pas...
void forceClose()
Like QWidget::close() but the hosted widget won't be asked if we should close.
void setAffinityName(const QString &name)
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
int(* CleanupCallback)(void *thisPtr)
Definition Config_c.cpp:21
static CleanupCallback s_cleanupCallback
Definition Config_c.cpp:22
Class to abstract QAction, so code still works with QtQuick and Flutter.
QString fromUtf8(const char *str, int size)
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