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

#include <textinput_v1_p.h>

Inheritance diagram for KWin::TextInputV1InterfacePrivate:

Public Member Functions

 TextInputV1InterfacePrivate (SeatInterface *seat, TextInputV1Interface *_q)
 
void sendEnter (SurfaceInterface *surface)
 
void sendLeave (SurfaceInterface *surface)
 
void preEdit (const QString &text, const QString &commit)
 
void preEditStyling (quint32 index, uint32_t length, uint32_t style)
 
void commitString (const QString &text)
 
void deleteSurroundingText (qint32 index, quint32 length)
 
void setTextDirection (Qt::LayoutDirection direction)
 
void setPreEditCursor (qint32 index)
 
void setCursorPosition (qint32 index, qint32 anchor)
 
void keysymPressed (quint32 time, quint32 keysym, quint32 modifiers)
 
void keysymReleased (quint32 time, quint32 keysym, quint32 modifiers)
 
void sendInputPanelState ()
 
void sendLanguage ()
 
void sendModifiersMap ()
 
template<typename T >
void forActivatedResource (const T &callback)
 
QList< Resource * > textInputsForClient (ClientConnection *client) const
 

Static Public Member Functions

static TextInputV1InterfacePrivateget (TextInputV1Interface *inputInterface)
 

Public Attributes

QString preferredLanguage
 
QRect cursorRectangle
 
TextInputContentHints contentHints = TextInputContentHint::None
 
TextInputContentPurpose contentPurpose = TextInputContentPurpose::Normal
 
QPointer< SeatInterfaceseat
 
QPointer< SurfaceInterfacesurface
 
QString surroundingText
 
qint32 surroundingTextCursorPosition = 0
 
qint32 surroundingTextSelectionAnchor = 0
 
bool inputPanelVisible = false
 
QRect overlappedSurfaceArea
 
QString language
 
QByteArray modifiersMap
 
TextInputV1Interfaceq
 
QHash< SurfaceInterface *, Resource * > activated
 
QHash< Resource *, quint32 > serialHash
 

Protected Member Functions

void zwp_text_input_v1_bind_resource (Resource *resource) override
 
void zwp_text_input_v1_destroy_resource (Resource *resource) override
 
void zwp_text_input_v1_activate (Resource *resource, struct wl_resource *seat, struct wl_resource *surface) override
 
void zwp_text_input_v1_deactivate (Resource *resource, wl_resource *seat) override
 
void zwp_text_input_v1_show_input_panel (Resource *resource) override
 
void zwp_text_input_v1_hide_input_panel (Resource *resource) override
 
void zwp_text_input_v1_reset (Resource *resource) override
 
void zwp_text_input_v1_set_surrounding_text (Resource *resource, const QString &text, uint32_t cursor, uint32_t anchor) override
 
void zwp_text_input_v1_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override
 
void zwp_text_input_v1_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override
 
void zwp_text_input_v1_set_preferred_language (Resource *resource, const QString &language) override
 
void zwp_text_input_v1_commit_state (Resource *resource, uint32_t serial) override
 
void zwp_text_input_v1_invoke_action (Resource *resource, uint32_t button, uint32_t index) override
 

Detailed Description

Definition at line 36 of file textinput_v1_p.h.

Constructor & Destructor Documentation

◆ TextInputV1InterfacePrivate()

KWin::TextInputV1InterfacePrivate::TextInputV1InterfacePrivate ( SeatInterface * seat,
TextInputV1Interface * _q )

Definition at line 271 of file textinput_v1.cpp.

Member Function Documentation

◆ commitString()

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

Definition at line 185 of file textinput_v1.cpp.

◆ deleteSurroundingText()

void KWin::TextInputV1InterfacePrivate::deleteSurroundingText ( qint32 index,
quint32 length )

Definition at line 206 of file textinput_v1.cpp.

◆ forActivatedResource()

template<typename T >
void KWin::TextInputV1InterfacePrivate::forActivatedResource ( const T & callback)
inline

Definition at line 57 of file textinput_v1_p.h.

◆ get()

static TextInputV1InterfacePrivate * KWin::TextInputV1InterfacePrivate::get ( TextInputV1Interface * inputInterface)
inlinestatic

Definition at line 65 of file textinput_v1_p.h.

◆ keysymPressed()

void KWin::TextInputV1InterfacePrivate::keysymPressed ( quint32 time,
quint32 keysym,
quint32 modifiers )

Definition at line 192 of file textinput_v1.cpp.

◆ keysymReleased()

void KWin::TextInputV1InterfacePrivate::keysymReleased ( quint32 time,
quint32 keysym,
quint32 modifiers )

Definition at line 199 of file textinput_v1.cpp.

◆ preEdit()

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

Definition at line 171 of file textinput_v1.cpp.

◆ preEditStyling()

void KWin::TextInputV1InterfacePrivate::preEditStyling ( quint32 index,
uint32_t length,
uint32_t style )

Definition at line 178 of file textinput_v1.cpp.

◆ sendEnter()

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

Definition at line 147 of file textinput_v1.cpp.

◆ sendInputPanelState()

void KWin::TextInputV1InterfacePrivate::sendInputPanelState ( )

Definition at line 249 of file textinput_v1.cpp.

◆ sendLanguage()

void KWin::TextInputV1InterfacePrivate::sendLanguage ( )

Definition at line 257 of file textinput_v1.cpp.

◆ sendLeave()

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

Definition at line 159 of file textinput_v1.cpp.

◆ sendModifiersMap()

