Fcitx
Public Types | Public Member Functions | Protected Member Functions | List of all members
fcitx::SimpleTempMode< PropertyBaseType > Class Template Reference
Inheritance diagram for fcitx::SimpleTempMode< PropertyBaseType >:
Inheritance graph
[legend]
Collaboration diagram for fcitx::SimpleTempMode< PropertyBaseType >:
Collaboration graph
[legend]

Public Types

using PropertyType = SimpleTempModeState< PropertyBaseType >
 

Public Member Functions

PropertyTypeproperty (InputContext *inputContext) const
 
- Public Member Functions inherited from fcitx::TempMode
bool isRegistered () const
 Return whether this temp mode is registered with a manager.
 
void unregister ()
 Unregister this temp mode from its manager.
 
virtual bool triggerTempMode (const KeyEvent &keyEvent)=0
 Handle a potential trigger key event. More...
 
virtual bool keyEvent (const KeyEvent &keyEvent)=0
 Handle a key event while the temp mode is active. More...
 
virtual bool invokeAction (InvokeActionEvent &event)
 Handle an action invoked while the temp mode is active. More...
 
virtual std::string_view name () const =0
 Return the input context property name.
 

Protected Member Functions

bool isActive (InputContext *inputContext) const override
 Return whether this temp mode is currently active.
 
void reset (InputContext *inputContext) override
 Reset the temp mode state for an input context. More...
 
InputContextPropertycreateProperty (InputContext &inputContext) override
 Create the property object stored for each input context.
 
- Protected Member Functions inherited from fcitx::TempMode
InputContextPropertygenericProperty (InputContext *inputContext) const
 Return the registered temp mode state for an input context.
 

Detailed Description

template<typename PropertyBaseType>
class fcitx::SimpleTempMode< PropertyBaseType >

Definition at line 125 of file tempmode.h.

Member Function Documentation

◆ reset()

template<typename PropertyBaseType >
void fcitx::SimpleTempMode< PropertyBaseType >::reset ( InputContext inputContext)
inlineoverrideprotectedvirtual

Reset the temp mode state for an input context.

Parameters
inputContextinput context

Implements fcitx::TempMode.

Definition at line 141 of file tempmode.h.


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