KDDockWidgets API Documentation 2.0
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}
46{
47 return ::KDDockWidgets::Core::Separator::numSeparators();
48}
66{
67 return ::KDDockWidgets::Core::Separator::position();
68}
73void Separator_wrapper::setGeometry(int pos, int pos2, int length)
74{
76}
78{
80 const void *thisPtr = this;
81 m_setParentView_implCallback(const_cast<void *>(thisPtr), parent);
82 } else {
84 }
85}
93
94}
95}
97{
98 return reinterpret_cast<KDDockWidgets::Core::Separator *>(ptr);
99}
104extern "C" {
106{
108} // isResizing()
114// isVertical() const
116{
117 const auto &result = fromPtr(thisObj)->isVertical();
118 return result;
119}
120// move(int p)
122{
123 fromPtr(thisObj)->move(p);
124}
125// numSeparators()
131// onMouseDoubleClick()
136// onMouseMove(KDDockWidgets::Point pos)
138{
139 assert(pos_);
140 auto &pos = *reinterpret_cast<KDDockWidgets::Point *>(pos_);
141 fromPtr(thisObj)->onMouseMove(pos);
142}
143// onMousePress()
145{
146 fromPtr(thisObj)->onMousePress();
147}
148// onMouseReleased()
150{
151 fromPtr(thisObj)->onMouseReleased();
152}
153// position() const
155{
156 const auto &result = fromPtr(thisObj)->position();
157 return result;
158}
159// setGeometry(KDDockWidgets::Rect r)
161{
162 assert(r_);
163 auto &r = *reinterpret_cast<KDDockWidgets::Rect *>(r_);
164 fromPtr(thisObj)->setGeometry(r);
165}
166// setGeometry(int pos, int pos2, int length)
167void c_KDDockWidgets__Core__Separator__setGeometry_int_int_int(void *thisObj, int pos, int pos2, int length)
168{
169 fromPtr(thisObj)->setGeometry(pos, pos2, length);
170}
171// setParentView_impl(KDDockWidgets::Core::View * parent)
173{
174 auto parent = reinterpret_cast<KDDockWidgets::Core::View *>(parent_);
176}
178{
179 delete fromPtr(thisObj);
180}
181void c_KDDockWidgets__Core__Separator__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
182{
183 auto wrapper = fromWrapperPtr(ptr);
184 switch (methodId) {
185 case 331:
186 wrapper->m_setParentView_implCallback = reinterpret_cast<KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::Callback_setParentView_impl>(callback);
187 break;
188 }
189}
190}
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__setGeometry_int_int_int(void *thisObj, int pos, int pos2, int length)
void c_KDDockWidgets__Core__Separator__move_int(void *thisObj, int p)
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:35
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