Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtWaylandClient::QWaylandTextInputv2 Class Reference

#include <qwaylandtextinputv2_p.h>

+ Inheritance diagram for QtWaylandClient::QWaylandTextInputv2:
+ Collaboration diagram for QtWaylandClient::QWaylandTextInputv2:

Public Member Functions

 QWaylandTextInputv2 (QWaylandDisplay *display, struct ::zwp_text_input_v2 *text_input)
 
 ~QWaylandTextInputv2 () override
 
void reset () override
 
void commit () override
 
void updateState (Qt::InputMethodQueries queries, uint32_t flags) override
 
void setCursorInsidePreedit (int cursor) override
 
bool isInputPanelVisible () const override
 
QRectF keyboardRect () const override
 
QLocale locale () const override
 
Qt::LayoutDirection inputDirection () const override
 
void showInputPanel () override
 
void hideInputPanel () override
 
void enableSurface (::wl_surface *surface) override
 
void disableSurface (::wl_surface *surface) override
 
- Public Member Functions inherited from QtWaylandClient::QWaylandTextInputInterface
virtual ~QWaylandTextInputInterface ()
 

Protected Member Functions

void zwp_text_input_v2_enter (uint32_t serial, struct ::wl_surface *surface) override
 
void zwp_text_input_v2_leave (uint32_t serial, struct ::wl_surface *surface) override
 
void zwp_text_input_v2_modifiers_map (wl_array *map) override
 
void zwp_text_input_v2_input_panel_state (uint32_t state, int32_t x, int32_t y, int32_t width, int32_t height) override
 
void zwp_text_input_v2_preedit_string (const QString &text, const QString &commit) override
 
void zwp_text_input_v2_preedit_styling (uint32_t index, uint32_t length, uint32_t style) override
 
void zwp_text_input_v2_preedit_cursor (int32_t index) override
 
void zwp_text_input_v2_commit_string (const QString &text) override
 
void zwp_text_input_v2_cursor_position (int32_t index, int32_t anchor) override
 
void zwp_text_input_v2_delete_surrounding_text (uint32_t before_length, uint32_t after_length) override
 
void zwp_text_input_v2_keysym (uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers) override
 
void zwp_text_input_v2_language (const QString &language) override
 
void zwp_text_input_v2_text_direction (uint32_t direction) override
 
void zwp_text_input_v2_input_method_changed (uint32_t serial, uint32_t flags) override
 

Additional Inherited Members

- Public Types inherited from QtWaylandClient::QWaylandTextInputInterface
enum  TextInputState { update_state_change = 0 , update_state_full = 1 , update_state_reset = 2 , update_state_enter = 3 }
 

Detailed Description

Definition at line 32 of file qwaylandtextinputv2_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputv2()

QtWaylandClient::QWaylandTextInputv2::QWaylandTextInputv2 ( QWaylandDisplay * display,
struct ::zwp_text_input_v2 * text_input )

Definition at line 40 of file qwaylandtextinputv2.cpp.

◆ ~QWaylandTextInputv2()

QtWaylandClient::QWaylandTextInputv2::~QWaylandTextInputv2 ( )
override

Definition at line 46 of file qwaylandtextinputv2.cpp.

Member Function Documentation

◆ commit()

void QtWaylandClient::QWaylandTextInputv2::commit ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 60 of file qwaylandtextinputv2.cpp.

References QGuiApplication::focusObject(), QString::isEmpty(), o, reset(), and QCoreApplication::sendEvent().

Referenced by zwp_text_input_v2_preedit_string().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ disableSurface()

void QtWaylandClient::QWaylandTextInputv2::disableSurface ( ::wl_surface * surface)
inlineoverridevirtual

◆ enableSurface()

void QtWaylandClient::QWaylandTextInputv2::enableSurface ( ::wl_surface * surface)
inlineoverridevirtual

◆ hideInputPanel()

void QtWaylandClient::QWaylandTextInputv2::hideInputPanel ( )
inlineoverridevirtual

Reimplemented from QtWaylandClient::QWaylandTextInputInterface.

Definition at line 54 of file qwaylandtextinputv2_p.h.

◆ inputDirection()

Qt::LayoutDirection QtWaylandClient::QWaylandTextInputv2::inputDirection ( ) const
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 178 of file qwaylandtextinputv2.cpp.

Referenced by zwp_text_input_v2_text_direction().

+ Here is the caller graph for this function:

◆ isInputPanelVisible()

bool QtWaylandClient::QWaylandTextInputv2::isInputPanelVisible ( ) const
overridevirtual

◆ keyboardRect()

QRectF QtWaylandClient::QWaylandTextInputv2::keyboardRect ( ) const
overridevirtual

◆ locale()

QLocale QtWaylandClient::QWaylandTextInputv2::locale ( ) const
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 173 of file qwaylandtextinputv2.cpp.

Referenced by zwp_text_input_v2_language().

+ Here is the caller graph for this function:

