Skip to content

Commit

Permalink
get status of options and properties (#794)
Browse files Browse the repository at this point in the history
提供 librime-lua 取得 options, propreties 中的狀態
  • Loading branch information
shewer authored Jun 18, 2024
1 parent ebdfd55 commit a4f24fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rime/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class RIME_API Context {
bool get_option(const string& name) const;
void set_property(const string& name, const string& value);
string get_property(const string& name) const;
const map<string, bool>& options() const { return options_; }
const map<string, string>& properties() const { return properties_; }
// options and properties starting with '_' are local to schema;
// others are session scoped.
void ClearTransientOptions();
Expand Down

0 comments on commit a4f24fd

Please sign in to comment.