KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
flutter
views
flutter/views/ClassicIndicatorsWindow.h
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2023 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 "
View.h
"
15
#include "
core/views/ClassicIndicatorWindowViewInterface.h
"
16
17
namespace
KDDockWidgets
{
18
19
namespace
Core {
20
class
ClassicDropIndicatorOverlay;
21
class
Group
;
22
}
23
24
namespace
flutter {
25
26
class
IndicatorWindow
:
public
flutter::View
,
public
Core::ClassicIndicatorWindowViewInterface
27
{
28
public
:
30
explicit
IndicatorWindow
(
Core::ClassicDropIndicatorOverlay
*,
Core::View
*parent);
31
~IndicatorWindow
()
override
;
32
33
DropLocation
hover
(Point globalPos)
override
;
34
void
updatePositions
()
override
;
35
Point
posForIndicator
(
DropLocation
)
const override
;
36
void
raise
()
override
;
37
void
setVisible
(
bool
)
override
;
38
bool
isWindow
()
const override
;
39
void
setGeometry
(Rect)
override
;
40
void
resize
(Size)
override
;
41
void
setObjectName
(
const
QString
&)
override
;
42
44
virtual
Point
posForIndicator_flutter
(
DropLocation
)
const
;
45
virtual
DropLocation
hover_flutter
(Point globalPos);
46
virtual
bool
updatePositions_flutter
(
int
overlayWidth,
int
overlayHeight,
47
Core::Group
*
hoveredGroup
,
int
visibleLocations);
48
49
Core::View
*
rubberBand
()
const
;
50
Core::Group
*
hoveredGroup
()
const
;
51
52
private
:
53
int
visibleDropIndicatorLocations()
const
;
54
Core::ClassicDropIndicatorOverlay
*
const
classicIndicators;
55
bool
m_updatePending =
false
;
56
};
57
58
}
59
60
}
ClassicIndicatorWindowViewInterface.h
KDDockWidgets::Core::ClassicDropIndicatorOverlay
Definition
ClassicDropIndicatorOverlay.h:25
KDDockWidgets::Core::ClassicIndicatorWindowViewInterface
The window that will hold the classic indicators This is a window so it can be over the window that i...
Definition
ClassicIndicatorWindowViewInterface.h:25
KDDockWidgets::Core::Group
Definition
core/Group.h:41
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::flutter::IndicatorWindow
Definition
flutter/views/ClassicIndicatorsWindow.h:27
KDDockWidgets::flutter::IndicatorWindow::hoveredGroup
Core::Group * hoveredGroup() const
Definition
flutter/views/ClassicIndicatorsWindow.cpp:96
KDDockWidgets::flutter::IndicatorWindow::posForIndicator_flutter
virtual Point posForIndicator_flutter(DropLocation) const
implemented in dart. workaround for multi-inheritance binding limitations
Definition
flutter/views/ClassicIndicatorsWindow.cpp:101
KDDockWidgets::flutter::IndicatorWindow::resize
void resize(Size) override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:86
KDDockWidgets::flutter::IndicatorWindow::rubberBand
Core::View * rubberBand() const
Definition
flutter/views/ClassicIndicatorsWindow.cpp:119
KDDockWidgets::flutter::IndicatorWindow::hover
DropLocation hover(Point globalPos) override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:42
KDDockWidgets::flutter::IndicatorWindow::setVisible
void setVisible(bool) override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:77
KDDockWidgets::flutter::IndicatorWindow::updatePositions
void updatePositions() override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:54
KDDockWidgets::flutter::IndicatorWindow::hover_flutter
virtual DropLocation hover_flutter(Point globalPos)
Definition
flutter/views/ClassicIndicatorsWindow.cpp:107
KDDockWidgets::flutter::IndicatorWindow::posForIndicator
Point posForIndicator(DropLocation) const override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:37
KDDockWidgets::flutter::IndicatorWindow::raise
void raise() override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:62
KDDockWidgets::flutter::IndicatorWindow::isWindow
bool isWindow() const override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:91
KDDockWidgets::flutter::IndicatorWindow::setGeometry
void setGeometry(Rect) override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:67
KDDockWidgets::flutter::IndicatorWindow::~IndicatorWindow
~IndicatorWindow() override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:32
KDDockWidgets::flutter::IndicatorWindow::setObjectName
void setObjectName(const QString &) override
Definition
flutter/views/ClassicIndicatorsWindow.cpp:72
KDDockWidgets::flutter::IndicatorWindow::updatePositions_flutter
virtual bool updatePositions_flutter(int overlayWidth, int overlayHeight, Core::Group *hoveredGroup, int visibleLocations)
Definition
flutter/views/ClassicIndicatorsWindow.cpp:113
KDDockWidgets::flutter::View
Definition
flutter/views/View.h:23
KDDockWidgets::Core::ViewType::Group
@ Group
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::DropLocation
DropLocation
Enum describing the different drop indicator types.
Definition
KDDockWidgets.h:289
QString
View.h
© 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