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

#include <qwaylandtextinputv3_p.h>

+ Inheritance diagram for QtWaylandClient::QWaylandTextInputv3:
+ Collaboration diagram for QtWaylandClient::QWaylandTextInputv3:

Public Member Functions

 QWaylandTextInputv3 (QWaylandDisplay *display, struct ::zwp_text_input_v3 *text_input)
 
 ~QWaylandTextInputv3 () 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 enableSurface (::wl_surface *) override
 
void disableSurface (::wl_surface *) override
 
- Public Member Functions inherited from QtWaylandClient::QWaylandTextInputInterface
virtual ~QWaylandTextInputInterface ()
 
virtual void showInputPanel ()
 
virtual void hideInputPanel ()
 

Protected Member Functions

void zwp_text_input_v3_enter (struct ::wl_surface *surface) override
 
void zwp_text_input_v3_leave (struct ::wl_surface *surface) override
 
void zwp_text_input_v3_preedit_string (const QString &text, int32_t cursor_begin, int32_t cursor_end) override
 
void zwp_text_input_v3_commit_string (const QString &text) override
 
void zwp_text_input_v3_delete_surrounding_text (uint32_t before_length, uint32_t after_length) override
 
void zwp_text_input_v3_done (uint32_t serial) 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 34 of file qwaylandtextinputv3_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputv3()

QtWaylandClient::QWaylandTextInputv3::QWaylandTextInputv3 ( QWaylandDisplay * display,
struct ::zwp_text_input_v3 * text_input )

Definition at line 22 of file qwaylandtextinputv3.cpp.

References Q_UNUSED.

◆ ~QWaylandTextInputv3()

QtWaylandClient::QWaylandTextInputv3::~QWaylandTextInputv3 ( )
override

Definition at line 29 of file qwaylandtextinputv3.cpp.

Member Function Documentation

◆ commit()

void QtWaylandClient::QWaylandTextInputv3::commit ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 186 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, and qCDebug.

Referenced by updateState().

+ Here is the caller graph for this function:

◆ disableSurface()

void QtWaylandClient::QWaylandTextInputv3::disableSurface ( ::wl_surface * )
inlineoverridevirtual

◆ enableSurface()

void QtWaylandClient::QWaylandTextInputv3::enableSurface ( ::wl_surface * )
inlineoverridevirtual

◆ inputDirection()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 344 of file qwaylandtextinputv3.cpp.

References Qt::LeftToRight.

◆ isInputPanelVisible()

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

◆ keyboardRect()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 333 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, and qCDebug.

◆ locale()

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

◆ reset()

void QtWaylandClient::QWaylandTextInputv3::reset ( )
overridevirtual

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 179 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, and qCDebug.

◆ setCursorInsidePreedit()

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

Implements QtWaylandClient::QWaylandTextInputInterface.

Definition at line 323 of file qwaylandtextinputv3.cpp.

References cursor, and Q_UNUSED.

◆ updateState()

◆ zwp_text_input_v3_commit_string()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_commit_string ( const QString & text)
overrideprotected

Definition at line 87 of file qwaylandtextinputv3.cpp.

References QGuiApplication::focusObject(), Q_FUNC_INFO, qCDebug, and text.

+ Here is the call graph for this function:

◆ zwp_text_input_v3_delete_surrounding_text()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_delete_surrounding_text ( uint32_t before_length,
uint32_t after_length )
overrideprotected

Definition at line 97 of file qwaylandtextinputv3.cpp.

References QGuiApplication::focusObject(), QWaylandInputMethodEventBuilder::indexFromWayland(), Q_FUNC_INFO, and qCDebug.

+ Here is the call graph for this function:

◆ zwp_text_input_v3_done()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_done ( uint32_t serial)
overrideprotected

◆ zwp_text_input_v3_enter()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_enter ( struct ::wl_surface * surface)
overrideprotected

Definition at line 43 of file qwaylandtextinputv3.cpp.

References QString::clear(), Q_FUNC_INFO, qCDebug, QtWaylandClient::QWaylandTextInputInterface::update_state_enter, and updateState().

+ Here is the call graph for this function:

◆ zwp_text_input_v3_leave()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave ( struct ::wl_surface * surface)
overrideprotected

Definition at line 58 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, qCDebug, and qCWarning.

◆ zwp_text_input_v3_preedit_string()

void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_preedit_string ( const QString & text,
int32_t cursor_begin,
int32_t cursor_end )
overrideprotected

Definition at line 75 of file qwaylandtextinputv3.cpp.

References QGuiApplication::focusObject(), Q_FUNC_INFO, qCDebug, and text.

+ Here is the call graph for this function:

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