KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
QObject_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 "QObject_c.h"
12
13
14#include <iostream>
15
16
17namespace Dartagnan {
18
19typedef int (*CleanupCallback)(void *thisPtr);
21
22template<typename T>
23struct ValueWrapper
24{
25 T value;
26};
27
28}
31 : ::QObject(parent)
32{
33}
35{
36 return ::QObject::blockSignals(b);
37}
46bool QObject_wrapper::disconnect(const QObject *receiver, const char *member) const
47{
48 return ::QObject::disconnect(receiver, member);
49}
50bool QObject_wrapper::disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
51{
52 return ::QObject::disconnect(sender, signal, receiver, member);
53}
54bool QObject_wrapper::disconnect(const char *signal, const QObject *receiver, const char *member) const
55{
56 return ::QObject::disconnect(signal, receiver, member);
57}
66bool QObject_wrapper::inherits(const char *classname) const
67{
68 return ::QObject::inherits(classname);
69}
75{
76 return ::QObject::isWidgetType();
77}
79{
80 return ::QObject::isWindowType();
81}
87{
88 return ::QObject::objectName();
89}
91{
92 return ::QObject::parent();
93}
94int QObject_wrapper::receivers(const char *signal) const
95{
96 return ::QObject::receivers(signal);
97}
103{
104 return ::QObject::sender();
105}
107{
108 return ::QObject::senderSignalIndex();
109}
119{
120 return ::QObject::signalsBlocked();
121}
123{
124 return ::QObject::startTimer(interval);
125}
126QString QObject_wrapper::tr(const char *s, const char *c, int n)
127{
128 return ::QObject::tr(s, c, n);
129}
133
134}
135static QObject *fromPtr(void *ptr)
136{
137 return reinterpret_cast<QObject *>(ptr);
138}
143extern "C" {
144void c_QObject_Finalizer(void *cppObj)
145{
146 delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QObject_wrapper *>(cppObj);
147}
149{
150 auto parent = reinterpret_cast<QObject *>(parent_);
152 return reinterpret_cast<void *>(ptr);
153}
154// blockSignals(bool b)
155bool c_QObject__blockSignals_bool(void *thisObj, bool b)
156{
157 return fromPtr(thisObj)->blockSignals(b);
158}
159// deleteLater()
160void c_QObject__deleteLater(void *thisObj)
161{
162 fromPtr(thisObj)->deleteLater();
163}
164// destroyed(QObject * arg__1)
165void c_QObject__destroyed_QObject(void *thisObj, void *arg__1_)
166{
167 auto arg__1 = reinterpret_cast<QObject *>(arg__1_);
168 fromPtr(thisObj)->destroyed(arg__1);
169}
170// disconnect(const QObject * receiver, const char * member) const
171bool c_QObject__disconnect_QObject_char(void *thisObj, void *receiver_, const char *member)
172{
173 auto receiver = reinterpret_cast<QObject *>(receiver_);
174 return fromPtr(thisObj)->disconnect(receiver, member);
175}
176// disconnect(const QObject * sender, const char * signal, const QObject * receiver, const char * member)
177bool c_static_QObject__disconnect_QObject_char_QObject_char(void *sender_, const char *signal, void *receiver_, const char *member)
178{
179 auto sender = reinterpret_cast<QObject *>(sender_);
180 auto receiver = reinterpret_cast<QObject *>(receiver_);
181 return KDDockWidgetsBindings_wrappersNS::QObject_wrapper::disconnect(sender, signal, receiver, member);
182}
183// disconnect(const char * signal, const QObject * receiver, const char * member) const
184bool c_QObject__disconnect_char_QObject_char(void *thisObj, const char *signal, void *receiver_, const char *member)
185{
186 auto receiver = reinterpret_cast<QObject *>(receiver_);
187 return fromPtr(thisObj)->disconnect(signal, receiver, member);
188}
189// dumpObjectInfo()
190void c_QObject__dumpObjectInfo(void *thisObj)
191{
192 fromPtr(thisObj)->dumpObjectInfo();
193}
194// dumpObjectTree()
195void c_QObject__dumpObjectTree(void *thisObj)
196{
197 fromPtr(thisObj)->dumpObjectTree();
198}
199// inherits(const char * classname) const
200bool c_QObject__inherits_char(void *thisObj, const char *classname)
201{
202 return fromPtr(thisObj)->inherits(classname);
203}
204// installEventFilter(QObject * filterObj)
205void c_QObject__installEventFilter_QObject(void *thisObj, void *filterObj_)
206{
207 auto filterObj = reinterpret_cast<QObject *>(filterObj_);
208 fromPtr(thisObj)->installEventFilter(filterObj);
209}
210// isWidgetType() const
211bool c_QObject__isWidgetType(void *thisObj)
212{
213 return fromPtr(thisObj)->isWidgetType();
214}
215// isWindowType() const
216bool c_QObject__isWindowType(void *thisObj)
217{
218 return fromPtr(thisObj)->isWindowType();
219}
220// killTimer(int id)
221void c_QObject__killTimer_int(void *thisObj, int id)
222{
223 fromPtr(thisObj)->killTimer(id);
224}
225// objectName() const
226void *c_QObject__objectName(void *thisObj)
227{
228 return new Dartagnan::ValueWrapper<QString> { fromPtr(thisObj)->objectName() };
229}
230// parent() const
231void *c_QObject__parent(void *thisObj)
232{
233 return fromPtr(thisObj)->parent();
234}
235// receivers(const char * signal) const
236int c_QObject__receivers_char(void *thisObj, const char *signal)
237{
238 return fromWrapperPtr(thisObj)->receivers(signal);
239}
240// removeEventFilter(QObject * obj)
241void c_QObject__removeEventFilter_QObject(void *thisObj, void *obj_)
242{
243 auto obj = reinterpret_cast<QObject *>(obj_);
244 fromPtr(thisObj)->removeEventFilter(obj);
245}
246// sender() const
247void *c_QObject__sender(void *thisObj)
248{
249 return fromWrapperPtr(thisObj)->sender();
250}
251// senderSignalIndex() const
253{
254 return fromWrapperPtr(thisObj)->senderSignalIndex();
255}
256// setObjectName(const QString & name)
257void c_QObject__setObjectName_QString(void *thisObj, const char *name_)
258{
259 const auto name = QString::fromUtf8(name_);
260 fromPtr(thisObj)->setObjectName(name);
261}
262// setParent(QObject * parent)
263void c_QObject__setParent_QObject(void *thisObj, void *parent_)
264{
265 auto parent = reinterpret_cast<QObject *>(parent_);
266 fromPtr(thisObj)->setParent(parent);
267}
268// signalsBlocked() const
269bool c_QObject__signalsBlocked(void *thisObj)
270{
271 return fromPtr(thisObj)->signalsBlocked();
272}
273// startTimer(int interval)
274int c_QObject__startTimer_int(void *thisObj, int interval)
275{
276 return fromPtr(thisObj)->startTimer(interval);
277}
278// tr(const char * s, const char * c, int n)
279void *c_static_QObject__tr_char_char_int(const char *s, const char *c, int n)
280{
281 return new Dartagnan::ValueWrapper<QString> { KDDockWidgetsBindings_wrappersNS::QObject_wrapper::tr(s, c, n) };
282}
283void c_QObject__destructor(void *thisObj)
284{
285 delete fromPtr(thisObj);
286}
287void c_QObject__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
288{
289 auto wrapper = fromWrapperPtr(ptr);
290 switch (methodId) {
291 }
292}
293}
void c_QObject__removeEventFilter_QObject(void *thisObj, void *obj_)
void * c_QObject__sender(void *thisObj)
void c_QObject__destructor(void *thisObj)
void c_QObject_Finalizer(void *cppObj)
void c_QObject__deleteLater(void *thisObj)
int c_QObject__senderSignalIndex(void *thisObj)
void * c_QObject__constructor_QObject(void *parent_)
bool c_QObject__inherits_char(void *thisObj, const char *classname)
bool c_QObject__disconnect_QObject_char(void *thisObj, void *receiver_, const char *member)
static QObject * fromPtr(void *ptr)
void c_QObject__dumpObjectInfo(void *thisObj)
void c_QObject__setParent_QObject(void *thisObj, void *parent_)
void c_QObject__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
bool c_static_QObject__disconnect_QObject_char_QObject_char(void *sender_, const char *signal, void *receiver_, const char *member)
void c_QObject__dumpObjectTree(void *thisObj)
bool c_QObject__blockSignals_bool(void *thisObj, bool b)
void c_QObject__setObjectName_QString(void *thisObj, const char *name_)
int c_QObject__receivers_char(void *thisObj, const char *signal)
bool c_QObject__disconnect_char_QObject_char(void *thisObj, const char *signal, void *receiver_, const char *member)
void * c_QObject__parent(void *thisObj)
bool c_QObject__isWindowType(void *thisObj)
bool c_QObject__isWidgetType(void *thisObj)
bool c_QObject__signalsBlocked(void *thisObj)
int c_QObject__startTimer_int(void *thisObj, int interval)
void * c_static_QObject__tr_char_char_int(const char *s, const char *c, int n)
void c_QObject__killTimer_int(void *thisObj, int id)
void * c_QObject__objectName(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::QObject_wrapper * fromWrapperPtr(void *ptr)
void c_QObject__installEventFilter_QObject(void *thisObj, void *filterObj_)
void c_QObject__destroyed_QObject(void *thisObj, void *arg__1_)
static QString tr(const char *s, const char *c, int n)
bool inherits(const char *classname) const
Definition QObject_c.cpp:66
bool disconnect(const QObject *receiver, const char *member=nullptr) const
Definition QObject_c.cpp:46
int(* CleanupCallback)(void *thisPtr)
Definition Config_c.cpp:21
static CleanupCallback s_cleanupCallback
Definition Config_c.cpp:22
void dumpObjectInfo()
void dumpObjectTree()
bool blockSignals(bool block)
void deleteLater()
void destroyed(QObject *obj)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool inherits(const char *className) const const
void installEventFilter(QObject *filterObj)
bool isWidgetType() const const
bool isWindowType() const const
void killTimer(int id)
void setObjectName(const QString &name)
QObject * parent() const const
void removeEventFilter(QObject *obj)
void setParent(QObject *parent)
bool signalsBlocked() const const
int startTimer(int interval, Qt::TimerType timerType)
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