|
librime 1.2
Rime Input Method Engine, the core library
|
#include <switches.h>
Classes | |
| struct | SwitchOption |
Public Types | |
| enum | SwitchType { kToggleOption , kRadioGroup } |
| enum | FindResult { kContinue , kFound } |
Public Member Functions | |
| Switches (Config *config) | |
| SwitchOption | FindOption (function< FindResult(SwitchOption option)> callback) |
| SwitchOption | OptionByName (const string &option_name) |
| SwitchOption | ByIndex (size_t switch_index) |
| StringSlice | GetStateLabel (const string &option_name, int state, bool abbreviated) |
Static Public Member Functions | |
| static SwitchOption | Cycle (const SwitchOption &option) |
| static SwitchOption | Reset (const SwitchOption &option) |
| static SwitchOption | FindRadioGroupOption (an< ConfigMap > the_switch, function< FindResult(SwitchOption option)> callback) |
| static StringSlice | GetStateLabel (an< ConfigMap > the_switch, size_t state_index, bool abbreviated) |
|
inlineexplicit |
| Switches::SwitchOption rime::Switches::ByIndex | ( | size_t | switch_index | ) |
|
static |
| Switches::SwitchOption rime::Switches::FindOption | ( | function< FindResult(SwitchOption option)> | callback | ) |
|
static |
|
static |
| StringSlice rime::Switches::GetStateLabel | ( | const string & | option_name, |
| int | state, | ||
| bool | abbreviated ) |
| Switches::SwitchOption rime::Switches::OptionByName | ( | const string & | option_name | ) |
|
static |