KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
KDDWBindingsCore/TabBar_c.h
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 "kddockwidgets_export.h"
12#include <TabBar.h>
13#include "core/Stack.h"
14#include <core/DockWidget.h>
15#include <geometry_helpers_p.h>
16#include <core/Group.h>
17#include <string_p.h>
18#include <core/View.h>
19
21namespace KDDWBindingsCore {
23{
24public:
26 TabBar_wrapper(KDDockWidgets::Core::Stack *tabWidget = nullptr);
28 int currentIndex() const;
29 KDDockWidgets::Core::DockWidget *dockWidgetAt(KDDockWidgets::Point localPos) const;
31 virtual bool dragCanStart(KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const;
32 virtual bool dragCanStart_nocallback(KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const;
34 bool hasSingleDockWidget() const;
36 virtual bool isMDI() const;
37 virtual bool isMDI_nocallback() const;
38 bool isMovingTab() const;
39 virtual bool isWindow() const;
40 virtual bool isWindow_nocallback() const;
41 void moveTabTo(int from, int to);
42 int numDockWidgets() const;
43 void onMouseDoubleClick(KDDockWidgets::Point localPos);
44 void onMousePress(KDDockWidgets::Point localPos);
45 KDDockWidgets::Rect rectForTab(int index) const;
47 void renameTab(int index, const QString &arg__2);
49 void setCurrentIndex(int index);
53 bool tabsAreMovable() const;
54 QString text(int index) const;
55 typedef bool (*Callback_dragCanStart)(void *, KDDockWidgets::Point *pressPos, KDDockWidgets::Point *pos);
57 typedef bool (*Callback_isMDI)(void *);
59 typedef bool (*Callback_isWindow)(void *);
63 typedef KDDockWidgets::Core::DockWidget *(*Callback_singleDockWidget)(void *);
65};
66}
67}
68extern "C" {
69// KDDockWidgets::Core::TabBar::TabBar(KDDockWidgets::Core::Stack * tabWidget)
70DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__constructor_Stack(void *tabWidget_);
71// KDDockWidgets::Core::TabBar::currentDockWidget() const
72DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__currentDockWidget(void *thisObj);
73// KDDockWidgets::Core::TabBar::currentIndex() const
74DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__currentIndex(void *thisObj);
75// KDDockWidgets::Core::TabBar::dockWidgetAt(KDDockWidgets::Point localPos) const
76DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__dockWidgetAt_Point(void *thisObj, void *localPos_);
77// KDDockWidgets::Core::TabBar::dockWidgetAt(int index) const
78DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__dockWidgetAt_int(void *thisObj, int index);
79// KDDockWidgets::Core::TabBar::dragCanStart(KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const
80DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__dragCanStart_Point_Point(void *thisObj, void *pressPos_, void *pos_);
81// KDDockWidgets::Core::TabBar::group() const
82DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__group(void *thisObj);
83// KDDockWidgets::Core::TabBar::hasSingleDockWidget() const
84DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__hasSingleDockWidget(void *thisObj);
85// KDDockWidgets::Core::TabBar::indexOfDockWidget(const KDDockWidgets::Core::DockWidget * dw) const
86DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__indexOfDockWidget_DockWidget(void *thisObj, void *dw_);
87// KDDockWidgets::Core::TabBar::isMDI() const
88DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isMDI(void *thisObj);
89// KDDockWidgets::Core::TabBar::isMovingTab() const
90DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isMovingTab(void *thisObj);
91// KDDockWidgets::Core::TabBar::isWindow() const
92DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isWindow(void *thisObj);
93// KDDockWidgets::Core::TabBar::moveTabTo(int from, int to)
94DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__moveTabTo_int_int(void *thisObj, int from, int to);
95// KDDockWidgets::Core::TabBar::numDockWidgets() const
96DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__numDockWidgets(void *thisObj);
97// KDDockWidgets::Core::TabBar::onMouseDoubleClick(KDDockWidgets::Point localPos)
98DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__onMouseDoubleClick_Point(void *thisObj, void *localPos_);
99// KDDockWidgets::Core::TabBar::onMousePress(KDDockWidgets::Point localPos)
100DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__onMousePress_Point(void *thisObj, void *localPos_);
101// KDDockWidgets::Core::TabBar::rectForTab(int index) const
102DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__rectForTab_int(void *thisObj, int index);
103// KDDockWidgets::Core::TabBar::removeDockWidget(KDDockWidgets::Core::DockWidget * dw)
104DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__removeDockWidget_DockWidget(void *thisObj, void *dw_);
105// KDDockWidgets::Core::TabBar::renameTab(int index, const QString & arg__2)
106DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__renameTab_int_QString(void *thisObj, int index, const char *arg__2_);
107// KDDockWidgets::Core::TabBar::setCurrentDockWidget(KDDockWidgets::Core::DockWidget * dw)
108DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setCurrentDockWidget_DockWidget(void *thisObj, void *dw_);
109// KDDockWidgets::Core::TabBar::setCurrentIndex(int index)
110DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setCurrentIndex_int(void *thisObj, int index);
111// KDDockWidgets::Core::TabBar::setParentView_impl(KDDockWidgets::Core::View * parent)
112DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setParentView_impl_View(void *thisObj, void *parent_);
113// KDDockWidgets::Core::TabBar::singleDockWidget() const
114DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__singleDockWidget(void *thisObj);
115// KDDockWidgets::Core::TabBar::stack() const
116DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__stack(void *thisObj);
117// KDDockWidgets::Core::TabBar::tabsAreMovable() const
118DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__tabsAreMovable(void *thisObj);
119// KDDockWidgets::Core::TabBar::text(int index) const
120DOCKS_EXPORT void *c_KDDockWidgets__Core__TabBar__text_int(void *thisObj, int index);
121DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__destructor(void *thisObj);
122DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__registerVirtualMethodCallback(void *ptr, void *callback, int methodId);
123DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar_Finalizer(void *cppObj);
124}
DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__indexOfDockWidget_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setParentView_impl_View(void *thisObj, void *parent_)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setCurrentIndex_int(void *thisObj, int index)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__tabsAreMovable(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__onMousePress_Point(void *thisObj, void *localPos_)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__setCurrentDockWidget_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isMovingTab(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__dragCanStart_Point_Point(void *thisObj, void *pressPos_, void *pos_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__constructor_Stack(void *tabWidget_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__group(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__rectForTab_int(void *thisObj, int index)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__currentDockWidget(void *thisObj)
DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__currentIndex(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__registerVirtualMethodCallback(void *ptr, void *callback, int methodId)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__text_int(void *thisObj, int index)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__singleDockWidget(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__destructor(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__removeDockWidget_DockWidget(void *thisObj, void *dw_)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__dockWidgetAt_Point(void *thisObj, void *localPos_)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__renameTab_int_QString(void *thisObj, int index, const char *arg__2_)
DOCKS_EXPORT int c_KDDockWidgets__Core__TabBar__numDockWidgets(void *thisObj)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__dockWidgetAt_int(void *thisObj, int index)
DOCKS_EXPORT void * c_KDDockWidgets__Core__TabBar__stack(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__moveTabTo_int_int(void *thisObj, int from, int to)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isMDI(void *thisObj)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__isWindow(void *thisObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar_Finalizer(void *cppObj)
DOCKS_EXPORT void c_KDDockWidgets__Core__TabBar__onMouseDoubleClick_Point(void *thisObj, void *localPos_)
DOCKS_EXPORT bool c_KDDockWidgets__Core__TabBar__hasSingleDockWidget(void *thisObj)
void(* Callback_setParentView_impl)(void *, KDDockWidgets::Core::View *parent)
virtual void setParentView_impl_nocallback(KDDockWidgets::Core::View *parent)
KDDockWidgets::Core::DockWidget * dockWidgetAt(KDDockWidgets::Point localPos) const
int indexOfDockWidget(const KDDockWidgets::Core::DockWidget *dw) const
virtual bool dragCanStart(KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const
bool(* Callback_dragCanStart)(void *, KDDockWidgets::Point *pressPos, KDDockWidgets::Point *pos)
virtual bool dragCanStart_nocallback(KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
The DockWidget controller that's shared between QtWidgets and QtQuick frontends.

© 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