Fcitx
Public Member Functions | List of all members
fcitx::InputContextProperty Class Reference

This is a class that designed to store state that is specific to certain input context. More...

#include <fcitx/inputcontextproperty.h>

Public Member Functions

virtual void copyTo (InputContextProperty *)
 copy state to another property. More...
 
virtual bool needCopy () const
 Quick check if there's need to copy over the state.
 

Detailed Description

This is a class that designed to store state that is specific to certain input context.

The state may be copied to other input context, depending on the value GlobalConfig::shareInputState. Also in reality, you don't need to copy everything. For example, sub input mode can be a good candidate to copy over the value, like Japanese input method is under hiragana mode or katakana mode. The current input buffer usually need not to be shared between different input context. In Fcitx 5, there can be more than one input context has active focus (Rare for one-seat setup, but it is possible), so it is important to consider that and not to use a global state in the input method engine.

Definition at line 37 of file inputcontextproperty.h.


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