MCPcopy Create free account
hub / github.com/EasyIME/PIME / showCandidates

Method showCandidates

PIMETextService/PIMETextService.cpp:316–330  ·  view source on GitHub ↗

show candidate list window

Source from the content-addressed store, hash-verified

314
315// show candidate list window
316void TextService::showCandidates(Ime::EditSession* session) {
317 // TODO: implement ITfCandidateListUIElement interface to support UI less mode
318 // Great reference: http://msdn.microsoft.com/en-us/library/windows/desktop/aa966970(v=vs.85).aspx
319
320 // NOTE: in Windows 8 store apps, candidate window should be owned by
321 // composition window, which can be returned by TextService::compositionWindow().
322 // Otherwise, the candidate window cannot be shown.
323 // Ime::CandidateWindow handles this internally. If you create your own
324 // candidate window, you need to call TextService::isImmersive() to check
325 // if we're in a Windows store app. If isImmersive() returns true,
326 // The candidate window created should be a child window of the composition window.
327 // Please see Ime::CandidateWindow::CandidateWindow() for an example.
328 createCandidateWindow(session);
329 showingCandidates_ = true;
330}
331
332// hide candidate list window
333void TextService::hideCandidates() {

Callers 1

updateCandidateListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected