KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Point_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 "Point_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 : ::KDDockWidgets::Point(x, y)
38{
39}
41{
42 return ::KDDockWidgets::Point::isNull();
43}
45{
46 return ::KDDockWidgets::Point::manhattanLength();
47}
49{
50 ::KDDockWidgets::Point::setX(x);
51}
53{
54 ::KDDockWidgets::Point::setY(y);
55}
57{
58 return ::KDDockWidgets::Point::x();
59}
61{
62 return ::KDDockWidgets::Point::y();
63}
67
68}
69static KDDockWidgets::Point *fromPtr(void *ptr)
70{
71 return reinterpret_cast<KDDockWidgets::Point *>(ptr);
72}
77extern "C" {
79{
80 delete reinterpret_cast<KDDockWidgetsBindings_wrappersNS::Point_wrapper *>(cppObj);
81}
83{
85 return reinterpret_cast<void *>(ptr);
86}
88{
90 return reinterpret_cast<void *>(ptr);
91}
92// isNull() const
94{
95 const auto &result = fromPtr(thisObj)->isNull();
96 return result;
97}
98// manhattanLength() const
100{
101 const auto &result = fromPtr(thisObj)->manhattanLength();
102 return result;
103}
104// setX(int x)
105void c_KDDockWidgets__Point__setX_int(void *thisObj, int x)
106{
107 fromPtr(thisObj)->setX(x);
108}
109// setY(int y)
110void c_KDDockWidgets__Point__setY_int(void *thisObj, int y)
111{
112 fromPtr(thisObj)->setY(y);
113}
114// x() const
116{
117 const auto &result = fromPtr(thisObj)->x();
118 return result;
119}
120// y() const
122{
123 const auto &result = fromPtr(thisObj)->y();
124 return result;
125}
127{
128 delete fromPtr(thisObj);
129}
130}
void * c_KDDockWidgets__Point__constructor_int_int(int x, int y)
Definition Point_c.cpp:87
void c_KDDockWidgets__Point_Finalizer(void *cppObj)
Definition Point_c.cpp:78
static KDDockWidgetsBindings_wrappersNS::Point_wrapper * fromWrapperPtr(void *ptr)
Definition Point_c.cpp:73
void * c_KDDockWidgets__Point__constructor()
Definition Point_c.cpp:82
void c_KDDockWidgets__Point__setY_int(void *thisObj, int y)
Definition Point_c.cpp:110
static KDDockWidgets::Point * fromPtr(void *ptr)
Definition Point_c.cpp:69
int c_KDDockWidgets__Point__manhattanLength(void *thisObj)
Definition Point_c.cpp:99
int c_KDDockWidgets__Point__x(void *thisObj)
Definition Point_c.cpp:115
int c_KDDockWidgets__Point__y(void *thisObj)
Definition Point_c.cpp:121
void c_KDDockWidgets__Point__destructor(void *thisObj)
Definition Point_c.cpp:126
bool c_KDDockWidgets__Point__isNull(void *thisObj)
Definition Point_c.cpp:93
void c_KDDockWidgets__Point__setX_int(void *thisObj, int x)
Definition Point_c.cpp:105
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