KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Separator_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 "Separator_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{
35 return ::KDDockWidgets::Core::Separator::isResizing();
36}
38{
39 return ::KDDockWidgets::Core::Separator::isVertical();
40}
42{
43 return ::KDDockWidgets::Core::Separator::numSeparators();
44}
62{
63 return ::KDDockWidgets::Core::Separator::position();
64}
70{
72 const void *thisPtr = this;
73 m_setParentView_implCallback(const_cast<void *>(thisPtr), parent);
74 } else {
76 }
77}
85
86}
87}
89{
90 return reinterpret_cast<KDDockWidgets::Core::Separator *>(ptr);
91}
96extern "C" {
98{
100} // isResizing()
106// isVertical() const
108{
109 const auto &result = fromPtr(thisObj)->isVertical();
110 return result;
111}
112// numSeparators()
118// onMouseDoubleClick()
123// onMouseMove(KDDockWidgets::Point pos)
125{
126 assert(pos_);
127 auto &pos = *reinterpret_cast<KDDockWidgets::Point *>(pos_);
128 fromPtr(thisObj)->onMouseMove(pos);
129}
130// onMousePress()
132{
133 fromPtr(thisObj)->onMousePress();
134}
135// onMouseReleased()
137{
138 fromPtr(thisObj)->onMouseReleased();
139}
140// position() const
142{
143 const auto &result = fromPtr(thisObj)->position();
144 return result;
145}
146// setGeometry(KDDockWidgets::Rect r)
148{
149 assert(r_);
150 auto &r = *reinterpret_cast<KDDockWidgets::Rect *>(r_);
151 fromPtr(thisObj)->setGeometry(r);
152}
153// setParentView_impl(KDDockWidgets::Core::View * parent)
155{
156 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
158}
160{
161 delete fromPtr(thisObj);
162}
163void c_KDDockWidgets__Core__Separator__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
164{
165 auto wrapper = fromWrapperPtr(ptr);
166 switch (methodId) {
167 case 331:
168 wrapper->m_setParentView_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::Callback_setParentView_impl>(callback);
169 break;
170 }
171}
172}
void c_KDDockWidgets__Core__Separator__destructor(void *thisObj)
int c_static_KDDockWidgets__Core__Separator__numSeparators()
static KDDockWidgets::Core::Separator * fromPtr(void *ptr)
void c_KDDockWidgets__Core__Separator__setParentView_impl_View(void *thisObj, void *parent_)
void c_KDDockWidgets__Core__Separator_Finalizer(void *cppObj)
bool c_KDDockWidgets__Core__Separator__isVertical(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper * fromWrapperPtr(void *ptr)
int c_KDDockWidgets__Core__Separator__position(void *thisObj)
void c_KDDockWidgets__Core__Separator__setGeometry_Rect(void *thisObj, void *r_)
bool c_static_KDDockWidgets__Core__Separator__isResizing()
void c_KDDockWidgets__Core__Separator__onMouseMove_Point(void *thisObj, void *pos_)
void c_KDDockWidgets__Core__Separator__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
void c_KDDockWidgets__Core__Separator__onMousePress(void *thisObj)
void c_KDDockWidgets__Core__Separator__onMouseReleased(void *thisObj)
void c_KDDockWidgets__Core__Separator__onMouseDoubleClick(void *thisObj)
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
Definition Separator_c.h:33
virtual void setParentView_impl_nocallback(KDDockWidgets::Core::View *parent)
virtual void setParentView_impl(KDDockWidgets::Core::View *parent)
virtual void setParentView_impl(View *parent)
int(* CleanupCallback)(void *thisPtr)
Definition Config_c.cpp:21
static CleanupCallback s_cleanupCallback
Definition Config_c.cpp:22

© 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