KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
flutter_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 "flutter_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}
31extern "C" {
32// asView_flutter(KDDockWidgets::Core::Controller * controller)
34{
35 auto controller = reinterpret_cast<KDDockWidgets::Core::Controller *>(controller_);
36 const auto &result = flutter::asView_flutter(controller);
37 return result;
38}
39// asView_flutter(KDDockWidgets::Core::View * view)
41{
42 auto view = reinterpret_cast<KDDockWidgets::Core::View *>(view_);
43 const auto &result = flutter::asView_flutter(view);
44 return result;
45}
46}
void * c_static_KDDockWidgets__flutter__asView_flutter_View(void *view_)
Definition flutter_c.cpp:40
void * c_static_KDDockWidgets__flutter__asView_flutter_Controller(void *controller_)
Definition flutter_c.cpp:33
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