KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
ClassicIndicatorWindowViewInterface_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*/
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 {
38{
39 if (m_hoverCallback) {
40 const void *thisPtr = this;
41 return m_hoverCallback(const_cast<void *>(thisPtr), &arg__1);
42 } else {
43 std::cerr << "hover: Warning: Calling pure-virtual\n";
44 return {};
45 }
46}
48{
49 std::cerr << "hover: Warning: Calling pure-virtual\n";
50 return {};
51}
53{
55 const void *thisPtr = this;
56 return m_isWindowCallback(const_cast<void *>(thisPtr));
57 } else {
58 std::cerr << "isWindow: Warning: Calling pure-virtual\n";
59 return {};
60 }
61}
63{
64 std::cerr << "isWindow: Warning: Calling pure-virtual\n";
65 return {};
66}
68{
70 const void *thisPtr = this;
71 return *m_posForIndicatorCallback(const_cast<void *>(thisPtr), arg__1);
72 } else {
73 std::cerr << "posForIndicator: Warning: Calling pure-virtual\n";
74 return {};
75 }
76}
78{
79 std::cerr << "posForIndicator: Warning: Calling pure-virtual\n";
80 return {};
81}
83{
84 if (m_raiseCallback) {
85 const void *thisPtr = this;
86 m_raiseCallback(const_cast<void *>(thisPtr));
87 } else {
88 std::cerr << "raise: Warning: Calling pure-virtual\n";
89 return;
90 }
91}
93{
94 std::cerr << "raise: Warning: Calling pure-virtual\n";
95 return;
96}
98{
99 if (m_resizeCallback) {
100 const void *thisPtr = this;
101 m_resizeCallback(const_cast<void *>(thisPtr), &arg__1);
102 } else {
103 std::cerr << "resize: Warning: Calling pure-virtual\n";
104 return;
105 }
106}
108{
109 std::cerr << "resize: Warning: Calling pure-virtual\n";
110 return;
111}
113{
115 const void *thisPtr = this;
116 m_setGeometryCallback(const_cast<void *>(thisPtr), &arg__1);
117 } else {
118 std::cerr << "setGeometry: Warning: Calling pure-virtual\n";
119 return;
120 }
121}
123{
124 std::cerr << "setGeometry: Warning: Calling pure-virtual\n";
125 return;
126}
128{
130 const void *thisPtr = this;
131 m_setObjectNameCallback(const_cast<void *>(thisPtr), arg__1);
132 } else {
133 std::cerr << "setObjectName: Warning: Calling pure-virtual\n";
134 return;
135 }
136}
138{
139 std::cerr << "setObjectName: Warning: Calling pure-virtual\n";
140 return;
141}
143{
145 const void *thisPtr = this;
146 m_setVisibleCallback(const_cast<void *>(thisPtr), arg__1);
147 } else {
148 std::cerr << "setVisible: Warning: Calling pure-virtual\n";
149 return;
150 }
151}
153{
154 std::cerr << "setVisible: Warning: Calling pure-virtual\n";
155 return;
156}
158{
160 const void *thisPtr = this;
161 m_updateIndicatorVisibilityCallback(const_cast<void *>(thisPtr));
162 } else {
163 std::cerr << "updateIndicatorVisibility: Warning: Calling pure-virtual\n";
164 return;
165 }
166}
168{
169 std::cerr << "updateIndicatorVisibility: Warning: Calling pure-virtual\n";
170 return;
171}
173{
175 const void *thisPtr = this;
176 m_updatePositionsCallback(const_cast<void *>(thisPtr));
177 } else {
178 std::cerr << "updatePositions: Warning: Calling pure-virtual\n";
179 return;
180 }
181}
183{
184 std::cerr << "updatePositions: Warning: Calling pure-virtual\n";
185 return;
186}
190
191}
192}
201extern "C" {
211// hover(KDDockWidgets::Point arg__1)
213{
214 assert(arg__1_);
215 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Point *>(arg__1_);
216 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hover_nocallback(arg__1);} else { return targetPtr->hover(arg__1);} }();
217 return result;
218}
219// isWindow() const
221{
222 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->isWindow_nocallback();} else { return targetPtr->isWindow();} }();
223 return result;
224}
225// posForIndicator(KDDockWidgets::DropLocation arg__1) const
227{
228 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Point> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->posForIndicator_nocallback(static_cast<KDDockWidgets::DropLocation>(arg__1));} else { return targetPtr->posForIndicator(static_cast<KDDockWidgets::DropLocation>(arg__1));} }() };
229 return result;
230}
231// raise()
233{
234 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->raise_nocallback();} else { return targetPtr->raise();} }();
235}
236// resize(KDDockWidgets::Size arg__1)
238{
239 assert(arg__1_);
240 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Size *>(arg__1_);
241 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->resize_nocallback(arg__1);} else { return targetPtr->resize(arg__1);} }();
242}
243// setGeometry(KDDockWidgets::Rect arg__1)
245{
246 assert(arg__1_);
247 auto &arg__1 = *reinterpret_cast<KDDockWidgets::Rect *>(arg__1_);
248 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setGeometry_nocallback(arg__1);} else { return targetPtr->setGeometry(arg__1);} }();
249}
250// setObjectName(const QString & arg__1)
252{
253 const auto arg__1 = QString::fromUtf8(arg__1_);
254 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setObjectName_nocallback(arg__1);} else { return targetPtr->setObjectName(arg__1);} }();
255 free(( char * )arg__1_);
256}
257// setVisible(bool arg__1)
259{
260 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setVisible_nocallback(arg__1);} else { return targetPtr->setVisible(arg__1);} }();
261}
262// updateIndicatorVisibility()
264{
265 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->updateIndicatorVisibility_nocallback();} else { return targetPtr->updateIndicatorVisibility();} }();
266}
267// updatePositions()
269{
270 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->updatePositions_nocallback();} else { return targetPtr->updatePositions();} }();
271}
277{
278 auto wrapper = fromWrapperPtr(ptr);
279 switch (methodId) {
280 case 1115:
282 break;
283 case 1116:
285 break;
286 case 1117:
288 break;
289 case 1118:
291 break;
292 case 1119:
294 break;
295 case 1120:
297 break;
298 case 1121:
300 break;
301 case 1122:
303 break;
304 case 1123:
306 break;
307 case 1124:
309 break;
310 }
311}
312}
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__updatePositions(void *thisObj)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__setGeometry_Rect(void *thisObj, void *arg__1_)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__destructor(void *thisObj)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__setObjectName_QString(void *thisObj, const char *arg__1_)
void * c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__constructor()
static KDDockWidgets::Core::ClassicIndicatorWindowViewInterface * fromPtr(void *ptr)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__resize_Size(void *thisObj, void *arg__1_)
void * c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__posForIndicator_DropLocation(void *thisObj, int arg__1)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface_Finalizer(void *cppObj)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__setVisible_bool(void *thisObj, bool arg__1)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicIndicatorWindowViewInterface_wrapper * fromWrapperPtr(void *ptr)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__updateIndicatorVisibility(void *thisObj)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__raise(void *thisObj)
int c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__hover_Point(void *thisObj, void *arg__1_)
bool c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__isWindow(void *thisObj)
void c_KDDockWidgets__Core__ClassicIndicatorWindowViewInterface__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
The window that will hold the classic indicators This is a window so it can be over the window that i...
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.
DropLocation
Enum describing the different drop indicator types.
QString fromUtf8(const char *str, int size)

© 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