Fcitx
Public Member Functions | List of all members
fcitx::ActionableCandidateList Class Referenceabstract

Interface for trigger actions on candidates. More...

#include <fcitx/candidatelist.h>

Public Member Functions

virtual bool hasAction (const CandidateWord &candidate) const =0
 Check whether this candidate has action. More...
 
virtual std::vector< CandidateActioncandidateActions (const CandidateWord &candidate) const =0
 Return a list of actions.
 
virtual void triggerAction (const CandidateWord &candidate, int id)=0
 Trigger the action based on the index returned from candidateActions.
 

Detailed Description

Interface for trigger actions on candidates.

Since
5.1.10

Definition at line 209 of file candidatelist.h.

Member Function Documentation

◆ hasAction()

virtual bool fcitx::ActionableCandidateList::hasAction ( const CandidateWord candidate) const
pure virtual

Check whether this candidate has action.

This function should be fast and guarantee that candidateActions return a not empty vector.


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