This only affects the events (and the data type has an alias).
Ref T5363
{
elm_layout_signal_emit(obj, "elm,action,focus", "elm");
evas_object_focus_set(wd->resize_obj, EINA_TRUE);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_TRUE);
}
{
elm_layout_signal_emit(obj, "elm,action,unfocus", "elm");
evas_object_focus_set(wd->resize_obj, EINA_FALSE);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_FALSE);
}
if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand)
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_TRUE);
_return_key_enabled_check(obj);
if (top && top_is_win && sd->input_panel_enable)
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_FALSE);
efl_event_callback_add
(en, ELM_ENTRY_EVENT_ANCHOR_CLICKED, _anchor_clicked, obj);
efl_event_callback_add
- (en, ELM_WIDGET_EVENT_FOCUSED, _on_text_focused, obj);
+ (en, EFL_UI_WIDGET_EVENT_FOCUSED, _on_text_focused, obj);
efl_event_callback_add
- (en, ELM_WIDGET_EVENT_UNFOCUSED, _on_text_unfocused, obj);
+ (en, EFL_UI_WIDGET_EVENT_UNFOCUSED, _on_text_unfocused, obj);
efl_event_callback_add
(en, ELM_ENTRY_EVENT_ACTIVATED, _on_text_activated, obj);
SIG_FWD(LONGPRESSED, EFL_UI_EVENT_LONGPRESSED)
SIG_FWD(CLICKED, EFL_UI_EVENT_CLICKED)
SIG_FWD(CLICKED_DOUBLE, EFL_UI_EVENT_CLICKED_DOUBLE)
-SIG_FWD(FOCUSED, ELM_WIDGET_EVENT_FOCUSED)
-SIG_FWD(UNFOCUSED, ELM_WIDGET_EVENT_UNFOCUSED)
+SIG_FWD(FOCUSED, EFL_UI_WIDGET_EVENT_FOCUSED)
+SIG_FWD(UNFOCUSED, EFL_UI_WIDGET_EVENT_UNFOCUSED)
SIG_FWD(SELECTION_PASTE, EFL_UI_EVENT_SELECTION_PASTE)
SIG_FWD(SELECTION_COPY, EFL_UI_EVENT_SELECTION_COPY)
SIG_FWD(SELECTION_CUT, EFL_UI_EVENT_SELECTION_CUT)
SIG_FWD(LONGPRESSED, EFL_UI_EVENT_LONGPRESSED);
SIG_FWD(CLICKED, EFL_UI_EVENT_CLICKED);
SIG_FWD(CLICKED_DOUBLE, EFL_UI_EVENT_CLICKED_DOUBLE);
- SIG_FWD(FOCUSED, ELM_WIDGET_EVENT_FOCUSED);
- SIG_FWD(UNFOCUSED, ELM_WIDGET_EVENT_UNFOCUSED);
+ SIG_FWD(FOCUSED, EFL_UI_WIDGET_EVENT_FOCUSED);
+ SIG_FWD(UNFOCUSED, EFL_UI_WIDGET_EVENT_UNFOCUSED);
SIG_FWD(SELECTION_PASTE, EFL_UI_EVENT_SELECTION_PASTE);
SIG_FWD(SELECTION_COPY, EFL_UI_EVENT_SELECTION_COPY);
SIG_FWD(SELECTION_CUT, EFL_UI_EVENT_SELECTION_CUT);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_event_callback_add(bt, EFL_UI_EVENT_CLICKED, _on_item_clicked, item);
- efl_event_callback_add(bt, ELM_WIDGET_EVENT_FOCUSED, _item_focused_cb, item);
- efl_event_callback_add(bt, ELM_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, item);
+ efl_event_callback_add(bt, EFL_UI_WIDGET_EVENT_FOCUSED, _item_focused_cb, item);
+ efl_event_callback_add(bt, EFL_UI_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, item);
sd->items = eina_list_append(sd->items, eo_item);
EFL_CALLBACKS_ARRAY_DEFINE(_multi_buttonentry_cb,
{ ELM_ENTRY_EVENT_CHANGED, _entry_changed_cb },
- { ELM_WIDGET_EVENT_FOCUSED, _entry_focus_in_cb },
- { ELM_WIDGET_EVENT_UNFOCUSED, _entry_focus_out_cb },
+ { EFL_UI_WIDGET_EVENT_FOCUSED, _entry_focus_in_cb },
+ { EFL_UI_WIDGET_EVENT_UNFOCUSED, _entry_focus_out_cb },
{ EFL_UI_EVENT_CLICKED, _entry_clicked_cb }
);
}
}
efl_event_callback_legacy_call
- (obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ (obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
}
else
{
elm_layout_signal_emit(VIEW(sd->selected_it), "elm,state,unfocused", "elm");
efl_event_callback_legacy_call
- (obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ (obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
}
end:
_item_select_cb, it);
evas_object_size_hint_align_set(VIEW(it), EVAS_HINT_FILL, EVAS_HINT_FILL);
efl_event_callback_add
- (VIEW(it), ELM_WIDGET_EVENT_FOCUSED, _item_focused_cb, it);
+ (VIEW(it), EFL_UI_WIDGET_EVENT_FOCUSED, _item_focused_cb, it);
efl_event_callback_add
- (VIEW(it), ELM_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, it);
+ (VIEW(it), EFL_UI_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, it);
evas_object_show(VIEW(it));
}
}
if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_TRUE);
_return_key_enabled_check(obj);
if (top && top_is_win && sd->input_panel_enable &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_FALSE);
(sd->reorder_it))
{
efl_event_callback_legacy_call
- (WIDGET(it), ELM_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder_it));
+ (WIDGET(it), EFL_UI_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder_it));
sd->reorder_it = NULL;
sd->move_effect_enabled = EINA_FALSE;
ecore_job_del(sd->calc_job);
efl_event_callback_legacy_call
(sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_STOP, EO_OBJ(sd->reorder.it1));
efl_event_callback_legacy_call
- (sd->obj, ELM_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder.it1));
+ (sd->obj, EFL_UI_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder.it1));
sd->reorder.running = EINA_FALSE;
}
_elm_widget_focus_highlight_start(sd->obj);
if (!sd->entry_visible) return;
efl_event_callback_del
- (sd->ent, ELM_WIDGET_EVENT_UNFOCUSED, _entry_unfocused_cb, obj);
+ (sd->ent, EFL_UI_WIDGET_EVENT_UNFOCUSED, _entry_unfocused_cb, obj);
_entry_hide(obj);
str = elm_object_text_get(sd->ent);
if (!str) return;
}
efl_event_callback_add
- (sd->ent, ELM_WIDGET_EVENT_UNFOCUSED, _entry_unfocused_cb, obj);
+ (sd->ent, EFL_UI_WIDGET_EVENT_UNFOCUSED, _entry_unfocused_cb, obj);
sd->entry_visible = EINA_TRUE;
elm_layout_signal_emit(obj, "elm,state,entry,active", "elm");
evas_object_show(sd->ent);
efl_event_callback_add
(priv->text_button, EFL_UI_EVENT_CLICKED, _text_button_clicked_cb, obj);
efl_event_callback_add
- (priv->text_button, ELM_WIDGET_EVENT_FOCUSED, _text_button_focused_cb, obj);
+ (priv->text_button, EFL_UI_WIDGET_EVENT_FOCUSED, _text_button_focused_cb, obj);
elm_layout_content_set(obj, "elm.swallow.text_button", priv->text_button);
elm_widget_sub_object_add(obj, priv->text_button);
}
efl_ui_widget_on_access_update(obj, is_access);
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_ACCESS_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_ACCESS_CHANGED, NULL);
return ret;
}
sd->on_translate = EINA_FALSE;
}
#endif
- efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_LANGUAGE_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_LANGUAGE_CHANGED, NULL);
}
EOLIAN static void
return EINA_FALSE;
focused = elm_widget_focus_get(obj);
- desc = focused ? ELM_WIDGET_EVENT_FOCUSED : ELM_WIDGET_EVENT_UNFOCUSED;
+ desc = focused ? EFL_UI_WIDGET_EVENT_FOCUSED : EFL_UI_WIDGET_EVENT_UNFOCUSED;
if (!sd->resize_obj)
evas_object_focus_set(obj, focused);
logical : bool; [[$true if this is registered as logical currently]]
}
+/* ATTENTION: Rename to Efl.Ui.Widget is imminent. */
abstract Elm.Widget (Efl.Canvas.Group, Efl.Access,
Efl.Access.Component, Efl.Ui.Focus.User, Efl.Part,
Efl.Ui.Focus.Object, Efl.Ui.Base, Efl.Ui.Cursor,
[[Elementary widget abstract class]]
legacy_prefix: elm_widget;
eo_prefix: efl_ui_widget;
- event_prefix: elm_widget;
- data: Elm_Widget_Smart_Data;
+ event_prefix: efl_ui_widget;
+ data: Efl_Ui_Widget_Data;
methods {
@property resize_object @protected {
[[This is the internal canvas object managed by a widget.
Eina_Bool legacy : 1; /**< Widget was created with a legacy API, not efl_add() */
} Elm_Widget_Smart_Data;
+typedef Elm_Widget_Smart_Data Efl_Ui_Widget_Data;
+
/**
* @}
*/
efl_event_callback_add
(obj, ELM_ENTRY_EVENT_ACTIVATED, _item_changed_cb, cb);
efl_event_callback_add
- (obj, ELM_WIDGET_EVENT_UNFOCUSED, _item_changed_cb, cb);
+ (obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, _item_changed_cb, cb);
if (spec.s.accept)
{
int ret;