4#ifndef QWAYLANDTEXTINPUT_P_H
5#define QWAYLANDTEXTINPUT_P_H
7#include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h>
8#include <QtWaylandCompositor/private/qwayland-server-text-input-unstable-v2.h>
9#include <QtWaylandCompositor/QWaylandDestroyListener>
11#include <QtCore/QObject>
13#include <QtCore/QHash>
14#include <QtCore/QRect>
15#include <QtGui/QInputMethod>
16#include <QtWaylandCompositor/QWaylandSurface>
61 void sendInputPanelState();
62 void sendTextDirection();
64 void sendModifiersMap(
const QByteArray &modifiersMap);
73 Resource *focusResource =
nullptr;
76 bool inputPanelVisible =
false;
86 void zwp_text_input_v2_bind_resource(Resource *resource)
override;
87 void zwp_text_input_v2_destroy_resource(Resource *resource)
override;
89 void zwp_text_input_v2_destroy(Resource *resource)
override;
90 void zwp_text_input_v2_enable(Resource *resource, wl_resource *surface)
override;
91 void zwp_text_input_v2_disable(Resource *resource, wl_resource *surface)
override;
92 void zwp_text_input_v2_show_input_panel(Resource *resource)
override;
93 void zwp_text_input_v2_hide_input_panel(Resource *resource)
override;
94 void zwp_text_input_v2_set_surrounding_text(Resource *resource,
const QString &
text, int32_t
cursor, int32_t anchor)
override;
95 void zwp_text_input_v2_set_content_type(Resource *resource, uint32_t
hint, uint32_t purpose)
override;
96 void zwp_text_input_v2_set_cursor_rectangle(Resource *resource, int32_t
x, int32_t
y, int32_t
width, int32_t
height)
override;
97 void zwp_text_input_v2_set_preferred_language(Resource *resource,
const QString &
language)
override;
98 void zwp_text_input_v2_update_state(Resource *resource, uint32_t serial, uint32_t
flags)
override;
102 quint32 controlModifierMask = 2;
The QKeyEvent class describes a key event.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Qt::InputMethodHints hints
Qt::InputMethodQueries updatedQueries(const QWaylandTextInputClientState &other) const
QWaylandTextInputClientState()
Qt::InputMethodQueries changedState
Qt::InputMethodQueries mergeChanged(const QWaylandTextInputClientState &other)
QString preferredLanguage
QHash< Resource *, QWaylandSurface * > enabledSurfaces
QWaylandDestroyListener focusDestroyListener
std::unique_ptr< QWaylandTextInputClientState > pendingState
std::unique_ptr< QWaylandTextInputClientState > currentState
\qmltype WaylandView \instantiates QWaylandView \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)