KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
InitialOption_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 "InitialOption_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}
45 : ::KDDockWidgets::InitialOption(v, size)
46{
47}
49 : ::KDDockWidgets::InitialOption(size)
50{
51}
53{
54 return ::KDDockWidgets::InitialOption::preservesCurrentTab();
55}
57{
58 return ::KDDockWidgets::InitialOption::startsHidden();
59}
63
64}
66{
67 return reinterpret_cast<KDDockWidgets::InitialOption *>(ptr);
68}
73extern "C" {
75{
76 delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::InitialOption_wrapper *>(cppObj);
77}
79{
81 return reinterpret_cast<void *>(ptr);
82}
84{
86 return reinterpret_cast<void *>(ptr);
87}
94{
95 assert(size_);
96 auto &size = *reinterpret_cast<KDDockWidgets::Size *>(size_);
98 return reinterpret_cast<void *>(ptr);
99}
101{
102 assert(size_);
103 auto &size = *reinterpret_cast<KDDockWidgets::Size *>(size_);
105 return reinterpret_cast<void *>(ptr);
106}
107// preservesCurrentTab() const
109{
110 const auto &result = fromPtr(thisObj)->preservesCurrentTab();
111 return result;
112}
113// startsHidden() const
115{
116 const auto &result = fromPtr(thisObj)->startsHidden();
117 return result;
118}
120{
121 delete fromPtr(thisObj);
122}
123}
bool c_KDDockWidgets__InitialOption__preservesCurrentTab(void *thisObj)
static KDDockWidgetsBindings_wrappersNS::InitialOption_wrapper * fromWrapperPtr(void *ptr)
void * c_KDDockWidgets__InitialOption__constructor_Size(void *size_)
static KDDockWidgets::InitialOption * fromPtr(void *ptr)
void c_KDDockWidgets__InitialOption__destructor(void *thisObj)
void * c_KDDockWidgets__InitialOption__constructor_InitialVisibilityOption_Size(int v, void *size_)
bool c_KDDockWidgets__InitialOption__startsHidden(void *thisObj)
void * c_KDDockWidgets__InitialOption__constructor_InitialVisibilityOption(int v)
void * c_KDDockWidgets__InitialOption__constructor_DefaultSizeMode(int mode)
void c_KDDockWidgets__InitialOption_Finalizer(void *cppObj)
void * c_KDDockWidgets__InitialOption__constructor()
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.
Struct describing the preferred dock widget size and visibility when adding it to a layout.

© 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