1 #ifndef __IBUS_RIME_SETTINGS_H__ 2 #define __IBUS_RIME_SETTINGS_H__ 3 4 #include <ibus.h> 5 6 // colors 7 #define RIME_COLOR_LIGHT 0xd4d4d4 8 #define RIME_COLOR_DARK 0x606060 9 #define RIME_COLOR_BLACK 0x000000 10 11 enum PreeditStyle { 12 PREEDIT_STYLE_COMPOSITION, 13 PREEDIT_STYLE_PREVIEW, 14 }; 15 16 enum CursorType { 17 CURSOR_TYPE_INSERT, 18 CURSOR_TYPE_SELECT, 19 }; 20 21 struct ColorSchemeDefinition { 22 const char* color_scheme_id; 23 int text_color; 24 int back_color; 25 }; 26 27 struct IBusRimeSettings { 28 gboolean embed_preedit_text; 29 gint preedit_style; 30 gint cursor_type; 31 gint lookup_table_orientation; 32 struct ColorSchemeDefinition* color_scheme; 33 }; 34 35 extern struct IBusRimeSettings g_ibus_rime_settings; 36 37 void 38 ibus_rime_load_settings(); 39 40 #endif 41