Logo Search packages:      
Sourcecode: fcitx-sunpinyin version File versions

void FcitxWindowHandler::updatePreedit ( const IPreeditString *  ppd ) [virtual]

handler called while preedit updated

Parameters:
ppdpreedit string
Returns:
void

Definition at line 33 of file handler.cpp.

{
    FcitxInstance* instance = owner->owner;
    FcitxInputState* input = FcitxInstanceGetInputState(instance);
    FcitxInputStateSetCursorPos(input, true);
    candidate_flag = true;

    const wstring& codeinput = this->owner->view->getPySegmentor()->getInputBuffer();
    WCSTOMBS(FcitxInputStateGetRawInputBuffer(input), codeinput.c_str(), MAX_USER_INPUT);
    FcitxInputStateSetRawInputBufferSize(input, strlen(FcitxInputStateGetRawInputBuffer(input)));
}

Generated by  Doxygen 1.6.0   Back to index