forked from enlightenment/efl
Evas: Move smart_callbacks_descriptions to legacy
This commit is contained in:
parent
b88ca02fe9
commit
9a052a740d
|
@ -259,7 +259,7 @@ _efl_ui_box_eo_base_constructor(Eo *obj, Efl_Ui_Box_Data *pd)
|
|||
elm_interface_atspi_accessible_type_set(obj, ELM_ATSPI_TYPE_SKIPPED);
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
pd->orient = EFL_ORIENT_RIGHT;
|
||||
|
|
|
@ -1875,7 +1875,7 @@ _efl_ui_flip_eo_base_constructor(Eo *obj, Efl_Ui_Flip_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PAGE_TAB_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -879,7 +879,7 @@ _efl_ui_image_eo_base_constructor(Eo *obj, Efl_Ui_Image_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -36,7 +36,7 @@ _efl_ui_nstate_eo_base_constructor(Eo *obj, Efl_Ui_Nstate_Data *pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
//TODO: Add ATSPI call here
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -4088,7 +4088,7 @@ _efl_ui_text_eo_base_constructor(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
|
||||
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
|
||||
eo_event_callback_add(obj, EO_EVENT_CALLBACK_DEL, _cb_deleted, NULL);
|
||||
|
|
|
@ -4288,7 +4288,7 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
|
|||
|
||||
eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
|
||||
if (getenv("ELM_FIRST_FRAME"))
|
||||
evas_event_callback_add(ecore_evas_get(tmp_sd.ee), EVAS_CALLBACK_RENDER_POST,
|
||||
|
|
|
@ -428,7 +428,7 @@ _elm_combobox_eo_base_constructor(Eo *obj, Elm_Combobox_Data *sd)
|
|||
sd->first_filter = EINA_TRUE;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GLASS_PANE);
|
||||
|
||||
//hover-parent
|
||||
|
|
|
@ -1178,7 +1178,7 @@ _elm_ctxpopup_eo_base_constructor(Eo *obj, Elm_Ctxpopup_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_POPUP_MENU);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -2028,7 +2028,7 @@ _elm_fileselector_eo_base_constructor(Eo *obj, Elm_Fileselector_Data *sd)
|
|||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
sd->obj = obj;
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILE_CHOOSER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -280,7 +280,7 @@ _elm_fileselector_button_eo_base_constructor(Eo *obj, Elm_Fileselector_Button_Da
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -396,7 +396,7 @@ _elm_fileselector_entry_eo_base_constructor(Eo *obj, Elm_Fileselector_Entry_Data
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GROUPING);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -630,7 +630,7 @@ _elm_hoversel_eo_base_constructor(Eo *obj, Elm_Hoversel_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1715,7 +1715,7 @@ _elm_multibuttonentry_eo_base_constructor(Eo *obj, Elm_Multibuttonentry_Data *sd
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1597,7 +1597,7 @@ _elm_naviframe_eo_base_constructor(Eo *obj, Elm_Naviframe_Data *sd)
|
|||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
sd->obj = obj;
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PAGE_TAB_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -726,7 +726,7 @@ _elm_player_eo_base_constructor(Eo *obj, Elm_Player_Data *sd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1628,7 +1628,7 @@ _elm_popup_eo_base_constructor(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_NOTIFICATION);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -541,7 +541,7 @@ _elm_actionslider_eo_base_constructor(Eo *obj, Elm_Actionslider_Data *_pd EINA_U
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SLIDER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -447,7 +447,7 @@ _elm_box_eo_base_constructor(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
|
|||
elm_interface_atspi_accessible_type_set(obj, ELM_ATSPI_TYPE_SKIPPED);
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -229,7 +229,7 @@ _elm_bubble_eo_base_constructor(Eo *obj, Elm_Bubble_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -336,7 +336,7 @@ _elm_button_eo_base_constructor(Eo *obj, Elm_Button_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1594,7 +1594,7 @@ _elm_calendar_eo_base_constructor(Eo *obj, Elm_Calendar_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_CALENDAR);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -368,7 +368,7 @@ _elm_check_eo_base_constructor(Eo *obj, Elm_Check_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_CHECK_BOX);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -799,7 +799,7 @@ _elm_clock_eo_base_constructor(Eo *obj, Elm_Clock_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TEXT);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -2225,7 +2225,7 @@ _elm_colorselector_eo_base_constructor(Eo *obj, Elm_Colorselector_Data *_pd EINA
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_COLOR_CHOOSER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1000,7 +1000,7 @@ _elm_conformant_eo_base_constructor(Eo *obj, Elm_Conformant_Data *sd)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
Eo_Event event = {};
|
||||
|
|
|
@ -893,7 +893,7 @@ _elm_datetime_eo_base_constructor(Eo *obj, Elm_Datetime_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_DATE_EDITOR);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -464,7 +464,7 @@ _elm_dayselector_eo_base_constructor(Eo *obj, Elm_Dayselector_Data *_pd EINA_UNU
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1464,7 +1464,7 @@ _elm_diskselector_eo_base_constructor(Eo *obj, Elm_Diskselector_Data *_pd EINA_U
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -3955,7 +3955,7 @@ _elm_entry_eo_base_constructor(Eo *obj, Elm_Entry_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
|
||||
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
|
||||
eo_event_callback_add(obj, EO_EVENT_CALLBACK_DEL, _cb_deleted, NULL);
|
||||
|
|
|
@ -671,7 +671,7 @@ _elm_flipselector_eo_base_constructor(Eo *obj, Elm_Flipselector_Data *sd)
|
|||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
sd->obj = obj;
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -205,7 +205,7 @@ _elm_frame_eo_base_constructor(Eo *obj, Elm_Frame_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FRAME);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -4358,7 +4358,7 @@ _elm_gengrid_eo_base_constructor(Eo *obj, Elm_Gengrid_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TREE_TABLE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -5711,7 +5711,7 @@ _elm_genlist_eo_base_constructor(Eo *obj, Elm_Genlist_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -362,7 +362,7 @@ _elm_glview_version_constructor(Eo *obj, Elm_Glview_Data *sd,
|
|||
_elm_glview_constructor(obj, sd);
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
|
||||
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
|
||||
}
|
||||
|
|
|
@ -672,7 +672,7 @@ _elm_hover_eo_base_constructor(Eo *obj, Elm_Hover_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_POPUP_MENU);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -618,7 +618,7 @@ _elm_icon_eo_base_constructor(Eo *obj, Elm_Icon_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1260,7 +1260,7 @@ _elm_index_eo_base_constructor(Eo *obj, Elm_Index_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SCROLL_BAR);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -235,7 +235,7 @@ _elm_pan_eo_base_constructor(Eo *obj, Elm_Pan_Smart_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_PAN_CLASS));
|
||||
evas_obj_type_set(obj, MY_PAN_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
|
|
@ -415,7 +415,7 @@ _elm_label_eo_base_constructor(Eo *obj, Elm_Label_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LABEL);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1900,7 +1900,7 @@ _elm_layout_eo_base_constructor(Eo *obj, Elm_Layout_Smart_Data *sd)
|
|||
sd->obj = obj;
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -2554,7 +2554,7 @@ _elm_list_eo_base_constructor(Eo *obj, Elm_List_Data *sd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -4240,7 +4240,7 @@ _elm_map_eo_base_constructor(Eo *obj, Elm_Map_Data *sd)
|
|||
sd->obj = obj;
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE_MAP);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -793,7 +793,7 @@ _elm_menu_eo_base_constructor(Eo *obj, Elm_Menu_Data *sd)
|
|||
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
parent = eo_parent_get(obj);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_MENU);
|
||||
|
||||
|
|
|
@ -1175,7 +1175,7 @@ _elm_panel_eo_base_constructor(Eo *obj, Elm_Panel_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -332,7 +332,7 @@ _elm_panes_eo_base_constructor(Eo *obj, Elm_Panes_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SPLIT_PANE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -307,7 +307,7 @@ _elm_photo_eo_base_constructor(Eo *obj, Elm_Photo_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1515,7 +1515,7 @@ _elm_photocam_eo_base_constructor(Eo *obj, Elm_Photocam_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -145,7 +145,7 @@ _elm_plug_eo_base_constructor(Eo *obj, void *sd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -517,7 +517,7 @@ _elm_prefs_eo_base_constructor(Eo *obj, Elm_Prefs_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _elm_prefs_smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _elm_prefs_smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_REDUNDANT_OBJECT);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -360,7 +360,7 @@ _elm_progressbar_eo_base_constructor(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNU
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PROGRESS_BAR);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -277,7 +277,7 @@ _elm_radio_eo_base_constructor(Eo *obj, Elm_Radio_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_RADIO_BUTTON);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -952,7 +952,7 @@ _elm_scroller_eo_base_constructor(Eo *obj, Elm_Scroller_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SCROLL_PANE);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -707,7 +707,7 @@ _elm_segment_control_eo_base_constructor(Eo *obj, Elm_Segment_Control_Data *sd E
|
|||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1287,7 +1287,7 @@ _elm_slider_eo_base_constructor(Eo *obj, Elm_Slider_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SLIDER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -390,7 +390,7 @@ _elm_slideshow_eo_base_constructor(Eo *obj, Elm_Slideshow_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_DOCUMENT_PRESENTATION);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -1464,7 +1464,7 @@ _elm_spinner_eo_base_constructor(Eo *obj, Elm_Spinner_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SPIN_BUTTON);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -584,7 +584,7 @@ _elm_thumb_eo_base_constructor(Eo *obj, Elm_Thumb_Data *sd)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, "Elm_Thumb");
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
|
||||
|
||||
sd->obj = obj;
|
||||
|
|
|
@ -3095,7 +3095,7 @@ _elm_toolbar_eo_base_constructor(Eo *obj, Elm_Toolbar_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TOOL_BAR);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -295,7 +295,7 @@ _elm_video_eo_base_constructor(Eo *obj, Elm_Video_Data *_pd EINA_UNUSED)
|
|||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -97,7 +97,7 @@ _elm_web_eo_base_constructor(Eo *obj, Elm_Web_Data *sd)
|
|||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
sd->obj = obj;
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _elm_web_smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _elm_web_smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_HTML_CONTAINER);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -5822,7 +5822,7 @@ _elm_widget_eo_base_constructor(Eo *obj, Elm_Widget_Smart_Data *sd EINA_UNUSED)
|
|||
sd->on_create = EINA_TRUE;
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
parent = eo_parent_get(obj);
|
||||
elm_obj_widget_parent_set(obj, parent);
|
||||
sd->on_create = EINA_FALSE;
|
||||
|
|
|
@ -3576,13 +3576,6 @@ EAPI Eina_Bool evas_smart_class_inherit_full(Evas_Smart_
|
|||
*/
|
||||
EAPI int evas_smart_usage_get(const Evas_Smart *s);
|
||||
|
||||
/**
|
||||
* @brief Get the @ref Evas_Smart from which @c obj smart object was created.
|
||||
*
|
||||
* @return the @ref Evas_Smart handle or @c null, on errors.
|
||||
*/
|
||||
EAPI Evas_Smart *evas_object_smart_smart_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* @def evas_smart_class_inherit
|
||||
* Easy to use version of evas_smart_class_inherit_full().
|
||||
|
|
|
@ -5086,6 +5086,95 @@ EAPI Eina_Bool evas_object_smart_type_check(const Evas_Object *obj, const char *
|
|||
*/
|
||||
EAPI Eina_Bool evas_object_smart_type_check_ptr(const Evas_Object *obj, const char *type) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(2);
|
||||
|
||||
/**
|
||||
* @brief Set an smart object instance's smart callbacks descriptions.
|
||||
*
|
||||
* These descriptions are hints to be used by introspection and are not
|
||||
* enforced in any way.
|
||||
*
|
||||
* It will not be checked if instance callbacks descriptions have the same name
|
||||
* as respective possibly registered in the smart object class. Both are kept
|
||||
* in different arrays and users of
|
||||
* evas_object_smart_callbacks_descriptions_get() should handle this case as
|
||||
* they wish.
|
||||
*
|
||||
* @note Because @c descriptions must be @c null terminated, and because a
|
||||
* @c null name makes little sense, too, Evas_Smart_Cb_Description.name must
|
||||
* not be @c null.
|
||||
*
|
||||
* @note While instance callbacks descriptions are possible, they are not
|
||||
* recommended. Use class callbacks descriptions instead as they make you smart
|
||||
* object user's life simpler and will use less memory, as descriptions and
|
||||
* arrays will be shared among all instances.
|
||||
*
|
||||
* @param[in] descriptions @c null terminated array with
|
||||
* @ref Evas_Smart_Cb_Description descriptions. Array elements won't be
|
||||
* modified at run time, but references to them and their contents will be
|
||||
* made, so this array should be kept alive during the whole object's lifetime.
|
||||
*
|
||||
* @return @c true on success, @c false on failure.
|
||||
*
|
||||
* @ingroup Evas_Object_Smart
|
||||
*/
|
||||
EAPI Eina_Bool evas_object_smart_callbacks_descriptions_set(Evas_Object *obj, const Evas_Smart_Cb_Description *descriptions);
|
||||
|
||||
/**
|
||||
* @brief Retrieve an smart object's know smart callback descriptions (both
|
||||
* instance and class ones).
|
||||
*
|
||||
* This call searches for registered callback descriptions for both instance
|
||||
* and class of the given smart object. These arrays will be sorted by
|
||||
* Evas_Smart_Cb_Description.name and also @c null terminated, so both
|
||||
* class_count and instance_count can be ignored, if the caller wishes so. The
|
||||
* terminator @c null is not counted in these values.
|
||||
*
|
||||
* @note If just class descriptions are of interest, try
|
||||
* evas_smart_callbacks_descriptions_get() instead.
|
||||
*
|
||||
* @note Use @c null pointers on the descriptions/counters you're not
|
||||
* interested in: they'll be ignored by the function.
|
||||
*
|
||||
* @ref evas_smart_callbacks_descriptions_get().
|
||||
*
|
||||
* @param[out] class_descriptions Where to store class callbacks descriptions
|
||||
* array, if any is known. If no descriptions are known, @c null is returned.
|
||||
* @param[out] class_count Returns how many class callbacks descriptions are
|
||||
* known.
|
||||
* @param[out] instance_descriptions Where to store instance callbacks
|
||||
* descriptions array, if any is known. If no descriptions are known, @c null
|
||||
* is returned.
|
||||
* @param[out] instance_count Returns how many instance callbacks descriptions
|
||||
* are known.
|
||||
*
|
||||
* @ingroup Evas_Object_Smart
|
||||
*/
|
||||
EAPI void evas_object_smart_callbacks_descriptions_get(const Evas_Object *obj, const Evas_Smart_Cb_Description ***class_descriptions, unsigned int *class_count, const Evas_Smart_Cb_Description ***instance_descriptions, unsigned int *instance_count);
|
||||
|
||||
/**
|
||||
* @brief Find callback description for callback called name or @c null if not
|
||||
* found.
|
||||
*
|
||||
* If parameter is @c null, no search will be done on instance descriptions.
|
||||
*
|
||||
* @param[in] name name of desired callback, must not be @c null. The search
|
||||
* have a special case for name being the same pointer as registered with
|
||||
* Evas_Smart_Cb_Description, one can use it to avoid excessive use of
|
||||
* strcmp().
|
||||
* @param[out] class_description pointer to return class description or @c null
|
||||
* if not found. If parameter is @c null, no search will be done on class
|
||||
* descriptions.
|
||||
* @param[out] instance_description pointer to return instance description.
|
||||
*
|
||||
* @ingroup Evas_Object_Smart
|
||||
*/
|
||||
EAPI void evas_object_smart_callback_description_find(const Evas_Object *obj, const char *name, const Evas_Smart_Cb_Description **class_description, const Evas_Smart_Cb_Description **instance_description) EINA_ARG_NONNULL(2);
|
||||
|
||||
/**
|
||||
* @brief Get the @ref Evas_Smart from which @c obj smart object was created.
|
||||
*
|
||||
* @return the @ref Evas_Smart handle or @c null, on errors.
|
||||
*/
|
||||
EAPI Evas_Smart *evas_object_smart_smart_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* This gets the internal counter that counts the number of smart calculations
|
||||
|
|
|
@ -465,7 +465,7 @@ EOLIAN static Eo *
|
|||
_evas_box_eo_base_constructor(Eo *obj, Evas_Object_Box_Data *class_data EINA_UNUSED)
|
||||
{
|
||||
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||
evas_obj_smart_callbacks_descriptions_set(obj, _signals);
|
||||
evas_object_smart_callbacks_descriptions_set(obj, _signals);
|
||||
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -838,9 +838,10 @@ evas_object_smart_callback_call(Evas_Object *eo_obj, const char *event, void *ev
|
|||
eo_event_callback_call(eo_obj, eo_desc, event_info);
|
||||
}
|
||||
|
||||
EOLIAN static Eina_Bool
|
||||
_evas_object_smart_callbacks_descriptions_set(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *o, const Evas_Smart_Cb_Description *descriptions)
|
||||
EAPI Eina_Bool
|
||||
evas_object_smart_callbacks_descriptions_set(Eo *eo_obj, const Evas_Smart_Cb_Description *descriptions)
|
||||
{
|
||||
EVAS_OBJECT_SMART_GET_OR_RETURN(eo_obj, EINA_FALSE);
|
||||
const Evas_Smart_Cb_Description *d;
|
||||
unsigned int i, count = 0;
|
||||
|
||||
|
@ -864,9 +865,10 @@ _evas_object_smart_callbacks_descriptions_set(Eo *eo_obj EINA_UNUSED, Evas_Smart
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_evas_object_smart_callbacks_descriptions_get(const Eo *eo_obj, Evas_Smart_Data *o, const Evas_Smart_Cb_Description ***class_descriptions, unsigned int *class_count, const Evas_Smart_Cb_Description ***instance_descriptions, unsigned int *instance_count)
|
||||
EAPI void
|
||||
evas_object_smart_callbacks_descriptions_get(const Eo *eo_obj, const Evas_Smart_Cb_Description ***class_descriptions, unsigned int *class_count, const Evas_Smart_Cb_Description ***instance_descriptions, unsigned int *instance_count)
|
||||
{
|
||||
EVAS_OBJECT_SMART_GET_OR_RETURN(eo_obj);
|
||||
if (class_descriptions) *class_descriptions = NULL;
|
||||
if (class_count) *class_count = 0;
|
||||
|
||||
|
@ -882,9 +884,10 @@ _evas_object_smart_callbacks_descriptions_get(const Eo *eo_obj, Evas_Smart_Data
|
|||
*instance_count = o->callbacks_descriptions.size;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_evas_object_smart_callback_description_find(const Eo *eo_obj, Evas_Smart_Data *o, const char *name, const Evas_Smart_Cb_Description **class_description, const Evas_Smart_Cb_Description **instance_description)
|
||||
EAPI void
|
||||
evas_object_smart_callback_description_find(const Eo *eo_obj, const char *name, const Evas_Smart_Cb_Description **class_description, const Evas_Smart_Cb_Description **instance_description)
|
||||
{
|
||||
EVAS_OBJECT_SMART_GET_OR_RETURN(eo_obj);
|
||||
|
||||
if (!name)
|
||||
{
|
||||
|
@ -1268,7 +1271,7 @@ evas_object_smart_cleanup(Evas_Object *eo_obj)
|
|||
}
|
||||
|
||||
evas_smart_cb_descriptions_resize(&o->callbacks_descriptions, 0);
|
||||
evas_obj_smart_data_set(eo_obj, NULL);
|
||||
evas_object_smart_data_set(eo_obj, NULL);
|
||||
}
|
||||
|
||||
obj->smart.parent = NULL;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
/* XXX: Putting the next two as externs because this interface will hopefully
|
||||
be removed for efl 2.0, so no need to bother. */
|
||||
struct @extern Evas.Smart.Cb_Description;
|
||||
|
||||
class Evas.Object.Smart (Evas.Object)
|
||||
{
|
||||
legacy_prefix: evas_object_smart;
|
||||
|
@ -112,68 +108,6 @@ class Evas.Object.Smart (Evas.Object)
|
|||
set { legacy: null; }
|
||||
values { hide: bool; }
|
||||
}
|
||||
callbacks_descriptions_set {
|
||||
[[Set an smart object instance's smart callbacks descriptions.
|
||||
|
||||
These descriptions are hints to be used by introspection and are
|
||||
not enforced in any way.
|
||||
|
||||
It will not be checked if instance callbacks descriptions have the
|
||||
same name as respective possibly registered in the smart object
|
||||
class. Both are kept in different arrays and users of
|
||||
evas_object_smart_callbacks_descriptions_get() should handle this
|
||||
case as they wish.
|
||||
|
||||
Note: Becase $descriptions must be $null terminated, and
|
||||
because a $null name makes little sense, too,
|
||||
Evas_Smart_Cb_Description.name must not be $null.
|
||||
|
||||
Note: While instance callbacks descriptions are possible, they are
|
||||
not recommended. Use class callbacks descriptions
|
||||
instead as they make you smart object user's life simpler and
|
||||
will use less memory, as descriptions and arrays will be
|
||||
shared among all instances.]]
|
||||
|
||||
return: bool; [[$true on success, $false on failure.]]
|
||||
params {
|
||||
@in descriptions: const(Evas.Smart.Cb_Description)*; [[$null terminated array with
|
||||
@Evas.Smart.Cb_Description descriptions. Array elements won't be
|
||||
modified at run time, but references to them and their contents
|
||||
will be made, so this array should be kept alive during the whole
|
||||
object's lifetime.]]
|
||||
}
|
||||
}
|
||||
callbacks_descriptions_get @const {
|
||||
[[Retrieve an smart object's know smart callback descriptions (both
|
||||
instance and class ones).
|
||||
|
||||
This call searches for registered callback descriptions for both
|
||||
instance and class of the given smart object. These arrays will be
|
||||
sorted by Evas_Smart_Cb_Description.name and also $null
|
||||
terminated, so both class_count and instance_count can be
|
||||
ignored, if the caller wishes so. The terminator $null is not
|
||||
counted in these values.
|
||||
|
||||
Note: If just class descriptions are of interest, try
|
||||
evas_smart_callbacks_descriptions_get() instead.
|
||||
|
||||
Note: Use $null pointers on the descriptions/counters you're not
|
||||
interested in: they'll be ignored by the function.
|
||||
|
||||
\@ref evas_smart_callbacks_descriptions_get().]]
|
||||
params {
|
||||
@out class_descriptions: const(Evas.Smart.Cb_Description)**; [[Where to store class callbacks
|
||||
descriptions array, if any is known. If no descriptions are
|
||||
known, $null is returned.]]
|
||||
@out class_count: uint; [[Returns how many class callbacks descriptions
|
||||
are known.]]
|
||||
@out instance_descriptions: const(Evas.Smart.Cb_Description)**; [[Where to store instance callbacks
|
||||
descriptions array, if any is known. If no descriptions are
|
||||
known, $null is returned.]]
|
||||
@out instance_count: uint; [[Returns how many instance callbacks
|
||||
descriptions are known.]]
|
||||
}
|
||||
}
|
||||
iterator_new @const {
|
||||
[[Retrieves an iterator of the member objects of a given Evas smart object.
|
||||
|
||||
|
@ -183,23 +117,6 @@ class Evas.Object.Smart (Evas.Object)
|
|||
return: free(own(iterator<Evas.Object>), eina_iterator_free)
|
||||
@warn_unused; [[Returns the iterator of the member objects of $obj.]]
|
||||
}
|
||||
callback_description_find @const {
|
||||
[[Find callback description for callback called name
|
||||
or $null if not found.
|
||||
|
||||
If parameter is $null, no search
|
||||
will be done on instance descriptions.]]
|
||||
params {
|
||||
@in name: string @nonull; [[name of desired callback, must not be $null. The
|
||||
search have a special case for name being the same
|
||||
pointer as registered with Evas_Smart_Cb_Description, one
|
||||
can use it to avoid excessive use of strcmp().]]
|
||||
@out class_description: const(Evas.Smart.Cb_Description)*; [[pointer to return class description or
|
||||
$null if not found. If parameter is $null, no search will
|
||||
be done on class descriptions.]]
|
||||
@out instance_description: const(Evas.Smart.Cb_Description)*; [[pointer to return instance description.]]
|
||||
}
|
||||
}
|
||||
hide {
|
||||
[[No description supplied by the EAPI.]]
|
||||
legacy: null;
|
||||
|
|
Loading…
Reference in New Issue