KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
Margins_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 "Margins_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}
36Margins_wrapper::Margins_wrapper(int l, int t, int r, int b)
37 : ::KDDockWidgets::Margins(l, t, r, b)
38{
39}
41{
42 return ::KDDockWidgets::Margins::bottom();
43}
45{
46 return ::KDDockWidgets::Margins::left();
47}
49{
50 return ::KDDockWidgets::Margins::right();
51}
53{
54 return ::KDDockWidgets::Margins::top();
55}
59
60}
61static KDDockWidgets::Margins *fromPtr(void *ptr)
62{
63 return reinterpret_cast<KDDockWidgets::Margins *>(ptr);
64}
69extern "C" {
71{
72 delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Margins_wrapper *>(cppObj);
73}
75{
77 return reinterpret_cast<void *>(ptr);
78}
80{
82 return reinterpret_cast<void *>(ptr);
83}
84// bottom() const
86{
87 const auto &result = fromPtr(thisObj)->bottom();
88 return result;
89}
90// left() const
92{
93 const auto &result = fromPtr(thisObj)->left();
94 return result;
95}
96// right() const
98{
99 const auto &result = fromPtr(thisObj)->right();
100 return result;
101}
102// top() const
104{
105 const auto &result = fromPtr(thisObj)->top();
106 return result;
107}
109{
110 delete fromPtr(thisObj);
111}
112}
int c_KDDockWidgets__Margins__top(void *thisObj)
int c_KDDockWidgets__Margins__bottom(void *thisObj)
Definition Margins_c.cpp:85
int c_KDDockWidgets__Margins__right(void *thisObj)
Definition Margins_c.cpp:97
int c_KDDockWidgets__Margins__left(void *thisObj)
Definition Margins_c.cpp:91
void * c_KDDockWidgets__Margins__constructor()
Definition Margins_c.cpp:74
void c_KDDockWidgets__Margins_Finalizer(void *cppObj)
Definition Margins_c.cpp:70
static KDDockWidgets::Margins * fromPtr(void *ptr)
Definition Margins_c.cpp:61
void c_KDDockWidgets__Margins__destructor(void *thisObj)
void * c_KDDockWidgets__Margins__constructor_int_int_int_int(int l, int t, int r, int b)
Definition Margins_c.cpp:79
static KDDockWidgetsBindings_wrappersNS::Margins_wrapper * fromWrapperPtr(void *ptr)
Definition Margins_c.cpp:65
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