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::QWaylandTextInputv1 Class Reference

#include <qwaylandtextinputv1_p.h>

+ Inheritance diagram for QtWaylandClient::QWaylandTextInputv1:
+ Collaboration diagram for QtWaylandClient::QWaylandTextInputv1:

Public Member Functions

 QWaylandTextInputv1 (QWaylandDisplay *display, struct ::zwp_text_input_v1 *text_input)
 
 ~QWaylandTextInputv1 () override
 
void setSeat (struct ::wl_seat *seat)
 
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_v1_enter (struct ::wl_surface *surface) override
 
void zwp_text_input_v1_leave () override
 
void zwp_text_input_v1_modifiers_map (wl_array *map) override
 
void zwp_text_input_v1_input_panel_state (uint32_t state) override
 
void zwp_text_input_v1_preedit_string (uint32_t serial, const QString &text, const QString &commit) override
 
void zwp_text_input_v1_preedit_styling (uint32_t index, uint32_t length, uint32_t style) override
 
void zwp_text_input_v1_preedit_cursor (int32_t index) override
 
void zwp_text_input_v1_commit_string (uint32_t serial, const QString &text) override
 
void zwp_text_input_v1_cursor_position (int32_t index, int32_t anchor) override
 
void zwp_text_input_v1_delete_surrounding_text (int32_t before_length, uint32_t after_length) override
 
void zwp_text_input_v1_keysym (uint32_t serial, uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers) override
 
void zwp_text_input_v1_language (uint32_t serial, const QString &language) override
 
void zwp_text_input_v1_text_direction (uint32_t serial, uint32_t direction) 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 qwaylandtextinputv1_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputv1()

QtWaylandClient::QWaylandTextInputv1::QWaylandTextInputv1 ( QWaylandDisplay * display,
struct ::zwp_text_input_v1 * text_input )

Definition at line 39 of file qwaylandtextinputv1.cpp.

References Q_UNUSED.

◆ ~QWaylandTextInputv1()

QtWaylandClient::QWaylandTextInputv1::~QWaylandTextInputv1 ( )
override

Definition at line 45 of file qwaylandtextinputv1.cpp.

Member Function Documentation

◆ commit()

void QtWaylandClient::QWaylandTextInputv1::commit ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 59 of file qwaylandtextinputv1.cpp.

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

Referenced by zwp_text_input_v1_preedit_string().

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

◆ disableSurface()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 64 of file qwaylandtextinputv1_p.h.

References Q_UNUSED.

◆ enableSurface()

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

◆ hideInputPanel()

void QtWaylandClient::QWaylandTextInputv1::hideInputPanel ( )
inlineoverridevirtual

Reimplemented from QtWaylandClient::QWaylandTextInputInterface.

Definition at line 56 of file qwaylandtextinputv1_p.h.

◆ inputDirection()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 169 of file qwaylandtextinputv1.cpp.

Referenced by zwp_text_input_v1_text_direction().

+ Here is the caller graph for this function:

◆ isInputPanelVisible()

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

◆ keyboardRect()

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

◆ locale()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 164 of file qwaylandtextinputv1.cpp.

Referenced by zwp_text_input_v1_language().

+ Here is the caller graph for this function:

◆ reset()

void QtWaylandClient::QWaylandTextInputv1::reset ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 52 of file qwaylandtextinputv1.cpp.

References Qt::ImQueryAll, QWaylandInputMethodEventBuilder::reset(), QtWaylandClient::QWaylandTextInputInterface::update_state_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::QWaylandTextInputv1::setCursorInsidePreedit ( int cursor)
overridevirtual

◆ setSeat()

void QtWaylandClient::QWaylandTextInputv1::setSeat ( struct ::wl_seat * seat)
inline

Definition at line 38 of file qwaylandtextinputv1_p.h.

◆ showInputPanel()

void QtWaylandClient::QWaylandTextInputv1::showInputPanel ( )
inlineoverridevirtual

Reimplemented from QtWaylandClient::QWaylandTextInputInterface.

Definition at line 52 of file qwaylandtextinputv1_p.h.

◆ updateState()

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

◆ zwp_text_input_v1_commit_string()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_commit_string ( uint32_t serial,
const QString & text )
overrideprotected

Definition at line 249 of file qwaylandtextinputv1.cpp.

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

+ Here is the call graph for this function:

◆ zwp_text_input_v1_cursor_position()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_cursor_position ( int32_t index,
int32_t anchor )
overrideprotected

Definition at line 274 of file qwaylandtextinputv1.cpp.

References QWaylandInputMethodEventBuilder::setCursorPosition().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_delete_surrounding_text()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_delete_surrounding_text ( int32_t before_length,
uint32_t after_length )
overrideprotected

Definition at line 279 of file qwaylandtextinputv1.cpp.

References QWaylandInputMethodEventBuilder::setDeleteSurroundingText().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_enter()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_enter ( struct ::wl_surface * surface)
overrideprotected

Definition at line 174 of file qwaylandtextinputv1.cpp.

References Qt::ImQueryAll, QtWaylandClient::QWaylandTextInputInterface::update_state_reset, and updateState().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_input_panel_state()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_input_panel_state ( uint32_t state)
overrideprotected

Definition at line 208 of file qwaylandtextinputv1.cpp.

References QGuiApplicationPrivate::platformIntegration().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_keysym()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_keysym ( uint32_t serial,
uint32_t time,
uint32_t sym,
uint32_t state,
uint32_t modifiers )
overrideprotected

Definition at line 285 of file qwaylandtextinputv1.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_v1_language()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_language ( uint32_t serial,
const QString & language )
overrideprotected

Definition at line 314 of file qwaylandtextinputv1.cpp.

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

+ Here is the call graph for this function:

◆ zwp_text_input_v1_leave()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_leave ( )
overrideprotected

Definition at line 181 of file qwaylandtextinputv1.cpp.

◆ zwp_text_input_v1_modifiers_map()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_modifiers_map ( wl_array * map)
overrideprotected

Definition at line 186 of file qwaylandtextinputv1.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_v1_preedit_cursor()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_preedit_cursor ( int32_t index)
overrideprotected

Definition at line 244 of file qwaylandtextinputv1.cpp.

References QWaylandInputMethodEventBuilder::setPreeditCursor().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_preedit_string()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_preedit_string ( uint32_t serial,
const QString & text,
const QString & commit )
overrideprotected

Definition at line 217 of file qwaylandtextinputv1.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_v1_preedit_styling()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_preedit_styling ( uint32_t index,
uint32_t length,
uint32_t style )
overrideprotected

Definition at line 239 of file qwaylandtextinputv1.cpp.

References QWaylandInputMethodEventBuilder::addPreeditStyling().

+ Here is the call graph for this function:

◆ zwp_text_input_v1_text_direction()

void QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_text_direction ( uint32_t serial,
uint32_t direction )
overrideprotected

Definition at line 330 of file qwaylandtextinputv1.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: