KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
QByteArray_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 "QByteArray_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}
37{
38 return ::QByteArray::constData();
39}
41{
42 return ::QByteArray::isEmpty();
43}
47
48}
49static QByteArray *fromPtr(void *ptr)
50{
51 return reinterpret_cast<QByteArray *>(ptr);
52}
57extern "C" {
58void c_QByteArray_Finalizer(void *cppObj)
59{
60 delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::QByteArray_wrapper *>(cppObj);
61}
63{
65 return reinterpret_cast<void *>(ptr);
66}
67// constData() const
68const char *c_QByteArray__constData(void *thisObj)
69{
70 return fromPtr(thisObj)->constData();
71}
72// isEmpty() const
73bool c_QByteArray__isEmpty(void *thisObj)
74{
75 return fromPtr(thisObj)->isEmpty();
76}
77void c_QByteArray__destructor(void *thisObj)
78{
79 delete fromPtr(thisObj);
80}
81}
bool c_QByteArray__isEmpty(void *thisObj)
void * c_QByteArray__constructor()
void c_QByteArray_Finalizer(void *cppObj)
static KDDockWidgetsBindings_wrappersNS::QByteArray_wrapper * fromWrapperPtr(void *ptr)
const char * c_QByteArray__constData(void *thisObj)
void c_QByteArray__destructor(void *thisObj)
static QByteArray * fromPtr(void *ptr)
int(* CleanupCallback)(void *thisPtr)
Definition Config_c.cpp:21
static CleanupCallback s_cleanupCallback
Definition Config_c.cpp:22
const char * constData() const const
bool isEmpty() const const

© 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