KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
ClassicDropIndicatorOverlay.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
12#pragma once
13
15
16namespace KDDockWidgets {
17
18class Indicator;
19
20namespace Core {
21
22class ClassicIndicatorWindowViewInterface;
23
25{
26 Q_OBJECT
27public:
30 DropLocation hover_impl(Point globalPos) override;
31 Point posForIndicator(DropLocation) const override;
32
33 bool onResize(Size newSize);
34 void setCurrentDropLocation(DropLocation) override;
35 void updateVisibility() override;
36
37 Core::ClassicIndicatorWindowViewInterface *indicatorWindow() const;
38 View *rubberBand() const;
39
40private:
41 friend class KDDockWidgets::Indicator;
42 bool rubberBandIsTopLevel() const;
43 void raiseIndicators();
44 Rect geometryForRubberband(Rect localRect) const;
45 void updateWindowPosition();
46
47 View *const m_rubberBand;
48 Core::ClassicIndicatorWindowViewInterface *const m_indicatorWindow;
49};
50
51}
52
53}
The window that will hold the classic indicators This is a window so it can be over the window that i...
Class to abstract QAction, so code still works with QtQuick and Flutter.
DropLocation
Enum describing the different drop indicator types.

© 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