KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
ClassicDropIndicatorOverlay_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{
40 const void *thisPtr = this;
41 return m_dropIndicatorVisibleCallback(const_cast<void *>(thisPtr), arg__1);
42 } else {
43 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::dropIndicatorVisible(arg__1);
44 }
45}
47{
48 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::dropIndicatorVisible(arg__1);
49}
51{
53 const void *thisPtr = this;
54 return m_hover_implCallback(const_cast<void *>(thisPtr), &globalPos);
55 } else {
56 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::hover_impl(globalPos);
57 }
58}
60{
61 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::hover_impl(globalPos);
62}
64{
65 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::indicatorWindow();
66}
80bool ClassicDropIndicatorOverlay_wrapper::onResize(KDDockWidgets::Size newSize)
81{
82 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::onResize(newSize);
83}
85{
87 const void *thisPtr = this;
88 return *m_posForIndicatorCallback(const_cast<void *>(thisPtr), arg__1);
89 } else {
90 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::posForIndicator(arg__1);
91 }
92}
94{
95 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::posForIndicator(arg__1);
96}
98{
99 return ::KDDockWidgets::Core::ClassicDropIndicatorOverlay::rubberBand();
100}
115{
117 const void *thisPtr = this;
118 m_setParentView_implCallback(const_cast<void *>(thisPtr), parent);
119 } else {
121 }
122}
128{
130 const void *thisPtr = this;
131 m_updateVisibilityCallback(const_cast<void *>(thisPtr));
132 } else {
134 }
135}
143
144}
145}
154extern "C" {
160{
161 auto dropArea = reinterpret_cast<KDDockWidgets::Core::DropArea *>(dropArea_);
163 return reinterpret_cast<void *>(ptr);
164}
165// dropIndicatorVisible(KDDockWidgets::DropLocation arg__1) const
167{
168 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->dropIndicatorVisible_nocallback(static_cast<KDDockWidgets::DropLocation>(arg__1));} else { return targetPtr->dropIndicatorVisible(static_cast<KDDockWidgets::DropLocation>(arg__1));} }();
169 return result;
170}
171// hover_impl(KDDockWidgets::Point globalPos)
173{
174 assert(globalPos_);
175 auto &globalPos = *reinterpret_cast<KDDockWidgets::Point *>(globalPos_);
176 const auto &result = [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->hover_impl_nocallback(globalPos);} else { return targetPtr->hover_impl(globalPos);} }();
177 return result;
178}
179// indicatorWindow() const
181{
182 const auto &result = fromPtr(thisObj)->indicatorWindow();
183 return result;
184}
185// onHoveredGroupChanged(KDDockWidgets::Core::Group * arg__1)
187{
188 auto arg__1 = reinterpret_cast<KDDockWidgets::Core::Group *>(arg__1_);
190}
191// onResize(KDDockWidgets::Size newSize)
193{
194 assert(newSize_);
195 auto &newSize = *reinterpret_cast<KDDockWidgets::Size *>(newSize_);
196 const auto &result = fromPtr(thisObj)->onResize(newSize);
197 return result;
198}
199// posForIndicator(KDDockWidgets::DropLocation arg__1) const
201{
202 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Point> { [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->posForIndicator_nocallback(static_cast<KDDockWidgets::DropLocation>(arg__1));} else { return targetPtr->posForIndicator(static_cast<KDDockWidgets::DropLocation>(arg__1));} }() };
203 return result;
204}
205// rubberBand() const
207{
208 const auto &result = fromPtr(thisObj)->rubberBand();
209 return result;
210}
211// setCurrentDropLocation(KDDockWidgets::DropLocation arg__1)
213{
214 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->setCurrentDropLocation_nocallback(static_cast<KDDockWidgets::DropLocation>(arg__1));} else { return targetPtr->setCurrentDropLocation(static_cast<KDDockWidgets::DropLocation>(arg__1));} }();
215}
216// setParentView_impl(KDDockWidgets::Core::View * parent)
218{
219 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
221}
222// updateVisibility()
224{
225 [&] {auto targetPtr = fromPtr(thisObj);auto wrapperPtr = dynamic_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper*>(targetPtr);if (wrapperPtr) { return wrapperPtr->updateVisibility_nocallback();} else { return targetPtr->updateVisibility();} }();
226}
228{
229 delete fromPtr(thisObj);
230}
232{
233 auto wrapper = fromWrapperPtr(ptr);
234 switch (methodId) {
235 case 1042:
237 break;
238 case 1046:
240 break;
241 case 1058:
243 break;
244 case 1060:
246 break;
247 case 1063:
249 break;
250 case 331:
252 break;
253 case 1072:
255 break;
256 }
257}
258}
static KDDockWidgets::Core::ClassicDropIndicatorOverlay * fromPtr(void *ptr)
void * c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__indicatorWindow(void *thisObj)
bool c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__onResize_Size(void *thisObj, void *newSize_)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__setParentView_impl_View(void *thisObj, void *parent_)
int c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__hover_impl_Point(void *thisObj, void *globalPos_)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__destructor(void *thisObj)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__updateVisibility(void *thisObj)
bool c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__dropIndicatorVisible_DropLocation(void *thisObj, int arg__1)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__setCurrentDropLocation_DropLocation(void *thisObj, int arg__1)
void * c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__constructor_DropArea(void *dropArea_)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__onHoveredGroupChanged_Group(void *thisObj, void *arg__1_)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay_Finalizer(void *cppObj)
void * c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__rubberBand(void *thisObj)
void c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper * fromWrapperPtr(void *ptr)
void * c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__posForIndicator_DropLocation(void *thisObj, int arg__1)
virtual KDDockWidgets::Point posForIndicator(KDDockWidgets::DropLocation arg__1) const
returns the position of the specified drop location The return is in global coordinates
KDDockWidgets::DropLocation(* Callback_hover_impl)(void *, KDDockWidgets::Point *globalPos)
virtual KDDockWidgets::DropLocation hover_impl_nocallback(KDDockWidgets::Point globalPos)
virtual KDDockWidgets::Point posForIndicator_nocallback(KDDockWidgets::DropLocation arg__1) const
KDDockWidgets::Point *(* Callback_posForIndicator)(void *, KDDockWidgets::DropLocation arg__1)
virtual bool dropIndicatorVisible(KDDockWidgets::DropLocation arg__1) const
Returns whether the specified drop indicator should be visible.
Core::ClassicIndicatorWindowViewInterface * indicatorWindow() const
The window that will hold the classic indicators This is a window so it can be over the window that i...
virtual void setParentView_impl(View *parent)
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.

© 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