KWin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
KWin::TextInputV3InterfacePrivate Class Reference

#include <textinput_v3_p.h>

Inheritance diagram for KWin::TextInputV3InterfacePrivate:

Public Member Functions

 TextInputV3InterfacePrivate (SeatInterface *seat, TextInputV3Interface *_q)
 
void sendEnter (SurfaceInterface *surface)
 
void sendLeave (SurfaceInterface *surface)
 
void sendPreEdit (const QString &text, const quint32 cursorBegin, const quint32 cursorEnd)
 
void commitString (const QString &text)
 
void deleteSurroundingText (quint32 beforeLength, quint32 afterLength)
 
void done ()
 
void updateEnabled ()
 
QList< TextInputV3InterfacePrivate::Resource * > textInputsForClient (ClientConnection *client) const
 
QList< TextInputV3InterfacePrivate::Resource * > enabledTextInputsForClient (ClientConnection *client) const
 
void defaultPending ()
 
void defaultPendingPreedit ()
 

Static Public Member Functions

static TextInputV3InterfacePrivateget (TextInputV3Interface *inputInterface)
 

Public Attributes

QRect cursorRectangle
 
TextInputContentHints contentHints = TextInputContentHint::None
 
TextInputContentPurpose contentPurpose = TextInputContentPurpose::Normal
 
SeatInterfaceseat = nullptr
 
QPointer< SurfaceInterfacesurface
 
QString surroundingText
 
qint32 surroundingTextCursorPosition = 0
 
qint32 surroundingTextSelectionAnchor = 0
 
TextInputChangeCause surroundingTextChangeCause = TextInputChangeCause::InputMethod
 
QString preeditText
 
quint32 preeditCursorBegin = 0
 
quint32 preeditCursorEnd = 0
 
struct { 
 
   QRect   cursorRectangle 
 
   TextInputChangeCause   surroundingTextChangeCause = TextInputChangeCause::InputMethod 
 
   TextInputContentHints   contentHints = TextInputContentHint::None 
 
   TextInputContentPurpose   contentPurpose = TextInputContentPurpose::Normal 
 
   bool   enabled = false 
 
   QString   surroundingText 
 
   qint32   surroundingTextCursorPosition = 0 
 
   qint32   surroundingTextSelectionAnchor = 0 
 
   QString   preeditText 
 
   quint32   preeditCursorBegin = 0 
 
