KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
KDDWBindingsCore/Platform_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 "Platform_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::Platform()
35{
36}
38{
40 const void *thisPtr = this;
41 return *m_applicationNameCallback(const_cast<void *>(thisPtr));
42 } else {
43 std::cerr << "applicationName: Warning: Calling pure-virtual\n";
44 return {};
45 }
46}
48{
49 std::cerr << "applicationName: Warning: Calling pure-virtual\n";
50 return {};
51}
53{
55 const void *thisPtr = this;
56 return m_createDefaultViewFactoryCallback(const_cast<void *>(thisPtr));
57 } else {
58 std::cerr << "createDefaultViewFactory: Warning: Calling pure-virtual\n";
59 return {};
60 }
61}
63{
64 std::cerr << "createDefaultViewFactory: Warning: Calling pure-virtual\n";
65 return {};
66}
67KDDockWidgets::Core::MainWindow *Platform_wrapper::createMainWindow(const QString &uniqueName, KDDockWidgets::Core::CreateViewOptions arg__2, QFlags<KDDockWidgets::MainWindowOption> options, KDDockWidgets::Core::View *parent, Qt::WindowFlags arg__5) const
68{
70 const void *thisPtr = this;
71 return m_createMainWindowCallback(const_cast<void *>(thisPtr), uniqueName, &arg__2, options, parent, arg__5);
72 } else {
73 std::cerr << "createMainWindow: Warning: Calling pure-virtual\n";
74 return {};
75 }
76}
78{
79 std::cerr << "createMainWindow: Warning: Calling pure-virtual\n";
80 return {};
81}
83{
85 const void *thisPtr = this;
86 return m_createViewCallback(const_cast<void *>(thisPtr), arg__1, parent);
87 } else {
88 std::cerr << "createView: Warning: Calling pure-virtual\n";
89 return {};
90 }
91}
93{
94 std::cerr << "createView: Warning: Calling pure-virtual\n";
95 return {};
96}
97KDDockWidgets::Point Platform_wrapper::cursorPos() const
98{
100 const void *thisPtr = this;
101 return *m_cursorPosCallback(const_cast<void *>(thisPtr));
102 } else {
103 std::cerr << "cursorPos: Warning: Calling pure-virtual\n";
104 return {};
105 }
106}
107KDDockWidgets::Point Platform_wrapper::cursorPos_nocallback() const
108{
109 std::cerr << "cursorPos: Warning: Calling pure-virtual\n";
110 return {};
111}
113{
115 const void *thisPtr = this;
116 m_dumpManagedBacktraceCallback(const_cast<void *>(thisPtr));
117 } else {
119 }
120}
126{
128 const void *thisPtr = this;
129 return m_hasActivePopupCallback(const_cast<void *>(thisPtr));
130 } else {
131 return ::KDDockWidgets::Core::Platform::hasActivePopup();
132 }
133}
135{
136 return ::KDDockWidgets::Core::Platform::hasActivePopup();
137}
138bool Platform_wrapper::inDisallowedDragView(KDDockWidgets::Point globalPos) const
139{
141 const void *thisPtr = this;
142 return m_inDisallowedDragViewCallback(const_cast<void *>(thisPtr), &globalPos);
143 } else {
144 std::cerr << "inDisallowedDragView: Warning: Calling pure-virtual\n";
145 return {};
146 }
147}
148bool Platform_wrapper::inDisallowedDragView_nocallback(KDDockWidgets::Point globalPos) const
149{
150 std::cerr << "inDisallowedDragView: Warning: Calling pure-virtual\n";
151 return {};
152}
154{
156 const void *thisPtr = this;
157 m_installMessageHandlerCallback(const_cast<void *>(thisPtr));
158 } else {
159 std::cerr << "installMessageHandler: Warning: Calling pure-virtual\n";
160 return;
161 }
162}
164{
165 std::cerr << "installMessageHandler: Warning: Calling pure-virtual\n";
166 return;
167}
169{
170 return ::KDDockWidgets::Core::Platform::instance();
171}
173{
174 return ::KDDockWidgets::Core::Platform::isInitialized();
175}
177{
179 const void *thisPtr = this;
180 return m_isLeftMouseButtonPressedCallback(const_cast<void *>(thisPtr));
181 } else {
182 std::cerr << "isLeftMouseButtonPressed: Warning: Calling pure-virtual\n";
183 return {};
184 }
185}
187{
188 std::cerr << "isLeftMouseButtonPressed: Warning: Calling pure-virtual\n";
189 return {};
190}
192{
194 const void *thisPtr = this;
195 return m_isProcessingAppQuitEventCallback(const_cast<void *>(thisPtr));
196 } else {
197 std::cerr << "isProcessingAppQuitEvent: Warning: Calling pure-virtual\n";
198 return {};
199 }
200}
202{
203 std::cerr << "isProcessingAppQuitEvent: Warning: Calling pure-virtual\n";
204 return {};
205}
207{
208 return ::KDDockWidgets::Core::Platform::isQt();
209}
211{
212 return ::KDDockWidgets::Core::Platform::isQtQuick();
213}
215{
216 return ::KDDockWidgets::Core::Platform::isQtWidgets();
217}
218const char *Platform_wrapper::name() const
219{
220 if (m_nameCallback) {
221 const void *thisPtr = this;
222 return m_nameCallback(const_cast<void *>(thisPtr));
223 } else {
224 std::cerr << "name: Warning: Calling pure-virtual\n";
225 return {};
226 }
227}
229{
230 std::cerr << "name: Warning: Calling pure-virtual\n";
231 return {};
232}
234{
236 const void *thisPtr = this;
237 m_onFloatingWindowCreatedCallback(const_cast<void *>(thisPtr), arg__1);
238 } else {
240 }
241}
247{
249 const void *thisPtr = this;
250 m_onFloatingWindowDestroyedCallback(const_cast<void *>(thisPtr), arg__1);
251 } else {
253 }
254}
260{
262 const void *thisPtr = this;
263 m_onMainWindowCreatedCallback(const_cast<void *>(thisPtr), arg__1);
264 } else {
266 }
267}
273{
275 const void *thisPtr = this;
276 m_onMainWindowDestroyedCallback(const_cast<void *>(thisPtr), arg__1);
277 } else {
279 }
280}
286{
288 const void *thisPtr = this;
289 m_pauseForDebuggerCallback(const_cast<void *>(thisPtr));
290 } else {
291 ::KDDockWidgets::Core::Platform::pauseForDebugger();
292 }
293}
295{
296 ::KDDockWidgets::Core::Platform::pauseForDebugger();
297}
299{
301 const void *thisPtr = this;
302 m_restoreMouseCursorCallback(const_cast<void *>(thisPtr));
303 } else {
304 std::cerr << "restoreMouseCursor: Warning: Calling pure-virtual\n";
305 return;
306 }
307}
309{
310 std::cerr << "restoreMouseCursor: Warning: Calling pure-virtual\n";
311 return;
312}
313void Platform_wrapper::runDelayed(int ms, KDDockWidgets::Core::DelayedCall *c)
314{
316 const void *thisPtr = this;
317 m_runDelayedCallback(const_cast<void *>(thisPtr), ms, c);
318 } else {
319 std::cerr << "runDelayed: Warning: Calling pure-virtual\n";
320 return;
321 }
322}
323void Platform_wrapper::runDelayed_nocallback(int ms, KDDockWidgets::Core::DelayedCall *c)
324{
325 std::cerr << "runDelayed: Warning: Calling pure-virtual\n";
326 return;
327}
329{
331 const void *thisPtr = this;
332 return m_screenNumberForCallback(const_cast<void *>(thisPtr), arg__1);
333 } else {
334 std::cerr << "screenNumberFor: Warning: Calling pure-virtual\n";
335 return {};
336 }
337}
339{
340 std::cerr << "screenNumberFor: Warning: Calling pure-virtual\n";
341 return {};
342}
344{
346 const void *thisPtr = this;
347 return *m_screenSizeForCallback(const_cast<void *>(thisPtr), arg__1);
348 } else {
349 std::cerr << "screenSizeFor: Warning: Calling pure-virtual\n";
350 return {};
351 }
352}
354{
355 std::cerr << "screenSizeFor: Warning: Calling pure-virtual\n";
356 return {};
357}
358void Platform_wrapper::sendEvent(KDDockWidgets::Core::View *arg__1, KDDockWidgets::Event *arg__2) const
359{
361 const void *thisPtr = this;
362 m_sendEventCallback(const_cast<void *>(thisPtr), arg__1, arg__2);
363 } else {
364 std::cerr << "sendEvent: Warning: Calling pure-virtual\n";
365 return;
366 }
367}
368void Platform_wrapper::sendEvent_nocallback(KDDockWidgets::Core::View *arg__1, KDDockWidgets::Event *arg__2) const
369{
370 std::cerr << "sendEvent: Warning: Calling pure-virtual\n";
371 return;
372}
373void Platform_wrapper::setCursorPos(KDDockWidgets::Point arg__1)
374{
376 const void *thisPtr = this;
377 m_setCursorPosCallback(const_cast<void *>(thisPtr), &arg__1);
378 } else {
379 std::cerr << "setCursorPos: Warning: Calling pure-virtual\n";
380 return;
381 }
382}
383void Platform_wrapper::setCursorPos_nocallback(KDDockWidgets::Point arg__1)
384{
385 std::cerr << "setCursorPos: Warning: Calling pure-virtual\n";
386 return;
387}
389{
391 const void *thisPtr = this;
392 m_setMouseCursorCallback(const_cast<void *>(thisPtr), arg__1, discardLast);
393 } else {
394 std::cerr << "setMouseCursor: Warning: Calling pure-virtual\n";
395 return;
396 }
397}
399{
400 std::cerr << "setMouseCursor: Warning: Calling pure-virtual\n";
401 return;
402}
404{
405 return ::KDDockWidgets::Core::Platform::startDragDistance();
406}
408{
410 const void *thisPtr = this;
411 return m_startDragDistance_implCallback(const_cast<void *>(thisPtr));
412 } else {
413 return ::KDDockWidgets::Core::Platform::startDragDistance_impl();
414 }
415}
417{
418 return ::KDDockWidgets::Core::Platform::startDragDistance_impl();
419}
421{
423 const void *thisPtr = this;
424 return m_supportsAeroSnapCallback(const_cast<void *>(thisPtr));
425 } else {
426 return ::KDDockWidgets::Core::Platform::supportsAeroSnap();
427 }
428}
430{
431 return ::KDDockWidgets::Core::Platform::supportsAeroSnap();
432}
434{
436 const void *thisPtr = this;
437 return m_tests_createFocusableViewCallback(const_cast<void *>(thisPtr), &arg__1, parent);
438 } else {
439 std::cerr << "tests_createFocusableView: Warning: Calling pure-virtual\n";
440 return {};
441 }
442}
444{
445 std::cerr << "tests_createFocusableView: Warning: Calling pure-virtual\n";
446 return {};
447}
449{
451 const void *thisPtr = this;
452 return m_tests_createNonClosableViewCallback(const_cast<void *>(thisPtr), parent);
453 } else {
454 std::cerr << "tests_createNonClosableView: Warning: Calling pure-virtual\n";
455 return {};
456 }
457}
459{
460 std::cerr << "tests_createNonClosableView: Warning: Calling pure-virtual\n";
461 return {};
462}
463KDDockWidgets::Core::View *Platform_wrapper::tests_createView(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View *parent)
464{
466 const void *thisPtr = this;
467 return m_tests_createViewCallback(const_cast<void *>(thisPtr), &arg__1, parent);
468 } else {
469 std::cerr << "tests_createView: Warning: Calling pure-virtual\n";
470 return {};
471 }
472}
474{
475 std::cerr << "tests_createView: Warning: Calling pure-virtual\n";
476 return {};
477}
479{
481 const void *thisPtr = this;
482 m_tests_deinitPlatform_implCallback(const_cast<void *>(thisPtr));
483 } else {
484 ::KDDockWidgets::Core::Platform::tests_deinitPlatform_impl();
485 }
486}
488{
489 ::KDDockWidgets::Core::Platform::tests_deinitPlatform_impl();
490}
492{
494 const void *thisPtr = this;
495 m_tests_initPlatform_implCallback(const_cast<void *>(thisPtr));
496 } else {
497 ::KDDockWidgets::Core::Platform::tests_initPlatform_impl();
498 }
499}
501{
502 ::KDDockWidgets::Core::Platform::tests_initPlatform_impl();
503}
505{
507 const void *thisPtr = this;
508 m_ungrabMouseCallback(const_cast<void *>(thisPtr));
509 } else {
510 std::cerr << "ungrabMouse: Warning: Calling pure-virtual\n";
511 return;
512 }
513}
515{
516 std::cerr << "ungrabMouse: Warning: Calling pure-virtual\n";
517 return;
518}
520{
522 const void *thisPtr = this;
523 m_uninstallMessageHandlerCallback(const_cast<void *>(thisPtr));
524 } else {
525 std::cerr << "uninstallMessageHandler: Warning: Calling pure-virtual\n";
526 return;
527 }
528}
530{
531 std::cerr << "uninstallMessageHandler: Warning: Calling pure-virtual\n";
532 return;
533}
535{
537 const void *thisPtr = this;
538 return m_usesFallbackMouseGrabberCallback(const_cast<void *>(thisPtr));
539 } else {
540 std::cerr << "usesFallbackMouseGrabber: Warning: Calling pure-virtual\n";
541 return {};
542 }
543}
545{
546 std::cerr << "usesFallbackMouseGrabber: Warning: Calling pure-virtual\n";
547 return {};
548}
552
553}
554}
556{
557 return reinterpret_cast<KDDockWidgets::Core::Platform *>(ptr);
558}
563extern "C" {
569{
571 return reinterpret_cast<void *>(ptr);
572}
573// applicationName() const
575{
576 const auto &result = new Dartagnan::ValueWrapper<QString> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->applicationName_nocallback();} else { return targetPtr->applicationName();} }() };
577 return result;
578}
579// createDefaultViewFactory()
581{
582 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createDefaultViewFactory_nocallback();} else { return targetPtr->createDefaultViewFactory();} }();
583 return result;
584}
585// createMainWindow(const QString & uniqueName, KDDockWidgets::Core::CreateViewOptions arg__2, QFlags<KDDockWidgets::MainWindowOption> options, KDDockWidgets::Core::View * parent, Qt::WindowFlags arg__5) const
586void *c_KDDockWidgets__Core__Platform__createMainWindow_QString_CreateViewOptions_MainWindowOptions_View_WindowFlags(void *thisObj, const char *uniqueName_, void *arg__2_, int options_, void *parent_, int arg__5)
587{
588 const auto uniqueName = QString::fromUtf8(uniqueName_);
589 assert(arg__2_);
590 auto &arg__2 = *reinterpret_cast<KDDockWidgets::Core::CreateViewOptions *>(arg__2_);
591 auto options = static_cast<QFlags<KDDockWidgets::MainWindowOption>>(options_);
592 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
593 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createMainWindow_nocallback(uniqueName,arg__2,options,parent,static_cast<Qt::WindowFlags>(arg__5));} else { return targetPtr->createMainWindow(uniqueName,arg__2,options,parent,static_cast<Qt::WindowFlags>(arg__5));} }();
594 free(( char * )uniqueName_);
595 return result;
596}
597// createView(KDDockWidgets::Core::Controller * arg__1, KDDockWidgets::Core::View * parent) const
598void *c_KDDockWidgets__Core__Platform__createView_Controller_View(void *thisObj, void *arg__1_, void *parent_)
599{
600 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::Controller *>(arg__1_);
601 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
602 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->createView_nocallback(arg__1,parent);} else { return targetPtr->createView(arg__1,parent);} }();
603 return result;
604}
605// cursorPos() const
607{
608 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Point> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->cursorPos_nocallback();} else { return targetPtr->cursorPos();} }() };
609 return result;
610}
611// dumpManagedBacktrace()
613{
614 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->dumpManagedBacktrace_nocallback();} else { return targetPtr->dumpManagedBacktrace();} }();
615}
616// hasActivePopup() const
618{
619 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hasActivePopup_nocallback();} else { return targetPtr->hasActivePopup();} }();
620 return result;
621}
622// inDisallowedDragView(KDDockWidgets::Point globalPos) const
624{
625 assert(globalPos_);
626 auto &globalPos = *reinterpret_cast<KDDockWidgets::Point *>(globalPos_);
627 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->inDisallowedDragView_nocallback(globalPos);} else { return targetPtr->inDisallowedDragView(globalPos);} }();
628 return result;
629}
630// installMessageHandler()
632{
633 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->installMessageHandler_nocallback();} else { return targetPtr->installMessageHandler();} }();
634}
635// instance()
641// isInitialized()
647// isLeftMouseButtonPressed() const
649{
650 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isLeftMouseButtonPressed_nocallback();} else { return targetPtr->isLeftMouseButtonPressed();} }();
651 return result;
652}
653// isProcessingAppQuitEvent() const
655{
656 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isProcessingAppQuitEvent_nocallback();} else { return targetPtr->isProcessingAppQuitEvent();} }();
657 return result;
658}
659// isQt() const
661{
662 const auto &result = fromPtr(thisObj)->isQt();
663 return result;
664}
665// isQtQuick() const
667{
668 const auto &result = fromPtr(thisObj)->isQtQuick();
669 return result;
670}
671// isQtWidgets() const
673{
674 const auto &result = fromPtr(thisObj)->isQtWidgets();
675 return result;
676}
677// name() const
679{
680 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->name_nocallback();} else { return targetPtr->name();} }();
681 return result;
682}
683// onFloatingWindowCreated(KDDockWidgets::Core::FloatingWindow * arg__1)
685{
686 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::FloatingWindow *>(arg__1_);
687 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->onFloatingWindowCreated_nocallback(arg__1);} else { return targetPtr->onFloatingWindowCreated(arg__1);} }();
688}
689// onFloatingWindowDestroyed(KDDockWidgets::Core::FloatingWindow * arg__1)
691{
692 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::FloatingWindow *>(arg__1_);
693 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->onFloatingWindowDestroyed_nocallback(arg__1);} else { return targetPtr->onFloatingWindowDestroyed(arg__1);} }();
694}
695// onMainWindowCreated(KDDockWidgets::Core::MainWindow * arg__1)
697{
698 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::MainWindow *>(arg__1_);
699 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->onMainWindowCreated_nocallback(arg__1);} else { return targetPtr->onMainWindowCreated(arg__1);} }();
700}
701// onMainWindowDestroyed(KDDockWidgets::Core::MainWindow * arg__1)
703{
704 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::MainWindow *>(arg__1_);
705 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->onMainWindowDestroyed_nocallback(arg__1);} else { return targetPtr->onMainWindowDestroyed(arg__1);} }();
706}
707// pauseForDebugger()
709{
710 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->pauseForDebugger_nocallback();} else { return targetPtr->pauseForDebugger();} }();
711}
712// restoreMouseCursor()
714{
715 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->restoreMouseCursor_nocallback();} else { return targetPtr->restoreMouseCursor();} }();
716}
717// runDelayed(int ms, KDDockWidgets::Core::DelayedCall * c)
719{
720 auto c = reinterpret_cast<KDDockWidgets::Core::DelayedCall *>(c_);
721 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->runDelayed_nocallback(ms,c);} else { return targetPtr->runDelayed(ms,c);} }();
722}
723// screenNumberFor(KDDockWidgets::Core::View * arg__1) const
725{
726 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::View *>(arg__1_);
727 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenNumberFor_nocallback(arg__1);} else { return targetPtr->screenNumberFor(arg__1);} }();
728 return result;
729}
730// screenSizeFor(KDDockWidgets::Core::View * arg__1) const
732{
733 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::View *>(arg__1_);
734 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->screenSizeFor_nocallback(arg__1);} else { return targetPtr->screenSizeFor(arg__1);} }() };
735 return result;
736}
737// sendEvent(KDDockWidgets::Core::View * arg__1, KDDockWidgets::Event * arg__2) const
738void c_KDDockWidgets__Core__Platform__sendEvent_View_Event(void *thisObj, void *arg__1_, void *arg__2_)
739{
740 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::View *>(arg__1_);
741 auto arg__2 = reinterpret_cast<KDDockWidgets::Event *>(arg__2_);
742 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->sendEvent_nocallback(arg__1,arg__2);} else { return targetPtr->sendEvent(arg__1,arg__2);} }();
743}
744// setCursorPos(KDDockWidgets::Point arg__1)
746{
747 assert(arg__1_);
748 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Point *>(arg__1_);
749 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setCursorPos_nocallback(arg__1);} else { return targetPtr->setCursorPos(arg__1);} }();
750}
751// setMouseCursor(Qt::CursorShape arg__1, bool discardLast)
752void c_KDDockWidgets__Core__Platform__setMouseCursor_CursorShape_bool(void *thisObj, int arg__1, bool discardLast)
753{
754 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setMouseCursor_nocallback(static_cast<Qt::CursorShape>(arg__1),discardLast);} else { return targetPtr->setMouseCursor(static_cast<Qt::CursorShape>(arg__1),discardLast);} }();
755}
756// startDragDistance() const
758{
759 const auto &result = fromPtr(thisObj)->startDragDistance();
760 return result;
761}
762// startDragDistance_impl() const
764{
765 const auto &result = fromWrapperPtr(thisObj)->startDragDistance_impl_nocallback();
766 return result;
767}
768// supportsAeroSnap() const
770{
771 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->supportsAeroSnap_nocallback();} else { return targetPtr->supportsAeroSnap();} }();
772 return result;
773}
774// tests_createFocusableView(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View * parent)
776{
777 assert(arg__1_);
778 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Core::CreateViewOptions *>(arg__1_);
779 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
780 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_createFocusableView_nocallback(arg__1,parent);} else { return targetPtr->tests_createFocusableView(arg__1,parent);} }();
781 return result;
782}
783// tests_createNonClosableView(KDDockWidgets::Core::View * parent)
785{
786 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
787 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_createNonClosableView_nocallback(parent);} else { return targetPtr->tests_createNonClosableView(parent);} }();
788 return result;
789}
790// tests_createView(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View * parent)
791void *c_KDDockWidgets__Core__Platform__tests_createView_CreateViewOptions_View(void *thisObj, void *arg__1_, void *parent_)
792{
793 assert(arg__1_);
794 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Core::CreateViewOptions *>(arg__1_);
795 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
796 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->tests_createView_nocallback(arg__1,parent);} else { return targetPtr->tests_createView(arg__1,parent);} }();
797 return result;
798}
799// tests_deinitPlatform_impl()
804// tests_initPlatform_impl()
809// ungrabMouse()
811{
812 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->ungrabMouse_nocallback();} else { return targetPtr->ungrabMouse();} }();
813}
814// uninstallMessageHandler()
816{
817 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->uninstallMessageHandler_nocallback();} else { return targetPtr->uninstallMessageHandler();} }();
818}
819// usesFallbackMouseGrabber() const
821{
822 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->usesFallbackMouseGrabber_nocallback();} else { return targetPtr->usesFallbackMouseGrabber();} }();
823 return result;
824}
826{
827 delete fromPtr(thisObj);
828}
829void c_KDDockWidgets__Core__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
830{
831 auto wrapper = fromWrapperPtr(ptr);
832 switch (methodId) {
833 case 133:
834 wrapper->m_applicationNameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_applicationName>(callback);
835 break;
836 case 134:
837 wrapper->m_createDefaultViewFactoryCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_createDefaultViewFactory>(callback);
838 break;
839 case 135:
840 wrapper->m_createMainWindowCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_createMainWindow>(callback);
841 break;
842 case 136:
843 wrapper->m_createViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_createView>(callback);
844 break;
845 case 137:
846 wrapper->m_cursorPosCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_cursorPos>(callback);
847 break;
848 case 138:
849 wrapper->m_dumpManagedBacktraceCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_dumpManagedBacktrace>(callback);
850 break;
851 case 140:
852 wrapper->m_hasActivePopupCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_hasActivePopup>(callback);
853 break;
854 case 141:
855 wrapper->m_inDisallowedDragViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_inDisallowedDragView>(callback);
856 break;
857 case 142:
858 wrapper->m_installMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_installMessageHandler>(callback);
859 break;
860 case 145:
861 wrapper->m_isLeftMouseButtonPressedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_isLeftMouseButtonPressed>(callback);
862 break;
863 case 146:
864 wrapper->m_isProcessingAppQuitEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_isProcessingAppQuitEvent>(callback);
865 break;
866 case 150:
867 wrapper->m_nameCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_name>(callback);
868 break;
869 case 151:
870 wrapper->m_onFloatingWindowCreatedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_onFloatingWindowCreated>(callback);
871 break;
872 case 152:
873 wrapper->m_onFloatingWindowDestroyedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_onFloatingWindowDestroyed>(callback);
874 break;
875 case 153:
876 wrapper->m_onMainWindowCreatedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_onMainWindowCreated>(callback);
877 break;
878 case 154:
879 wrapper->m_onMainWindowDestroyedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_onMainWindowDestroyed>(callback);
880 break;
881 case 155:
882 wrapper->m_pauseForDebuggerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_pauseForDebugger>(callback);
883 break;
884 case 156:
885 wrapper->m_restoreMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_restoreMouseCursor>(callback);
886 break;
887 case 157:
888 wrapper->m_runDelayedCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_runDelayed>(callback);
889 break;
890 case 158:
891 wrapper->m_screenNumberForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_screenNumberFor>(callback);
892 break;
893 case 159:
894 wrapper->m_screenSizeForCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_screenSizeFor>(callback);
895 break;
896 case 160:
897 wrapper->m_sendEventCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_sendEvent>(callback);
898 break;
899 case 161:
900 wrapper->m_setCursorPosCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_setCursorPos>(callback);
901 break;
902 case 162:
903 wrapper->m_setMouseCursorCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_setMouseCursor>(callback);
904 break;
905 case 164:
906 wrapper->m_startDragDistance_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_startDragDistance_impl>(callback);
907 break;
908 case 165:
909 wrapper->m_supportsAeroSnapCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_supportsAeroSnap>(callback);
910 break;
911 case 166:
912 wrapper->m_tests_createFocusableViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_tests_createFocusableView>(callback);
913 break;
914 case 167:
915 wrapper->m_tests_createNonClosableViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_tests_createNonClosableView>(callback);
916 break;
917 case 168:
918 wrapper->m_tests_createViewCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_tests_createView>(callback);
919 break;
920 case 169:
921 wrapper->m_tests_deinitPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_tests_deinitPlatform_impl>(callback);
922 break;
923 case 170:
924 wrapper->m_tests_initPlatform_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_tests_initPlatform_impl>(callback);
925 break;
926 case 171:
927 wrapper->m_ungrabMouseCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_ungrabMouse>(callback);
928 break;
929 case 172:
930 wrapper->m_uninstallMessageHandlerCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_uninstallMessageHandler>(callback);
931 break;
932 case 173:
933 wrapper->m_usesFallbackMouseGrabberCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper::Callback_usesFallbackMouseGrabber>(callback);
934 break;
935 }
936}
937}
bool c_KDDockWidgets__Core__Platform__isLeftMouseButtonPressed(void *thisObj)
void c_KDDockWidgets__Core__Platform_Finalizer(void *cppObj)
bool c_KDDockWidgets__Core__Platform__hasActivePopup(void *thisObj)
const char * c_KDDockWidgets__Core__Platform__name(void *thisObj)
void c_KDDockWidgets__Core__Platform__setMouseCursor_CursorShape_bool(void *thisObj, int arg__1, bool discardLast)
void c_KDDockWidgets__Core__Platform__tests_initPlatform_impl(void *thisObj)
void * c_KDDockWidgets__Core__Platform__createMainWindow_QString_CreateViewOptions_MainWindowOptions_View_WindowFlags(void *thisObj, const char *uniqueName_, void *arg__2_, int options_, void *parent_, int arg__5)
void c_KDDockWidgets__Core__Platform__dumpManagedBacktrace(void *thisObj)
void * c_static_KDDockWidgets__Core__Platform__instance()
void * c_KDDockWidgets__Core__Platform__screenSizeFor_View(void *thisObj, void *arg__1_)
void c_KDDockWidgets__Core__Platform__setCursorPos_Point(void *thisObj, void *arg__1_)
void c_KDDockWidgets__Core__Platform__installMessageHandler(void *thisObj)
int c_KDDockWidgets__Core__Platform__startDragDistance(void *thisObj)
void * c_KDDockWidgets__Core__Platform__constructor()
void c_KDDockWidgets__Core__Platform__sendEvent_View_Event(void *thisObj, void *arg__1_, void *arg__2_)
void * c_KDDockWidgets__Core__Platform__tests_createNonClosableView_View(void *thisObj, void *parent_)
void c_KDDockWidgets__Core__Platform__onMainWindowDestroyed_MainWindow(void *thisObj, void *arg__1_)
bool c_KDDockWidgets__Core__Platform__isQt(void *thisObj)
void c_KDDockWidgets__Core__Platform__pauseForDebugger(void *thisObj)
void c_KDDockWidgets__Core__Platform__runDelayed_int_DelayedCall(void *thisObj, int ms, void *c_)
bool c_KDDockWidgets__Core__Platform__supportsAeroSnap(void *thisObj)
void c_KDDockWidgets__Core__Platform__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
void * c_KDDockWidgets__Core__Platform__tests_createFocusableView_CreateViewOptions_View(void *thisObj, void *arg__1_, void *parent_)
void * c_KDDockWidgets__Core__Platform__cursorPos(void *thisObj)
void c_KDDockWidgets__Core__Platform__uninstallMessageHandler(void *thisObj)
void c_KDDockWidgets__Core__Platform__onMainWindowCreated_MainWindow(void *thisObj, void *arg__1_)
bool c_KDDockWidgets__Core__Platform__inDisallowedDragView_Point(void *thisObj, void *globalPos_)
bool c_KDDockWidgets__Core__Platform__isQtQuick(void *thisObj)
void c_KDDockWidgets__Core__Platform__destructor(void *thisObj)
void c_KDDockWidgets__Core__Platform__onFloatingWindowCreated_FloatingWindow(void *thisObj, void *arg__1_)
void c_KDDockWidgets__Core__Platform__onFloatingWindowDestroyed_FloatingWindow(void *thisObj, void *arg__1_)
int c_KDDockWidgets__Core__Platform__startDragDistance_impl(void *thisObj)
void * c_KDDockWidgets__Core__Platform__createView_Controller_View(void *thisObj, void *arg__1_, void *parent_)
void * c_KDDockWidgets__Core__Platform__tests_createView_CreateViewOptions_View(void *thisObj, void *arg__1_, void *parent_)
void * c_KDDockWidgets__Core__Platform__createDefaultViewFactory(void *thisObj)
void c_KDDockWidgets__Core__Platform__restoreMouseCursor(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Platform_wrapper * fromWrapperPtr(void *ptr)
bool c_static_KDDockWidgets__Core__Platform__isInitialized()
void * c_KDDockWidgets__Core__Platform__applicationName(void *thisObj)
void c_KDDockWidgets__Core__Platform__tests_deinitPlatform_impl(void *thisObj)
bool c_KDDockWidgets__Core__Platform__isProcessingAppQuitEvent(void *thisObj)
bool c_KDDockWidgets__Core__Platform__usesFallbackMouseGrabber(void *thisObj)
bool c_KDDockWidgets__Core__Platform__isQtWidgets(void *thisObj)
int c_KDDockWidgets__Core__Platform__screenNumberFor_View(void *thisObj, void *arg__1_)
static KDDockWidgets::Core::Platform * fromPtr(void *ptr)
void c_KDDockWidgets__Core__Platform__ungrabMouse(void *thisObj)
virtual void runDelayed_nocallback(int ms, KDDockWidgets::Core::DelayedCall *c)
virtual bool inDisallowedDragView(KDDockWidgets::Point globalPos) const
Returns whether the specified global position is on top of a view that isn't draggable....
virtual void sendEvent(KDDockWidgets::Core::View *arg__1, KDDockWidgets::Event *arg__2) const
Sends the specified event to the specified view.
void(* Callback_setMouseCursor)(void *, Qt::CursorShape arg__1, bool discardLast)
virtual int screenNumberFor(KDDockWidgets::Core::View *arg__1) const
Returns the screen index for the specified view or window. It's up to the platform to decide how scre...
void(* Callback_sendEvent)(void *, KDDockWidgets::Core::View *arg__1, KDDockWidgets::Event *arg__2)
virtual void sendEvent_nocallback(KDDockWidgets::Core::View *arg__1, KDDockWidgets::Event *arg__2) const
virtual KDDockWidgets::Core::View * createView(KDDockWidgets::Core::Controller *arg__1, KDDockWidgets::Core::View *parent=nullptr) const
Create an empty view For Qt this would just returns a empty QWidget or QQuickItem other frontends can...
virtual bool isLeftMouseButtonPressed() const
Returns whether the left mouse button is pressed.
virtual void onMainWindowDestroyed_nocallback(KDDockWidgets::Core::MainWindow *arg__1)
virtual KDDockWidgets::Core::View * tests_createView(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View *parent=nullptr)
KDDockWidgets::Core::View *(* Callback_tests_createNonClosableView)(void *, KDDockWidgets::Core::View *parent)
void(* Callback_onFloatingWindowDestroyed)(void *, KDDockWidgets::Core::FloatingWindow *arg__1)
virtual KDDockWidgets::Core::View * tests_createView_nocallback(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View *parent=nullptr)
virtual bool hasActivePopup() const
Returns whether a popup is open Usually not needed to override. Investigate further in case side bars...
virtual void dumpManagedBacktrace()
For non-C++, managed languages (having a VM) prints a non-native back-trace For example,...
virtual KDDockWidgets::Core::View * createView_nocallback(KDDockWidgets::Core::Controller *arg__1, KDDockWidgets::Core::View *parent=nullptr) const
KDDockWidgets::Core::View *(* Callback_tests_createView)(void *, KDDockWidgets::Core::CreateViewOptions *arg__1, KDDockWidgets::Core::View *parent)
virtual KDDockWidgets::Core::View * tests_createNonClosableView_nocallback(KDDockWidgets::Core::View *parent=nullptr)
KDDockWidgets::Core::View *(* Callback_tests_createFocusableView)(void *, KDDockWidgets::Core::CreateViewOptions *arg__1, KDDockWidgets::Core::View *parent)
virtual bool isProcessingAppQuitEvent() const
Returns whether we're processing a Event::Quit.
virtual void runDelayed(int ms, KDDockWidgets::Core::DelayedCall *c)
virtual QString applicationName() const
Returns the application name This name will be used as title of floating dock widgets which contain m...
virtual KDDockWidgets::Core::MainWindow * createMainWindow(const QString &uniqueName, KDDockWidgets::Core::CreateViewOptions arg__2, QFlags< KDDockWidgets::MainWindowOption > options=KDDockWidgets::MainWindowOption::MainWindowOption_HasCentralFrame, KDDockWidgets::Core::View *parent=nullptr, Qt::WindowFlags arg__5={}) const
KDDockWidgets::Size *(* Callback_screenSizeFor)(void *, KDDockWidgets::Core::View *arg__1)
virtual KDDockWidgets::Point cursorPos() const
Returns the mouse cursor position in screen coordinates.
KDDockWidgets::Core::MainWindow *(* Callback_createMainWindow)(void *, const QString &uniqueName, KDDockWidgets::Core::CreateViewOptions *arg__2, QFlags< KDDockWidgets::MainWindowOption > options, KDDockWidgets::Core::View *parent, Qt::WindowFlags arg__5)
virtual bool inDisallowedDragView_nocallback(KDDockWidgets::Point globalPos) const
virtual KDDockWidgets::Size screenSizeFor_nocallback(KDDockWidgets::Core::View *arg__1) const
virtual void onMainWindowCreated(KDDockWidgets::Core::MainWindow *arg__1)
Called when a main window is created. Overridden by flutter, so it can create a window Used by tests ...
virtual void onFloatingWindowCreated(KDDockWidgets::Core::FloatingWindow *arg__1)
Called when a floating window is created. Overridden by flutter, so it can create a window.
virtual void setMouseCursor(Qt::CursorShape arg__1, bool discardLast=false)
Sets the mouse cursor to the specified shape, this has an application-wide effect Call restoreMouseCu...
virtual const char * name() const
Returns the name of the platform, only "qtwidgets" and "qtquick".
virtual KDDockWidgets::Core::ViewFactory * createDefaultViewFactory()
Creates and returns the default ViewFactory.
void(* Callback_runDelayed)(void *, int ms, KDDockWidgets::Core::DelayedCall *c)
bool(* Callback_inDisallowedDragView)(void *, KDDockWidgets::Point *globalPos)
virtual bool usesFallbackMouseGrabber() const
Return whether we use the global event filter based mouse grabber.
virtual bool supportsAeroSnap() const
Only supported on Qt, for windows.
virtual void onFloatingWindowCreated_nocallback(KDDockWidgets::Core::FloatingWindow *arg__1)
virtual void onMainWindowCreated_nocallback(KDDockWidgets::Core::MainWindow *arg__1)
virtual void onMainWindowDestroyed(KDDockWidgets::Core::MainWindow *arg__1)
Called when a main window is created. Overridden by flutter, so it can destroy the window.
int(* Callback_screenNumberFor)(void *, KDDockWidgets::Core::View *arg__1)
virtual void onFloatingWindowDestroyed(KDDockWidgets::Core::FloatingWindow *arg__1)
Called when a floating window is created. Overridden by flutter, so it can destroy the window.
virtual void setMouseCursor_nocallback(Qt::CursorShape arg__1, bool discardLast=false)
virtual void setCursorPos(KDDockWidgets::Point arg__1)
Sets the mouse cursor position in screen coordinates.
virtual KDDockWidgets::Core::View * tests_createFocusableView_nocallback(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View *parent=nullptr)
virtual KDDockWidgets::Core::View * tests_createFocusableView(KDDockWidgets::Core::CreateViewOptions arg__1, KDDockWidgets::Core::View *parent=nullptr)
void(* Callback_onMainWindowDestroyed)(void *, KDDockWidgets::Core::MainWindow *arg__1)
virtual KDDockWidgets::Core::MainWindow * createMainWindow_nocallback(const QString &uniqueName, KDDockWidgets::Core::CreateViewOptions arg__2, QFlags< KDDockWidgets::MainWindowOption > options=KDDockWidgets::MainWindowOption::MainWindowOption_HasCentralFrame, KDDockWidgets::Core::View *parent=nullptr, Qt::WindowFlags arg__5={}) const
void(* Callback_onFloatingWindowCreated)(void *, KDDockWidgets::Core::FloatingWindow *arg__1)
KDDockWidgets::Core::View *(* Callback_createView)(void *, KDDockWidgets::Core::Controller *arg__1, KDDockWidgets::Core::View *parent)
virtual KDDockWidgets::Size screenSizeFor(KDDockWidgets::Core::View *arg__1) const
Returns the size of the screen where this view is in.
void(* Callback_onMainWindowCreated)(void *, KDDockWidgets::Core::MainWindow *arg__1)
virtual int screenNumberFor_nocallback(KDDockWidgets::Core::View *arg__1) const
virtual void onFloatingWindowDestroyed_nocallback(KDDockWidgets::Core::FloatingWindow *arg__1)
virtual KDDockWidgets::Core::View * tests_createNonClosableView(KDDockWidgets::Core::View *parent=nullptr)
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
implements functions specific to a particular platform A platform can be for example qtwidgets,...
virtual void onMainWindowDestroyed(Core::MainWindow *)
Called when a main window is created. Overridden by flutter, so it can destroy the window.
bool isQt() const
Returns whether this platform is Qt based.
virtual void onFloatingWindowDestroyed(Core::FloatingWindow *)
Called when a floating window is created. Overridden by flutter, so it can destroy the window.
virtual void dumpManagedBacktrace()
For non-C++, managed languages (having a VM) prints a non-native back-trace For example,...
bool isQtQuick() const
Returns whether this platform is QtQuick.
int startDragDistance() const
Returns how many pixels the mouse must move for a drag to start This is usually 4 by default (QApplic...
virtual void onFloatingWindowCreated(Core::FloatingWindow *)
Called when a floating window is created. Overridden by flutter, so it can create a window.
bool isQtWidgets() const
Returns whether this platform is QtWidgets.
virtual void onMainWindowCreated(Core::MainWindow *)
Called when a main window is created. Overridden by flutter, so it can create a window Used by tests ...
A factory class for allowing the user to customize some internal views. This is optional,...
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)
CursorShape
typedef WindowFlags

© 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