1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef INPUTSELECTIONHANDLE_P_H
5#define INPUTSELECTIONHANDLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/QRasterWindow>
19#include <QtVirtualKeyboard/qvirtualkeyboard_global.h>
20#include <QtCore/private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QWindow;
25
26namespace QtVirtualKeyboard {
27
28class DesktopInputSelectionControl;
29
30class Q_VIRTUALKEYBOARD_EXPORT InputSelectionHandle : public QRasterWindow
31{
32 Q_OBJECT
33
34public:
35 InputSelectionHandle(DesktopInputSelectionControl *control, QWindow *eventWindow);
36 void applyImage(const QSize &windowSize);
37
38protected:
39 void paintEvent(QPaintEvent *pe) override;
40 bool event(QEvent *event) override;
41
42private:
43 DesktopInputSelectionControl *m_control;
44 QWindow *m_eventWindow;
45};
46
47} // namespace QtVirtualKeyboard
48QT_END_NAMESPACE
49
50#endif // INPUTSELECTIONHANDLE_P_H
51

source code of qtvirtualkeyboard/src/virtualkeyboard/inputselectionhandle_p.h