void KWin::TextInputV1InterfacePrivate::sendModifiersMap ( )

Definition at line 264 of file textinput_v1.cpp.

◆ setCursorPosition()

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

Definition at line 213 of file textinput_v1.cpp.

◆ setPreEditCursor()

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

Definition at line 242 of file textinput_v1.cpp.

◆ setTextDirection()

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

Definition at line 220 of file textinput_v1.cpp.

◆ textInputsForClient()

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

Definition at line 403 of file textinput_v1.cpp.

◆ zwp_text_input_v1_activate()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_activate ( Resource * resource,
struct wl_resource * seat,
struct wl_resource * surface )
overrideprotected

Definition at line 294 of file textinput_v1.cpp.

◆ zwp_text_input_v1_bind_resource()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_bind_resource ( Resource * resource)
overrideprotected

Definition at line 277 of file textinput_v1.cpp.

◆ zwp_text_input_v1_commit_state()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_commit_state ( Resource * resource,
uint32_t serial )
overrideprotected

Definition at line 346 of file textinput_v1.cpp.

◆ zwp_text_input_v1_deactivate()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_deactivate ( Resource * resource,
wl_resource * seat )
overrideprotected

Definition at line 320 of file textinput_v1.cpp.

◆ zwp_text_input_v1_destroy_resource()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 282 of file textinput_v1.cpp.

◆ zwp_text_input_v1_hide_input_panel()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_hide_input_panel ( Resource * resource)
overrideprotected

Definition at line 357 of file textinput_v1.cpp.

◆ zwp_text_input_v1_invoke_action()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_invoke_action ( Resource * resource,
uint32_t button,
uint32_t index )
overrideprotected

Definition at line 352 of file textinput_v1.cpp.

◆ zwp_text_input_v1_reset()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_reset ( Resource * resource)
overrideprotected

Definition at line 341 of file textinput_v1.cpp.

◆ zwp_text_input_v1_set_content_type()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_set_content_type ( Resource * resource,
uint32_t hint,
uint32_t purpose )
overrideprotected

Definition at line 370 of file textinput_v1.cpp.

◆ zwp_text_input_v1_set_cursor_rectangle()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_set_cursor_rectangle ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 381 of file textinput_v1.cpp.

◆ zwp_text_input_v1_set_preferred_language()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_set_preferred_language ( Resource * resource,
const QString & language )
overrideprotected

Definition at line 390 of file textinput_v1.cpp.

◆ zwp_text_input_v1_set_surrounding_text()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_set_surrounding_text ( Resource * resource,
const QString & text,
uint32_t cursor,
uint32_t anchor )
overrideprotected

Definition at line 362 of file textinput_v1.cpp.

◆ zwp_text_input_v1_show_input_panel()

void KWin::TextInputV1InterfacePrivate::zwp_text_input_v1_show_input_panel ( Resource * resource)
overrideprotected

Definition at line 398 of file textinput_v1.cpp.

Member Data Documentation

◆ activated

QHash<SurfaceInterface *, Resource *> KWin::TextInputV1InterfacePrivate::activated

Definition at line 85 of file textinput_v1_p.h.

◆ contentHints

TextInputContentHints KWin::TextInputV1InterfacePrivate::contentHints = TextInputContentHint::None

Definition at line 72 of file textinput_v1_p.h.

◆ contentPurpose

TextInputContentPurpose KWin::TextInputV1InterfacePrivate::contentPurpose = TextInputContentPurpose::Normal

Definition at line 73 of file textinput_v1_p.h.

◆ cursorRectangle

QRect KWin::TextInputV1InterfacePrivate::cursorRectangle

Definition at line 71 of file textinput_v1_p.h.

◆ inputPanelVisible

bool KWin::TextInputV1InterfacePrivate::inputPanelVisible = false

Definition at line 79 of file textinput_v1_p.h.

◆ language

QString KWin::TextInputV1InterfacePrivate::language

Definition at line 81 of file textinput_v1_p.h.

◆ modifiersMap

QByteArray KWin::TextInputV1InterfacePrivate::modifiersMap

Definition at line 82 of file textinput_v1_p.h.

◆ overlappedSurfaceArea

QRect KWin::TextInputV1InterfacePrivate::overlappedSurfaceArea

Definition at line 80 of file textinput_v1_p.h.

◆ preferredLanguage

QString KWin::TextInputV1InterfacePrivate::preferredLanguage

Definition at line 70 of file textinput_v1_p.h.

◆ q

TextInputV1Interface* KWin::TextInputV1InterfacePrivate::q

Definition at line 83 of file textinput_v1_p.h.

◆ seat

QPointer<SeatInterface> KWin::TextInputV1InterfacePrivate::seat

Definition at line 74 of file textinput_v1_p.h.

◆ serialHash

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

Definition at line 86 of file textinput_v1_p.h.

◆ surface

QPointer<SurfaceInterface> KWin::TextInputV1InterfacePrivate::surface

Definition at line 75 of file textinput_v1_p.h.

◆ surroundingText

QString KWin::TextInputV1InterfacePrivate::surroundingText

Definition at line 76 of file textinput_v1_p.h.

◆ surroundingTextCursorPosition

qint32 KWin::TextInputV1InterfacePrivate::surroundingTextCursorPosition = 0

Definition at line 77 of file textinput_v1_p.h.

◆ surroundingTextSelectionAnchor

qint32 KWin::TextInputV1InterfacePrivate::surroundingTextSelectionAnchor = 0

Definition at line 78 of file textinput_v1_p.h.


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