KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
core/Separator.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2020 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
12#pragma once
13
14#include "Controller.h"
15#include "kddockwidgets/KDDockWidgets.h"
16
17namespace KDDockWidgets {
18class Config;
19}
20
21namespace KDDockWidgets::Core {
22
23class LayoutingSeparator;
24class LayoutingHost;
25class ItemBoxContainer;
26
27class DOCKS_EXPORT Separator : public Controller
28{
29 Q_OBJECT
30public:
32
35 explicit Separator(LayoutingHost *host, Qt::Orientation orientation, Core::ItemBoxContainer *parentContainer);
36 virtual ~Separator() override;
37
38 bool isVertical() const;
39 int position() const;
40 void setGeometry(Rect r);
41
42 LayoutingSeparator *asLayoutingSeparator() const;
43
46 static bool isResizing();
47
50 static int numSeparators();
51
52public:
53 void onMousePress();
55 void onMouseDoubleClick();
56 void onMouseMove(Point pos);
57
58private:
60
62 void setLazyPosition(int);
63 bool usesLazyResize() const;
64
65 struct Private;
66 Private *const d;
67};
68
69}
#define KDDW_DELETE_COPY_CTOR(NAME)
Singleton to allow to choose certain behaviours of the framework.
Definition Config.h:64
Vector< Separator * > List
Class to abstract QAction, so code still works with QtQuick and Flutter.
Orientation

© 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