KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
flutter
generated
KDDockWidgetsBindings
dart
ffi
KDDWBindingsCore
SideBar_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 "
SideBar_c.h
"
12
13
14
#include <iostream>
15
16
#include <cassert>
17
18
19
namespace
Dartagnan
{
20
21
typedef
int (*
CleanupCallback
)(
void
*thisPtr);
22
static
CleanupCallback
s_cleanupCallback
=
nullptr
;
23
24
template
<
typename
T>
25
struct
ValueWrapper
26
{
27
T value;
28
};
29
30
}
31
namespace
KDDockWidgetsBindings_wrappersNS
{
32
namespace
KDDWBindingsCore {
33
void
SideBar_wrapper::addDockWidget
(
KDDockWidgets::Core::DockWidget
*dw)
34
{
35
::KDDockWidgets::Core::SideBar::addDockWidget
(dw);
36
}
37
void
SideBar_wrapper::clear
()
38
{
39
::KDDockWidgets::Core::SideBar::clear
();
40
}
41
bool
SideBar_wrapper::containsDockWidget
(
KDDockWidgets::Core::DockWidget
*arg__1)
const
42
{
43
return ::KDDockWidgets::Core::SideBar::containsDockWidget(arg__1);
44
}
45
bool
SideBar_wrapper::isEmpty
()
const
46
{
47
return ::KDDockWidgets::Core::SideBar::isEmpty();
48
}
49
bool
SideBar_wrapper::isVertical
()
const
50
{
51
return ::KDDockWidgets::Core::SideBar::isVertical();
52
}
53
KDDockWidgets::Core::MainWindow
*
SideBar_wrapper::mainWindow
()
const
54
{
55
return ::KDDockWidgets::Core::SideBar::mainWindow();
56
}
57
void
SideBar_wrapper::onButtonClicked
(
KDDockWidgets::Core::DockWidget
*dw)
58
{
59
::KDDockWidgets::Core::SideBar::onButtonClicked
(dw);
60
}
61
void
SideBar_wrapper::removeDockWidget
(
KDDockWidgets::Core::DockWidget
*dw)
62
{
63
::KDDockWidgets::Core::SideBar::removeDockWidget
(dw);
64
}
65
void
SideBar_wrapper::setParentView_impl
(
KDDockWidgets::Core::View
*parent)
66
{
67
if
(
m_setParentView_implCallback
) {
68
const
void
*thisPtr =
this
;
69
m_setParentView_implCallback
(
const_cast<
void
*
>
(thisPtr), parent);
70
}
else
{
71
::KDDockWidgets::Core::SideBar::setParentView_impl
(parent);
72
}
73
}
74
void
SideBar_wrapper::setParentView_impl_nocallback
(
KDDockWidgets::Core::View
*parent)
75
{
76
::KDDockWidgets::Core::SideBar::setParentView_impl
(parent);
77
}
78
void
SideBar_wrapper::toggleOverlay
(
KDDockWidgets::Core::DockWidget
*arg__1)
79
{
80
::KDDockWidgets::Core::SideBar::toggleOverlay
(arg__1);
81
}
82
SideBar_wrapper::~SideBar_wrapper
()
83
{
84
}
85
86
}
87
}
88
static
KDDockWidgets::Core::SideBar
*
fromPtr
(
void
*ptr)
89
{
90
return
reinterpret_cast<
KDDockWidgets::Core::SideBar
*
>
(ptr);
91
}
92
static
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper
*
fromWrapperPtr
(
void
*ptr)
93
{
94
return
reinterpret_cast<
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper
*
>
(ptr);
95
}
96
extern
"C"
{
97
void
c_KDDockWidgets__Core__SideBar_Finalizer
(
void
*cppObj)
98
{
99
delete
reinterpret_cast<
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper
*
>
(cppObj);
100
}
// addDockWidget(KDDockWidgets::Core::DockWidget * dw)
101
void
c_KDDockWidgets__Core__SideBar__addDockWidget_DockWidget
(
void
*thisObj,
void
*dw_)
102
{
103
auto
dw =
reinterpret_cast<
KDDockWidgets::Core::DockWidget
*
>
(dw_);
104
fromPtr
(thisObj)->
addDockWidget
(dw);
105
}
106
// clear()
107
void
c_KDDockWidgets__Core__SideBar__clear
(
void
*thisObj)
108
{
109
fromPtr
(thisObj)->
clear
();
110
}
111
// containsDockWidget(KDDockWidgets::Core::DockWidget * arg__1) const
112
bool
c_KDDockWidgets__Core__SideBar__containsDockWidget_DockWidget
(
void
*thisObj,
void
*arg__1_)
113
{
114
auto
arg__1 =
reinterpret_cast<
KDDockWidgets::Core::DockWidget
*
>
(arg__1_);
115
const
auto
&result =
fromPtr
(thisObj)->
containsDockWidget
(arg__1);
116
return
result;
117
}
118
// isEmpty() const
119
bool
c_KDDockWidgets__Core__SideBar__isEmpty
(
void
*thisObj)
120
{
121
const
auto
&result =
fromPtr
(thisObj)->
isEmpty
();
122
return
result;
123
}
124
// isVertical() const
125
bool
c_KDDockWidgets__Core__SideBar__isVertical
(
void
*thisObj)
126
{
127
const
auto
&result =
fromPtr
(thisObj)->
isVertical
();
128
return
result;
129
}
130
// mainWindow() const
131
void
*
c_KDDockWidgets__Core__SideBar__mainWindow
(
void
*thisObj)
132
{
133
const
auto
&result =
fromPtr
(thisObj)->
mainWindow
();
134
return
result;
135
}
136
// onButtonClicked(KDDockWidgets::Core::DockWidget * dw)
137
void
c_KDDockWidgets__Core__SideBar__onButtonClicked_DockWidget
(
void
*thisObj,
void
*dw_)
138
{
139
auto
dw =
reinterpret_cast<
KDDockWidgets::Core::DockWidget
*
>
(dw_);
140
fromPtr
(thisObj)->
onButtonClicked
(dw);
141
}
142
// removeDockWidget(KDDockWidgets::Core::DockWidget * dw)
143
void
c_KDDockWidgets__Core__SideBar__removeDockWidget_DockWidget
(
void
*thisObj,
void
*dw_)
144
{
145
auto
dw =
reinterpret_cast<
KDDockWidgets::Core::DockWidget
*
>
(dw_);
146
fromPtr
(thisObj)->
removeDockWidget
(dw);
147
}
148
// setParentView_impl(KDDockWidgets::Core::View * parent)
149
void
c_KDDockWidgets__Core__SideBar__setParentView_impl_View
(
void
*thisObj,
void
*parent_)
150
{
151
auto
parent =
reinterpret_cast<
KDDockWidgets::Core::View
*
>
(parent_);
152
fromWrapperPtr
(thisObj)->
setParentView_impl_nocallback
(parent);
153
}
154
// toggleOverlay(KDDockWidgets::Core::DockWidget * arg__1)
155
void
c_KDDockWidgets__Core__SideBar__toggleOverlay_DockWidget
(
void
*thisObj,
void
*arg__1_)
156
{
157
auto
arg__1 =
reinterpret_cast<
KDDockWidgets::Core::DockWidget
*
>
(arg__1_);
158
fromPtr
(thisObj)->
toggleOverlay
(arg__1);
159
}
160
void
c_KDDockWidgets__Core__SideBar__destructor
(
void
*thisObj)
161
{
162
delete
fromPtr
(thisObj);
163
}
164
void
c_KDDockWidgets__Core__SideBar__registerVirtualMethodCallback
(
void
*ptr,
void
*callback,
int
methodId)
165
{
166
auto
wrapper =
fromWrapperPtr
(ptr);
167
switch
(methodId) {
168
case
331:
169
wrapper->m_setParentView_implCallback =
reinterpret_cast<
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::Callback_setParentView_impl
>
(callback);
170
break
;
171
}
172
}
173
}
c_KDDockWidgets__Core__SideBar__destructor
void c_KDDockWidgets__Core__SideBar__destructor(void *thisObj)
Definition
SideBar_c.cpp:160
c_KDDockWidgets__Core__SideBar__removeDockWidget_DockWidget
void c_KDDockWidgets__Core__SideBar__removeDockWidget_DockWidget(void *thisObj, void *dw_)
Definition
SideBar_c.cpp:143
c_KDDockWidgets__Core__SideBar__clear
void c_KDDockWidgets__Core__SideBar__clear(void *thisObj)
Definition
SideBar_c.cpp:107
c_KDDockWidgets__Core__SideBar__setParentView_impl_View
void c_KDDockWidgets__Core__SideBar__setParentView_impl_View(void *thisObj, void *parent_)
Definition
SideBar_c.cpp:149
fromPtr
static KDDockWidgets::Core::SideBar * fromPtr(void *ptr)
Definition
SideBar_c.cpp:88
c_KDDockWidgets__Core__SideBar__isVertical
bool c_KDDockWidgets__Core__SideBar__isVertical(void *thisObj)
Definition
SideBar_c.cpp:125
c_KDDockWidgets__Core__SideBar__isEmpty
bool c_KDDockWidgets__Core__SideBar__isEmpty(void *thisObj)
Definition
SideBar_c.cpp:119
c_KDDockWidgets__Core__SideBar__toggleOverlay_DockWidget
void c_KDDockWidgets__Core__SideBar__toggleOverlay_DockWidget(void *thisObj, void *arg__1_)
Definition
SideBar_c.cpp:155
c_KDDockWidgets__Core__SideBar__mainWindow
void * c_KDDockWidgets__Core__SideBar__mainWindow(void *thisObj)
Definition
SideBar_c.cpp:131
c_KDDockWidgets__Core__SideBar__registerVirtualMethodCallback
void c_KDDockWidgets__Core__SideBar__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
Definition
SideBar_c.cpp:164
c_KDDockWidgets__Core__SideBar_Finalizer
void c_KDDockWidgets__Core__SideBar_Finalizer(void *cppObj)
Definition
SideBar_c.cpp:97
c_KDDockWidgets__Core__SideBar__containsDockWidget_DockWidget
bool c_KDDockWidgets__Core__SideBar__containsDockWidget_DockWidget(void *thisObj, void *arg__1_)
Definition
SideBar_c.cpp:112
c_KDDockWidgets__Core__SideBar__onButtonClicked_DockWidget
void c_KDDockWidgets__Core__SideBar__onButtonClicked_DockWidget(void *thisObj, void *dw_)
Definition
SideBar_c.cpp:137
c_KDDockWidgets__Core__SideBar__addDockWidget_DockWidget
void c_KDDockWidgets__Core__SideBar__addDockWidget_DockWidget(void *thisObj, void *dw_)
Definition
SideBar_c.cpp:101
fromWrapperPtr
static KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper * fromWrapperPtr(void *ptr)
Definition
SideBar_c.cpp:92
SideBar_c.h
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper
Definition
SideBar_c.h:21
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::clear
void clear()
Definition
SideBar_c.cpp:37
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::setParentView_impl_nocallback
virtual void setParentView_impl_nocallback(KDDockWidgets::Core::View *parent)
Definition
SideBar_c.cpp:74
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::~SideBar_wrapper
~SideBar_wrapper()
Definition
SideBar_c.cpp:82
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::containsDockWidget
bool containsDockWidget(KDDockWidgets::Core::DockWidget *arg__1) const
Definition
SideBar_c.cpp:41
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::removeDockWidget
void removeDockWidget(KDDockWidgets::Core::DockWidget *dw)
Definition
SideBar_c.cpp:61
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::mainWindow
KDDockWidgets::Core::MainWindow * mainWindow() const
Definition
SideBar_c.cpp:53
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::onButtonClicked
void onButtonClicked(KDDockWidgets::Core::DockWidget *dw)
Definition
SideBar_c.cpp:57
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::addDockWidget
void addDockWidget(KDDockWidgets::Core::DockWidget *dw)
Definition
SideBar_c.cpp:33
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::toggleOverlay
void toggleOverlay(KDDockWidgets::Core::DockWidget *arg__1)
Definition
SideBar_c.cpp:78
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::isVertical
bool isVertical() const
Definition
SideBar_c.cpp:49
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::setParentView_impl
virtual void setParentView_impl(KDDockWidgets::Core::View *parent)
Definition
SideBar_c.cpp:65
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::Callback_setParentView_impl
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
Definition
SideBar_c.h:35
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::m_setParentView_implCallback
Callback_setParentView_impl m_setParentView_implCallback
Definition
SideBar_c.h:36
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::isEmpty
bool isEmpty() const
Definition
SideBar_c.cpp:45
KDDockWidgets::Core::Controller::setParentView_impl
virtual void setParentView_impl(View *parent)
Definition
Controller.cpp:142
KDDockWidgets::Core::DockWidget
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Definition
core/DockWidget.h:60
KDDockWidgets::Core::MainWindow
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
Definition
core/MainWindow.h:62
KDDockWidgets::Core::SideBar
Definition
core/SideBar.h:30
KDDockWidgets::Core::SideBar::clear
void clear()
clears the sidebar (removes all dock widgets from it)
Definition
core/SideBar.cpp:148
KDDockWidgets::Core::SideBar::mainWindow
MainWindow * mainWindow() const
Returns the main window this side bar belongs to.
Definition
core/SideBar.cpp:128
KDDockWidgets::Core::SideBar::removeDockWidget
void removeDockWidget(DockWidget *dw)
Definition
core/SideBar.cpp:84
KDDockWidgets::Core::SideBar::isVertical
bool isVertical() const
returns if this side bar has vertical orientation
Definition
core/SideBar.h:44
KDDockWidgets::Core::SideBar::toggleOverlay
void toggleOverlay(DockWidget *)
Toggles the dock widget overlay. Equivalent to the user clicking on the button.
Definition
core/SideBar.cpp:133
KDDockWidgets::Core::SideBar::containsDockWidget
bool containsDockWidget(DockWidget *) const
Definition
core/SideBar.cpp:98
KDDockWidgets::Core::SideBar::onButtonClicked
void onButtonClicked(DockWidget *dw)
Definition
core/SideBar.cpp:103
KDDockWidgets::Core::SideBar::addDockWidget
void addDockWidget(DockWidget *dw)
Definition
core/SideBar.cpp:66
KDDockWidgets::Core::SideBar::isEmpty
bool isEmpty() const
returns whether there's no dock widgets
Definition
core/SideBar.cpp:118
KDDockWidgets::Core::View
Definition
core/View.h:48
Dartagnan
Definition
Config_c.cpp:19
Dartagnan::CleanupCallback
int(* CleanupCallback)(void *thisPtr)
Definition
Config_c.cpp:21
Dartagnan::s_cleanupCallback
static CleanupCallback s_cleanupCallback
Definition
Config_c.cpp:22
KDDockWidgetsBindings_wrappersNS
Definition
Config_c.cpp:31
© 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