void InputMethodContextEfl::onIMFInputPanelStateChanged(void* data, Ecore_IMF_Context*, int state)
{
InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
- if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
- return;
if (state == ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,ime,closed", 0);
void InputMethodContextEfl::onIMFInputPanelGeometryChanged(void* data, Ecore_IMF_Context*, int value)
{
InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
- if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
- return;
Eina_Rectangle rect;
ecore_imf_context_input_panel_geometry_get(inputMethodContext->m_context.get(), &rect.x, &rect.y, &rect.w, &rect.h);
void InputMethodContextEfl::onIMFCandidatePanelStateChanged(void* data, Ecore_IMF_Context*, int state)
{
InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
- if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
- return;
if (state == ECORE_IMF_CANDIDATE_PANEL_SHOW)
evas_object_smart_callback_call(inputMethodContext->m_viewImpl->view(), "editorclient,candidate,opened", 0);
void InputMethodContextEfl::onIMFCandidatePanelGeometryChanged(void* data, Ecore_IMF_Context*, int)
{
InputMethodContextEfl* inputMethodContext = static_cast<InputMethodContextEfl*>(data);
- if (!inputMethodContext->m_viewImpl->page()->focusedFrame() || !inputMethodContext->m_focused)
- return;
Eina_Rectangle rect;
ecore_imf_context_candidate_panel_geometry_get(inputMethodContext->m_context.get(), &rect.x, &rect.y, &rect.w, &rect.h);