Logo Search packages:      
Sourcecode: ibus-sunpinyin version File versions  Download package

void SunPinyinLookupTable::decorate_candidate ( ibus::Text  text,
int  type 
) [private]

update text's attributes according to the type of candidate

Parameters:
text
type

Definition at line 128 of file sunpinyin_lookup_table.cpp.

Referenced by append_candidate().

{
    switch (type) {
    case ICandidateList::BEST_WORD:
        ibus_text_append_attribute (text, IBUS_ATTR_TYPE_FOREGROUND,
                                    0x003E6B8A, 0, -1);
        ibus_text_append_attribute (text, IBUS_ATTR_TYPE_UNDERLINE,
                                    IBUS_ATTR_UNDERLINE_SINGLE, 0, -1);
        break;
    case ICandidateList::USER_SELECTED_WORD:
        break;
    case ICandidateList::NORMAL_WORD:
        break;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index