KWin
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
KWin::TextInputV2InterfacePrivate Class Reference

#include <textinput_v2_p.h>

Inheritance diagram for KWin::TextInputV2InterfacePrivate:

Public Member Functions

 TextInputV2InterfacePrivate (SeatInterface *seat, TextInputV2Interface *_q)
 
void sendEnter (SurfaceInterface *surface, quint32 serial)
 
void sendLeave (quint32 serial, SurfaceInterface *surface)
 
void preEdit (const QString &text, const QString &commit)
 
void preEditStyling (uint32_t index, uint32_t length, uint32_t style)
 
void commitString (const QString &text)
 
void deleteSurroundingText (quint32 beforeLength, quint32 afterLength)
 
void setTextDirection (Qt::LayoutDirection direction)
 
void setPreEditCursor (qint32 index)
 
void setCursorPosition (qint32 index, qint32 anchor)
 
void keysymPressed (quint32 keysym, quint32 modifiers)
 
void keysymReleased (quint32 keysym, quint32 modifiers)
 
void sendInputPanelState ()
 
void sendLanguage ()
 
void sendModifiersMap ()
 
QList< Resource * > textInputsForClient (ClientConnection *client) const
 

Static Public Member Functions

static TextInputV2InterfacePrivateget (TextInputV2Interface *inputInterface)
 

Public Attributes

QString preferredLanguage
 
QRect cursorRectangle
 
TextInputContentHints contentHints = TextInputContentHint::None
 
TextInputContentPurpose contentPurpose = TextInputContentPurpose::Normal
 
SeatInterfaceseat = nullptr
 
QPointer< SurfaceInterfacesurface
 
QString surroundingText
 
qint32 surroundingTextCursorPosition = 0
 
qint32 surroundingTextSelectionAnchor = 0
 
bool inputPanelVisible = false
 
QRect overlappedSurfaceArea
 
QString language
 
QByteArray modifiersMap
 
TextInputV2Interfaceq
 
QSet< SurfaceInterface * > m_enabledSurfaces
 

Protected Member Functions

void zwp_text_input_v2_enable (Resource *resource, wl_resource *surface) override
 
void zwp_text_input_v2_disable (Resource *resource, wl_resource *surface) override
 
void zwp_text_input_v2_show_input_panel (Resource *resource) override
 
void zwp_text_input_v2_hide_input_panel (Resource *resource) override
 
void zwp_text_input_v2_set_surrounding_text (Resource *resource, const QString &text, int32_t cursor, int32_t anchor) override
 
void zwp_text_input_v2_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override
 
void zwp_text_input_v2_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override
 
void zwp_text_input_v2_set_preferred_language (Resource *resource, const QString &language) override
 
void zwp_text_input_v2_update_state (Resource *resource, uint32_t serial, uint32_t reason) override
 

Detailed Description

Definition at line 32 of file textinput_v2_p.h.

Constructor & Destructor Documentation

◆ TextInputV2InterfacePrivate()

KWin::TextInputV2InterfacePrivate::TextInputV2InterfacePrivate ( SeatInterface * seat,
TextInputV2Interface * _q )

Definition at line 331 of file textinput_v2.cpp.

Member Function Documentation

◆ commitString()

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

Definition at line 199 of file textinput_v2.cpp.

◆ deleteSurroundingText()

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

Definition at line 234 of file textinput_v2.cpp.

◆ get()

static TextInputV2InterfacePrivate * KWin::TextInputV2InterfacePrivate::get ( TextInputV2Interface * inputInterface)
inlinestatic

Definition at line 53 of file textinput_v2_p.h.

◆ keysymPressed()

void KWin::TextInputV2InterfacePrivate::keysymPressed ( quint32 keysym,
quint32 modifiers )

Definition at line 210 of file textinput_v2.cpp.

◆ keysymReleased()

void KWin::TextInputV2InterfacePrivate::keysymReleased ( quint32 keysym,
quint32 modifiers )

Definition at line 222 of file textinput_v2.cpp.

◆ preEdit()

void KWin::TextInputV2InterfacePrivate::preEdit ( const QString & text,
const QString & commit )

Definition at line 175 of file textinput_v2.cpp.

◆ preEditStyling()

void KWin::TextInputV2InterfacePrivate::preEditStyling ( uint32_t index,
uint32_t length,
uint32_t style )

Definition at line 187 of file textinput_v2.cpp.

◆ sendEnter()

void KWin::TextInputV2InterfacePrivate::sendEnter ( SurfaceInterface * surface,
quint32 serial )

Definition at line 151 of file textinput_v2.cpp.

◆ sendInputPanelState()

void KWin::TextInputV2InterfacePrivate::sendInputPanelState ( )

Definition at line 293 of file textinput_v2.cpp.

◆ sendLanguage()

void KWin::TextInputV2InterfacePrivate::sendLanguage ( )

Definition at line 309 of file textinput_v2.cpp.

◆ sendLeave()

void KWin::TextInputV2InterfacePrivate::sendLeave ( quint32 serial,
SurfaceInterface * surface )

