KWayland
textinput_interface_v0.cpp
21 Private(TextInputInterface *q, TextInputManagerUnstableV0Interface *c, wl_resource *parentResource);
51 static void activateCallback(wl_client *client, wl_resource *resource, wl_resource *seat, wl_resource *surface);
54 static void setSurroundingTextUintCallback(wl_client *client, wl_resource *resource, const char *text, uint32_t cursor, uint32_t anchor);
56 static void invokeActionCallback(wl_client *client, wl_resource *resource, uint32_t button, uint32_t index);
66 const struct wl_text_input_interface TextInputUnstableV0Interface::Private::s_interface = {activateCallback,
103 void TextInputUnstableV0Interface::Private::sendLeave(quint32 serial, SurfaceInterface *surface)
113 void TextInputUnstableV0Interface::Private::preEdit(const QByteArray &text, const QByteArray &commit)
129 void TextInputUnstableV0Interface::Private::keysymPressed(quint32 keysym, Qt::KeyboardModifiers modifiers)
135 wl_text_input_send_keysym(resource, latestState, seat ? seat->timestamp() : 0, keysym, WL_KEYBOARD_KEY_STATE_PRESSED, 0);
138 void TextInputUnstableV0Interface::Private::keysymReleased(quint32 keysym, Qt::KeyboardModifiers modifiers)
144 wl_text_input_send_keysym(resource, latestState, seat ? seat->timestamp() : 0, keysym, WL_KEYBOARD_KEY_STATE_RELEASED, 0);
147 void TextInputUnstableV0Interface::Private::deleteSurroundingText(quint32 beforeLength, quint32 afterLength)
152 wl_text_input_send_delete_surrounding_text(resource, -1 * beforeLength, beforeLength + afterLength);
210 TextInputUnstableV0Interface::Private::Private(TextInputInterface *q, TextInputManagerUnstableV0Interface *c, wl_resource *parentResource)
217 void TextInputUnstableV0Interface::Private::activateCallback(wl_client *client, wl_resource *resource, wl_resource *seat, wl_resource *surface)
224 void TextInputUnstableV0Interface::Private::deactivateCallback(wl_client *client, wl_resource *resource, wl_resource *seat)
232 void TextInputUnstableV0Interface::Private::resetCallback(wl_client *client, wl_resource *resource)
248 void TextInputUnstableV0Interface::Private::commitStateCallback(wl_client *client, wl_resource *resource, uint32_t serial)
255 void TextInputUnstableV0Interface::Private::invokeActionCallback(wl_client *client, wl_resource *resource, uint32_t button, uint32_t index)
264 TextInputInterface::ContentHints TextInputUnstableV0Interface::Private::convertContentHint(uint32_t hint) const
302 TextInputInterface::ContentPurpose TextInputUnstableV0Interface::Private::convertContentPurpose(uint32_t purpose) const
337 TextInputUnstableV0Interface::TextInputUnstableV0Interface(TextInputManagerUnstableV0Interface *parent, wl_resource *parentResource)
367 const struct wl_text_input_manager_interface TextInputManagerUnstableV0Interface::Private::s_interface = {createTextInputCallback};
370 void TextInputManagerUnstableV0Interface::Private::createTextInputCallback(wl_client *client, wl_resource *resource, uint32_t id)
378 QObject::connect(t, &TextInputUnstableV0Interface::requestActivate, m->q, [t](SeatInterface *seat) {
397 TextInputManagerUnstableV0Interface::Private::Private(TextInputManagerUnstableV0Interface *q, Display *d)
398 : TextInputManagerInterface::Private(TextInputInterfaceVersion::UnstableV0, q, d, &wl_text_input_manager_interface, s_version)
403 void TextInputManagerUnstableV0Interface::Private::bind(wl_client *client, uint32_t version, uint32_t id)
406 wl_resource *resource = c->createResource(&wl_text_input_manager_interface, qMin(version, s_version), id);
421 TextInputManagerUnstableV0Interface::TextInputManagerUnstableV0Interface(Display *display, QObject *parent)
@ UnstableV0
wl_text_input as the non-standardized version
@ TitleCase
prefer casing for titles and headings (can be language dependent)
@ AutoCorrection
suggest word corrections
@ HiddenText
characters should be hidden
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static SurfaceInterface * get(wl_resource *native)
Definition: surface_interface.cpp:725
@ SensitiveData
typed text should not be stored
void destroyed(QObject *obj)
ContentPurpose
The ContentPurpose allows to specify the primary purpose of a text input.
Definition: textinput_interface.h:153
@ Latin
just latin characters should be entered
@ Number
input a number (including decimal separator and sign)
@ AutoCompletion
suggest word completions
@ Normal
default input, allowing all characters
KDB_EXPORT KDbVersionInfo version()
const char * constData() const const
LayoutDirection
@ AutoCapitalization
switch to uppercase letters at the start of a sentence
TextInputInterfaceVersion
Enum describing the different InterfaceVersion encapsulated in this implementation.
Definition: textinput_interface.h:28
typedef KeyboardModifiers
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:08:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:08:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.