|
Fcitx
|
Interface for tab-related actions on candidate list. More...
#include <fcitx/candidatelist.h>
Public Member Functions | |
| virtual std::span< const CandidateAction > | tabActions ()=0 |
| Return a list of tab actions. More... | |
| virtual void | triggerTabAction (int id)=0 |
| Trigger the tab action based on the index returned from tabActions. More... | |
Interface for tab-related actions on candidate list.
Definition at line 274 of file candidatelist.h.
|
pure virtual |
Return a list of tab actions.
From UI perspective, the returned vector is expected to be small (less than 10). The text should at most be 6 latin-letters or 2 Chinese characters.
The return value is only valid at the time the function is called. The caller should not keep reference.
The implementatino can choose lazily construct the return value upon calling the function.
|
pure virtual |
Trigger the tab action based on the index returned from tabActions.
| id | action index. |
1.8.13