◆ reset()

void QtWaylandClient::QWaylandTextInputv2::reset ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 53 of file qwaylandtextinputv2.cpp.

References Qt::ImQueryAll, QWaylandInputMethodEventBuilder::reset(), and updateState().

Referenced by commit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCursorInsidePreedit()

void QtWaylandClient::QWaylandTextInputv2::setCursorInsidePreedit ( int cursor)
overridevirtual

◆ showInputPanel()

void QtWaylandClient::QWaylandTextInputv2::showInputPanel ( )
inlineoverridevirtual

Reimplemented from QtWaylandClient::QWaylandTextInputInterface.

Definition at line 50 of file qwaylandtextinputv2_p.h.

◆ updateState()

void QtWaylandClient::QWaylandTextInputv2::updateState ( Qt::InputMethodQueries queries,
uint32_t flags )
overridevirtual

◆ zwp_text_input_v2_commit_string()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_commit_string ( const QString & text)
overrideprotected

Definition at line 268 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::buildCommit(), QGuiApplication::focusObject(), qCDebug, QWaylandInputMethodEventBuilder::reset(), QCoreApplication::sendEvent(), and text.

+ Here is the call graph for this function:

◆ zwp_text_input_v2_cursor_position()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_cursor_position ( int32_t index,
int32_t anchor )
overrideprotected

Definition at line 287 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::setCursorPosition().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_delete_surrounding_text()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_delete_surrounding_text ( uint32_t before_length,
uint32_t after_length )
overrideprotected

Definition at line 292 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::setDeleteSurroundingText().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_enter()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_enter ( uint32_t serial,
struct ::wl_surface * surface )
overrideprotected

Definition at line 183 of file qwaylandtextinputv2.cpp.

References Qt::ImQueryAll, and updateState().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_input_method_changed()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_input_method_changed ( uint32_t serial,
uint32_t flags )
overrideprotected

Definition at line 354 of file qwaylandtextinputv2.cpp.

References Qt::ImQueryAll, Q_UNUSED, and updateState().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_input_panel_state()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_input_panel_state ( uint32_t state,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 224 of file qwaylandtextinputv2.cpp.

References QGuiApplicationPrivate::platformIntegration().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_keysym()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_keysym ( uint32_t time,
uint32_t sym,
uint32_t state,
uint32_t modifiers )
overrideprotected

Definition at line 297 of file qwaylandtextinputv2.cpp.

References QGuiApplication::focusWindow(), QWindowSystemInterface::handleKeyEvent(), QEvent::KeyPress, QEvent::KeyRelease, QXkbCommon::keysymToQtKey(), QXkbCommon::lookupStringNoKeysymTransformations(), Q_UNUSED, qCDebug, state, text, and time.

+ Here is the call graph for this function:

◆ zwp_text_input_v2_language()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_language ( const QString & language)
overrideprotected

Definition at line 324 of file qwaylandtextinputv2.cpp.

References locale(), QGuiApplicationPrivate::platformIntegration(), and qCDebug.

+ Here is the call graph for this function:

◆ zwp_text_input_v2_leave()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_leave ( uint32_t serial,
struct ::wl_surface * surface )
overrideprotected

Definition at line 191 of file qwaylandtextinputv2.cpp.

References Q_FUNC_INFO, and qCDebug.

◆ zwp_text_input_v2_modifiers_map()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_modifiers_map ( wl_array * map)
overrideprotected

Definition at line 202 of file qwaylandtextinputv2.cpp.

References Qt::AltModifier, QList< T >::append(), QList< T >::clear(), Qt::ControlModifier, QByteArray::fromRawData(), map, Qt::MetaModifier, Qt::NoModifier, Qt::ShiftModifier, and QMap< Key, T >::size().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_preedit_cursor()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_preedit_cursor ( int32_t index)
overrideprotected

Definition at line 263 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::setPreeditCursor().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_preedit_string()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_preedit_string ( const QString & text,
const QString & commit )
overrideprotected

Definition at line 238 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::buildPreedit(), commit(), QGuiApplication::focusObject(), qCDebug, QWaylandInputMethodEventBuilder::reset(), QCoreApplication::sendEvent(), and text.

+ Here is the call graph for this function:

◆ zwp_text_input_v2_preedit_styling()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_preedit_styling ( uint32_t index,
uint32_t length,
uint32_t style )
overrideprotected

Definition at line 258 of file qwaylandtextinputv2.cpp.

References QWaylandInputMethodEventBuilder::addPreeditStyling().

+ Here is the call graph for this function:

◆ zwp_text_input_v2_text_direction()

void QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_text_direction ( uint32_t direction)
overrideprotected

Definition at line 338 of file qwaylandtextinputv2.cpp.

References direction, inputDirection(), Qt::LayoutDirectionAuto, Qt::LeftToRight, QGuiApplicationPrivate::platformIntegration(), qCDebug, and Qt::RightToLeft.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: