KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
core
EventFilterInterface.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 "../QtCompat_p.h"
15
16
#include <memory>
17
18
namespace
KDDockWidgets
{
19
20
namespace
Core {
21
22
class
Window
;
23
class
View;
24
25
class
EventFilterInterface
26
{
27
public
:
28
EventFilterInterface
() =
default
;
29
virtual
~EventFilterInterface
();
30
32
virtual
bool
onExposeEvent
(std::shared_ptr<Window>)
33
{
34
return
false
;
35
}
36
38
virtual
bool
onMouseButtonPress
(
View
*, MouseEvent *)
39
{
40
return
false
;
41
}
42
44
virtual
bool
onMouseButtonRelease
(
View
*, MouseEvent *)
45
{
46
return
false
;
47
}
48
50
virtual
bool
onMouseButtonMove
(
View
*, MouseEvent *)
51
{
52
return
false
;
53
}
54
56
virtual
bool
onMouseDoubleClick
(
View
*, MouseEvent *)
57
{
58
return
false
;
59
}
60
65
virtual
bool
onMouseEvent
(
View
*, MouseEvent *)
66
{
67
return
false
;
68
}
69
71
virtual
bool
onDnDEvent
(
View
*, Event *)
72
{
73
return
false
;
74
}
75
77
virtual
bool
onMoveEvent
(
View
*)
78
{
79
return
false
;
80
}
81
82
EventFilterInterface
(
const
EventFilterInterface
&) =
delete
;
83
EventFilterInterface
&
operator=
(
const
EventFilterInterface
&) =
delete
;
84
};
85
86
}
87
88
}
KDDockWidgets::Core::EventFilterInterface
Definition
EventFilterInterface.h:26
KDDockWidgets::Core::EventFilterInterface::EventFilterInterface
EventFilterInterface(const EventFilterInterface &)=delete
KDDockWidgets::Core::EventFilterInterface::onMouseEvent
virtual bool onMouseEvent(View *, MouseEvent *)
Provided for convenience, aggregates all other overloads receives all mouse event types,...
Definition
EventFilterInterface.h:65
KDDockWidgets::Core::EventFilterInterface::onMoveEvent
virtual bool onMoveEvent(View *)
Override to handle a move event.
Definition
EventFilterInterface.h:77
KDDockWidgets::Core::EventFilterInterface::onDnDEvent
virtual bool onDnDEvent(View *, Event *)
Override to handle drag enter, drag leave, drag move and drop events.
Definition
EventFilterInterface.h:71
KDDockWidgets::Core::EventFilterInterface::~EventFilterInterface
virtual ~EventFilterInterface()
KDDockWidgets::Core::EventFilterInterface::onMouseDoubleClick
virtual bool onMouseDoubleClick(View *, MouseEvent *)
Override to handle when a view receives a mouse double click event.
Definition
EventFilterInterface.h:56
KDDockWidgets::Core::EventFilterInterface::onMouseButtonRelease
virtual bool onMouseButtonRelease(View *, MouseEvent *)
Override to handle when a view receives a mouse press event.
Definition
EventFilterInterface.h:44
KDDockWidgets::Core::EventFilterInterface::EventFilterInterface
EventFilterInterface()=default
KDDockWidgets::Core::EventFilterInterface::operator=
EventFilterInterface & operator=(const EventFilterInterface &)=delete
KDDockWidgets::Core::EventFilterInterface::onMouseButtonPress
virtual bool onMouseButtonPress(View *, MouseEvent *)
Override to handle when a view receives a mouse press event.
Definition
EventFilterInterface.h:38
KDDockWidgets::Core::EventFilterInterface::onMouseButtonMove
virtual bool onMouseButtonMove(View *, MouseEvent *)
Override to handle when a view receives a mouse press event.
Definition
EventFilterInterface.h:50
KDDockWidgets::Core::EventFilterInterface::onExposeEvent
virtual bool onExposeEvent(std::shared_ptr< Window >)
Override to handle expose events for a certain window.
Definition
EventFilterInterface.h:32
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
Qt::Window
Window
© 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