KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
CreateViewOptions_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 "CreateViewOptions_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}
33 : ::KDDockWidgets::Core::CreateViewOptions()
34{
35}
36KDDockWidgets::Size CreateViewOptions_wrapper::getMaxSize() const
37{
38 return ::KDDockWidgets::Core::CreateViewOptions::getMaxSize();
39}
40KDDockWidgets::Size CreateViewOptions_wrapper::getMinSize() const
41{
42 return ::KDDockWidgets::Core::CreateViewOptions::getMinSize();
43}
44KDDockWidgets::Size CreateViewOptions_wrapper::getSize() const
45{
46 return ::KDDockWidgets::Core::CreateViewOptions::getSize();
47}
51
52}
53static KDDockWidgets::Core::CreateViewOptions *fromPtr(void *ptr)
54{
55 return reinterpret_cast<KDDockWidgets::Core::CreateViewOptions *>(ptr);
56}
61extern "C" {
67{
69 return reinterpret_cast<void *>(ptr);
70}
71// getMaxSize() const
73{
74 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { fromPtr(thisObj)->getMaxSize() };
75 return result;
76}
77// getMinSize() const
79{
80 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { fromPtr(thisObj)->getMinSize() };
81 return result;
82}
83// getSize() const
85{
86 const auto &result = new Dartagnan::ValueWrapper<KDDockWidgets::Size> { fromPtr(thisObj)->getSize() };
87 return result;
88}
90{
91 delete fromPtr(thisObj);
92}
94{
95 return fromPtr(thisObj)->isVisible;
96}
98{
99 return fromPtr(thisObj)->createWindow;
100}
102{
103 fromPtr(thisObj)->isVisible = isVisible_;
104}
106{
107 fromPtr(thisObj)->createWindow = createWindow_;
108}
109}
void c_KDDockWidgets__Core__CreateViewOptions___set_isVisible_bool(void *thisObj, bool isVisible_)
static KDDockWidgets::Core::CreateViewOptions * fromPtr(void *ptr)
bool c_KDDockWidgets__Core__CreateViewOptions___get_createWindow(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::CreateViewOptions_wrapper * fromWrapperPtr(void *ptr)
void * c_KDDockWidgets__Core__CreateViewOptions__constructor()
void c_KDDockWidgets__Core__CreateViewOptions_Finalizer(void *cppObj)
void * c_KDDockWidgets__Core__CreateViewOptions__getSize(void *thisObj)
void c_KDDockWidgets__Core__CreateViewOptions__destructor(void *thisObj)
void c_KDDockWidgets__Core__CreateViewOptions___set_createWindow_bool(void *thisObj, bool createWindow_)
void * c_KDDockWidgets__Core__CreateViewOptions__getMinSize(void *thisObj)
bool c_KDDockWidgets__Core__CreateViewOptions___get_isVisible(void *thisObj)
void * c_KDDockWidgets__Core__CreateViewOptions__getMaxSize(void *thisObj)
int(* CleanupCallback)(void *thisPtr)
Definition Config_c.cpp:21
static CleanupCallback s_cleanupCallback
Definition Config_c.cpp:22
Class to abstract QAction, so code still works with QtQuick and Flutter.

© 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