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