Definition at line 163 of file textinput_v2.cpp.

◆ sendModifiersMap()

void KWin::TextInputV2InterfacePrivate::sendModifiersMap ( )

Definition at line 320 of file textinput_v2.cpp.

◆ setCursorPosition()

void KWin::TextInputV2InterfacePrivate::setCursorPosition ( qint32 index,
qint32 anchor )

Definition at line 245 of file textinput_v2.cpp.

◆ setPreEditCursor()

void KWin::TextInputV2InterfacePrivate::setPreEditCursor ( qint32 index)

Definition at line 282 of file textinput_v2.cpp.

◆ setTextDirection()

void KWin::TextInputV2InterfacePrivate::setTextDirection ( Qt::LayoutDirection direction)

Definition at line 256 of file textinput_v2.cpp.

◆ textInputsForClient()

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

Definition at line 413 of file textinput_v2.cpp.

◆ zwp_text_input_v2_disable()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_disable ( Resource * resource,
wl_resource * surface )
overrideprotected

Definition at line 351 of file textinput_v2.cpp.

◆ zwp_text_input_v2_enable()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_enable ( Resource * resource,
wl_resource * surface )
overrideprotected

Definition at line 337 of file textinput_v2.cpp.

◆ zwp_text_input_v2_hide_input_panel()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_hide_input_panel ( Resource * resource)
overrideprotected

Definition at line 367 of file textinput_v2.cpp.

◆ zwp_text_input_v2_set_content_type()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_set_content_type ( Resource * resource,
uint32_t hint,
uint32_t purpose )
overrideprotected

Definition at line 380 of file textinput_v2.cpp.

◆ zwp_text_input_v2_set_cursor_rectangle()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_set_cursor_rectangle ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 391 of file textinput_v2.cpp.

◆ zwp_text_input_v2_set_preferred_language()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_set_preferred_language ( Resource * resource,
const QString & language )
overrideprotected

Definition at line 400 of file textinput_v2.cpp.

◆ zwp_text_input_v2_set_surrounding_text()

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

Definition at line 372 of file textinput_v2.cpp.

◆ zwp_text_input_v2_show_input_panel()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_show_input_panel ( Resource * resource)
overrideprotected

Definition at line 408 of file textinput_v2.cpp.

◆ zwp_text_input_v2_update_state()

void KWin::TextInputV2InterfacePrivate::zwp_text_input_v2_update_state ( Resource * resource,
uint32_t serial,
uint32_t reason )
overrideprotected

Definition at line 362 of file textinput_v2.cpp.

Member Data Documentation

◆ contentHints

TextInputContentHints KWin::TextInputV2InterfacePrivate::contentHints = TextInputContentHint::None

Definition at line 60 of file textinput_v2_p.h.

◆ contentPurpose

TextInputContentPurpose KWin::TextInputV2InterfacePrivate::contentPurpose = TextInputContentPurpose::Normal

Definition at line 61 of file textinput_v2_p.h.

◆ cursorRectangle

QRect KWin::TextInputV2InterfacePrivate::cursorRectangle

Definition at line 59 of file textinput_v2_p.h.

◆ inputPanelVisible

bool KWin::TextInputV2InterfacePrivate::inputPanelVisible = false

Definition at line 67 of file textinput_v2_p.h.

◆ language

QString KWin::TextInputV2InterfacePrivate::language

Definition at line 69 of file textinput_v2_p.h.

◆ m_enabledSurfaces

QSet<SurfaceInterface *> KWin::TextInputV2InterfacePrivate::m_enabledSurfaces

Definition at line 72 of file textinput_v2_p.h.

◆ modifiersMap

QByteArray KWin::TextInputV2InterfacePrivate::modifiersMap

Definition at line 70 of file textinput_v2_p.h.

◆ overlappedSurfaceArea

QRect KWin::TextInputV2InterfacePrivate::overlappedSurfaceArea

Definition at line 68 of file textinput_v2_p.h.

◆ preferredLanguage

QString KWin::TextInputV2InterfacePrivate::preferredLanguage

Definition at line 58 of file textinput_v2_p.h.

◆ q

TextInputV2Interface* KWin::TextInputV2InterfacePrivate::q

Definition at line 71 of file textinput_v2_p.h.

◆ seat

SeatInterface* KWin::TextInputV2InterfacePrivate::seat = nullptr

Definition at line 62 of file textinput_v2_p.h.

◆ surface

QPointer<SurfaceInterface> KWin::TextInputV2InterfacePrivate::surface

Definition at line 63 of file textinput_v2_p.h.

◆ surroundingText

QString KWin::TextInputV2InterfacePrivate::surroundingText

Definition at line 64 of file textinput_v2_p.h.

◆ surroundingTextCursorPosition

qint32 KWin::TextInputV2InterfacePrivate::surroundingTextCursorPosition = 0

Definition at line 65 of file textinput_v2_p.h.

◆ surroundingTextSelectionAnchor

qint32 KWin::TextInputV2InterfacePrivate::surroundingTextSelectionAnchor = 0

Definition at line 66 of file textinput_v2_p.h.


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