Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatforminputcontext.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLATFORMINPUTCONTEXT_H
6
#
define
QPLATFORMINPUTCONTEXT_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is part of the QPA API and is not meant to be used
13
// in applications. Usage of this API may make your code
14
// source and binary incompatible with future versions of Qt.
15
//
16
17
#
include
<
QtGui
/
qtguiglobal
.
h
>
18
#
include
<
QtGui
/
qinputmethod
.
h
>
19
20
QT_BEGIN_NAMESPACE
21
22
class
QPlatformInputContextPrivate;
23
24
class
Q_GUI_EXPORT
QPlatformInputContext
:
public
QObject
25
{
26
Q_OBJECT
27
Q_DECLARE_PRIVATE(QPlatformInputContext)
28
29
public
:
30
enum
Capability {
31
HiddenTextCapability = 0x1
32
};
33
34
QPlatformInputContext();
35
~QPlatformInputContext();
36
37
virtual
bool
isValid()
const
;
38
virtual
bool
hasCapability(Capability capability)
const
;
39
40
virtual
void
reset();
41
virtual
void
commit();
42
virtual
void
update(Qt::InputMethodQueries);
43
virtual
void
invokeAction(QInputMethod::Action,
int
cursorPosition);
44
virtual
bool
filterEvent(
const
QEvent *event);
45
virtual
QRectF keyboardRect()
const
;
46
void
emitKeyboardRectChanged();
47
48
virtual
bool
isAnimating()
const
;
49
void
emitAnimatingChanged();
50
51
virtual
void
showInputPanel();
52
virtual
void
hideInputPanel();
53
virtual
bool
isInputPanelVisible()
const
;
54
void
emitInputPanelVisibleChanged();
55
56
virtual
QLocale locale()
const
;
57
void
emitLocaleChanged();
58
virtual
Qt::LayoutDirection inputDirection()
const
;
59
void
emitInputDirectionChanged(Qt::LayoutDirection newDirection);
60
61
virtual
void
setFocusObject(QObject *object);
62
bool
inputMethodAccepted()
const
;
63
64
static
void
setSelectionOnFocusObject(
const
QPointF &anchorPos,
const
QPointF &cursorPos);
65
static
QVariant queryFocusObject(Qt::InputMethodQuery query, QPointF position);
66
static
QRectF inputItemRectangle();
67
static
QRectF inputItemClipRectangle();
68
static
QRectF cursorRectangle();
69
static
QRectF anchorRectangle();
70
static
QRectF keyboardRectangle();
71
72
private
:
73
friend
class
QGuiApplication;
74
friend
class
QGuiApplicationPrivate;
75
friend
class
QInputMethod;
76
77
Qt::LayoutDirection m_inputDirection;
78
};
79
80
QT_END_NAMESPACE
81
82
#
endif
// QPLATFORMINPUTCONTEXT_H
QPlatformInputContext
The QPlatformInputContext class abstracts the input method dependent data and composing state.
Definition
qplatforminputcontext.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qApp
#define qApp
Definition
qcoreapplication.h:38
qtbase
src
gui
kernel
qplatforminputcontext.h
Generated on
for Qt by
1.18.0