   quint32   preeditCursorEnd = 0 
 
pending 
 
QHash< Resource *, quint32 > serialHash
 
QHash< Resource *, bool > enabledHash
 
TextInputV3Interfaceq
 
bool isEnabled = false
 

Protected Member Functions

void zwp_text_input_v3_bind_resource (Resource *resource) override
 
void zwp_text_input_v3_destroy_resource (Resource *resource) override
 
void zwp_text_input_v3_destroy (Resource *resource) override
 
void zwp_text_input_v3_enable (Resource *resource) override
 
void zwp_text_input_v3_disable (Resource *resource) override
 
void zwp_text_input_v3_set_surrounding_text (Resource *resource, const QString &text, int32_t cursor, int32_t anchor) override
 
void zwp_text_input_v3_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override
 
void zwp_text_input_v3_set_text_change_cause (Resource *resource, uint32_t cause) override
 
void zwp_text_input_v3_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override
 
void zwp_text_input_v3_commit (Resource *resource) override
 

Detailed Description

Definition at line 32 of file textinput_v3_p.h.

Constructor & Destructor Documentation

◆ TextInputV3InterfacePrivate()

KWin::TextInputV3InterfacePrivate::TextInputV3InterfacePrivate ( SeatInterface * seat,
TextInputV3Interface * _q )

Definition at line 142 of file textinput_v3.cpp.

Member Function Documentation

◆ commitString()

void KWin::TextInputV3InterfacePrivate::commitString ( const QString & text)

Definition at line 208 of file textinput_v3.cpp.

◆ defaultPending()

void KWin::TextInputV3InterfacePrivate::defaultPending ( )

Definition at line 393 of file textinput_v3.cpp.

◆ defaultPendingPreedit()

void KWin::TextInputV3InterfacePrivate::defaultPendingPreedit ( )

Definition at line 406 of file textinput_v3.cpp.

◆ deleteSurroundingText()

void KWin::TextInputV3InterfacePrivate::deleteSurroundingText ( quint32 beforeLength,
quint32 afterLength )

Definition at line 219 of file textinput_v3.cpp.

◆ done()

void KWin::TextInputV3InterfacePrivate::done ( )

Definition at line 230 of file textinput_v3.cpp.

◆ enabledTextInputsForClient()

QList< TextInputV3InterfacePrivate::Resource * > KWin::TextInputV3InterfacePrivate::enabledTextInputsForClient ( ClientConnection * client) const

Definition at line 253 of file textinput_v3.cpp.

◆ get()

static TextInputV3InterfacePrivate * KWin::TextInputV3InterfacePrivate::get ( TextInputV3Interface * inputInterface)
inlinestatic

Definition at line 50 of file textinput_v3_p.h.

◆ sendEnter()

void KWin::TextInputV3InterfacePrivate::sendEnter ( SurfaceInterface * surface)

Definition at line 168 of file textinput_v3.cpp.

◆ sendLeave()

void KWin::TextInputV3InterfacePrivate::sendLeave ( SurfaceInterface * surface)

Definition at line 180 of file textinput_v3.cpp.

◆ sendPreEdit()

void KWin::TextInputV3InterfacePrivate::sendPreEdit ( const QString & text,
const quint32 cursorBegin,
const quint32 cursorEnd )

Definition at line 192 of file textinput_v3.cpp.

◆ textInputsForClient()

QList< TextInputV3InterfacePrivate::Resource * > KWin::TextInputV3InterfacePrivate::textInputsForClient ( ClientConnection * client) const

Definition at line 248 of file textinput_v3.cpp.

◆ updateEnabled()

void KWin::TextInputV3InterfacePrivate::updateEnabled ( )

Definition at line 265 of file textinput_v3.cpp.

◆ zwp_text_input_v3_bind_resource()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_bind_resource ( Resource * resource)
overrideprotected

Definition at line 148 of file textinput_v3.cpp.

◆ zwp_text_input_v3_commit()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_commit ( Resource * resource)
overrideprotected

Definition at line 336 of file textinput_v3.cpp.

◆ zwp_text_input_v3_destroy()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_destroy ( Resource * resource)
overrideprotected

Definition at line 163 of file textinput_v3.cpp.

◆ zwp_text_input_v3_destroy_resource()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 155 of file textinput_v3.cpp.

◆ zwp_text_input_v3_disable()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_disable ( Resource * resource)
overrideprotected

Definition at line 288 of file textinput_v3.cpp.

◆ zwp_text_input_v3_enable()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_enable ( Resource * resource)
overrideprotected

Definition at line 281 of file textinput_v3.cpp.

◆ zwp_text_input_v3_set_content_type()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_set_content_type ( Resource * resource,
uint32_t hint,
uint32_t purpose )
overrideprotected

Definition at line 308 of file textinput_v3.cpp.

◆ zwp_text_input_v3_set_cursor_rectangle()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_set_cursor_rectangle ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 318 of file textinput_v3.cpp.

◆ zwp_text_input_v3_set_surrounding_text()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_set_surrounding_text ( Resource * resource,
const QString & text,
int32_t cursor,
int32_t anchor )
overrideprotected

Definition at line 297 of file textinput_v3.cpp.

◆ zwp_text_input_v3_set_text_change_cause()

void KWin::TextInputV3InterfacePrivate::zwp_text_input_v3_set_text_change_cause ( Resource * resource,
uint32_t cause )
overrideprotected

Definition at line 327 of file textinput_v3.cpp.

Member Data Documentation

◆ contentHints

TextInputContentHints KWin::TextInputV3InterfacePrivate::contentHints = TextInputContentHint::None

Definition at line 56 of file textinput_v3_p.h.

◆ contentPurpose

TextInputContentPurpose KWin::TextInputV3InterfacePrivate::contentPurpose = TextInputContentPurpose::Normal

Definition at line 57 of file textinput_v3_p.h.

◆ cursorRectangle

QRect KWin::TextInputV3InterfacePrivate::cursorRectangle

Definition at line 55 of file textinput_v3_p.h.

◆ enabled

bool KWin::TextInputV3InterfacePrivate::enabled = false

Definition at line 77 of file textinput_v3_p.h.

◆ enabledHash

QHash<Resource *, bool> KWin::TextInputV3InterfacePrivate::enabledHash

Definition at line 87 of file textinput_v3_p.h.

◆ isEnabled

bool KWin::TextInputV3InterfacePrivate::isEnabled = false

Definition at line 93 of file textinput_v3_p.h.

◆ [struct]

struct { ... } KWin::TextInputV3InterfacePrivate::pending

◆ preeditCursorBegin

quint32 KWin::TextInputV3InterfacePrivate::preeditCursorBegin = 0

Definition at line 68 of file textinput_v3_p.h.

◆ preeditCursorEnd

quint32 KWin::TextInputV3InterfacePrivate::preeditCursorEnd = 0

Definition at line 69 of file textinput_v3_p.h.

◆ preeditText

QString KWin::TextInputV3InterfacePrivate::preeditText

Definition at line 67 of file textinput_v3_p.h.

◆ q

TextInputV3Interface* KWin::TextInputV3InterfacePrivate::q

Definition at line 92 of file textinput_v3_p.h.

◆ seat

SeatInterface* KWin::TextInputV3InterfacePrivate::seat = nullptr

Definition at line 59 of file textinput_v3_p.h.

◆ serialHash

QHash<Resource *, quint32> KWin::TextInputV3InterfacePrivate::serialHash

Definition at line 86 of file textinput_v3_p.h.

◆ surface

QPointer<SurfaceInterface> KWin::TextInputV3InterfacePrivate::surface

Definition at line 60 of file textinput_v3_p.h.

◆ surroundingText

QString KWin::TextInputV3InterfacePrivate::surroundingText

Definition at line 62 of file textinput_v3_p.h.

◆ surroundingTextChangeCause

TextInputChangeCause KWin::TextInputV3InterfacePrivate::surroundingTextChangeCause = TextInputChangeCause::InputMethod

Definition at line 65 of file textinput_v3_p.h.

◆ surroundingTextCursorPosition

qint32 KWin::TextInputV3InterfacePrivate::surroundingTextCursorPosition = 0

Definition at line 63 of file textinput_v3_p.h.

◆ surroundingTextSelectionAnchor

qint32 KWin::TextInputV3InterfacePrivate::surroundingTextSelectionAnchor = 0

Definition at line 64 of file textinput_v3_p.h.


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