return pd->v;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
EOLIAN static void
_efl_ui_calendar_item_efl_ui_focus_object_focus_set(Eo *obj, Efl_Ui_Calendar_Item_Data *pd, Eina_Bool focus)
{
return efl_parent_get(obj);
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_calendar_item.eo.c"
return pd->pos_man;
}
-EOLIAN static Efl_Ui_Focus_Manager*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Manager*
_efl_ui_collection_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj, Efl_Ui_Collection_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *root)
{
Eo *man = efl_add(EFL_UI_COLLECTION_FOCUS_MANAGER_CLASS, obj,
return man;
}
-EOLIAN static Eina_Bool
+EOLIAN EINA_UNUSED static Eina_Bool
_efl_ui_collection_efl_ui_widget_focus_state_apply(Eo *obj, Efl_Ui_Collection_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect EINA_UNUSED)
{
return efl_ui_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj);
return focused_element;
}
-EOLIAN static Efl_Ui_Focus_Object*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Object*
_efl_ui_collection_efl_ui_focus_manager_move(Eo *obj, Efl_Ui_Collection_Data *pd, Efl_Ui_Focus_Direction direction)
{
Eo *new_obj, *focus;
efl_gfx_entity_geometry_set(item, efl_ui_position_manager_entity_position_single_item(pd->pos_man, new_id));
}
-EOLIAN static Efl_Ui_Focus_Object*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Object*
_efl_ui_collection_focus_manager_efl_ui_focus_manager_request_move(Eo *obj, Efl_Ui_Collection_Focus_Manager_Data *pd, Efl_Ui_Focus_Direction direction, Efl_Ui_Focus_Object *child, Eina_Bool logical)
{
MY_DATA_GET(pd->collection, collection_pd);
}
-EOLIAN static void
+EOLIAN EINA_UNUSED static void
_efl_ui_collection_focus_manager_efl_ui_focus_manager_manager_focus_set(Eo *obj, Efl_Ui_Collection_Focus_Manager_Data *pd, Efl_Ui_Focus_Object *focus)
{
MY_DATA_GET(pd->collection, collection_pd);
flush_min_size(obj, pd);
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
EOLIAN static Efl_Ui_Focus_Manager *
_efl_ui_collection_view_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj, Efl_Ui_Collection_View_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *root)
{
return new_item;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_collection_view_focus_manager.eo.c"
#include "elm_priv.h"
#include "efl_ui_focus_composition_adapter.eo.h"
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
#define MY_CLASS EFL_UI_FOCUS_COMPOSITION_MIXIN
typedef struct {
return pd->manager;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
#include "efl_ui_focus_composition_adapter.eo.c"
#include <Elementary.h>
#include "elm_priv.h"
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
#define MY_CLASS EFL_UI_FOCUS_LAYER_MIXIN
typedef struct {
*enable_on_visible = pd->enable_on_visible;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_focus_layer.eo.c"
#include "efl_ui_focus_graph.h"
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
#define MY_CLASS EFL_UI_FOCUS_MANAGER_CALC_CLASS
#define FOCUS_DATA(obj) Efl_Ui_Focus_Manager_Calc_Data *pd = efl_data_scope_get(obj, MY_CLASS);
#define EFL_UI_FOCUS_MANAGER_CALC_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _efl_ui_focus_manager_calc_efl_object_dbg_info_get)
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_focus_manager_calc.eo.c"
#include "efl_ui_focus_composition_adapter.eo.h"
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
#define MY_CLASS EFL_UI_FOCUS_MANAGER_ROOT_FOCUS_CLASS
typedef struct {
Eina_Future *focus_transfer;
} Efl_Ui_Focus_Manager_Root_Focus_Data;
+
static Eina_Value
_unregister_rect(Eo *obj, void *data EINA_UNUSED, const Eina_Value v EINA_UNUSED)
{
return efl_finalize(efl_super(obj, MY_CLASS));
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_focus_manager_root_focus.eo.c"
efl_destructor(efl_super(obj, MY_CLASS));
}
-EOLIAN static Efl_Ui_Focus_Object*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Object*
_efl_ui_focus_manager_sub_efl_ui_focus_manager_move(Eo *obj, Efl_Ui_Focus_Manager_Sub_Data *pd, Efl_Ui_Focus_Direction direction)
{
Eo *target = efl_ui_focus_manager_move(efl_super(obj, MY_CLASS), direction);
Eina_Bool focus_geom_changed;
} Efl_Ui_Focus_Object_Data;
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
EOLIAN static void
_efl_ui_focus_object_focus_set(Eo *obj, Efl_Ui_Focus_Object_Data *pd, Eina_Bool focus)
{
EFL_OBJECT_OP_FUNC(efl_event_callback_array_priority_add, _efl_ui_focus_object_efl_object_event_callback_array_priority_add), \
EFL_OBJECT_OP_FUNC(efl_event_callback_call, _efl_ui_focus_object_efl_object_event_callback_call) \
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
#include "efl_ui_focus_object.eo.c"
} Efl_Ui_Focus_Parent_Provider_Standard_Data;
-EOLIAN static Efl_Ui_Focus_Object*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Object*
_efl_ui_focus_parent_provider_standard_efl_ui_focus_parent_provider_find_logical_parent(Eo *obj EINA_UNUSED, Efl_Ui_Focus_Parent_Provider_Standard_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *widget)
{
return elm_object_parent_widget_get(widget);
} Efl_Ui_Focus_Util_Data;
-static void
+EINA_UNUSED static void
_manager_changed(void *data, const Efl_Event *event EINA_UNUSED)
{
efl_ui_focus_util_focus(data);
}
-static Eina_Bool
+EINA_UNUSED static Eina_Bool
_can_take_focus(Efl_Ui_Focus_Manager *m, Efl_Ui_Focus_Object *user)
{
if (efl_isa(user, EFL_UI_FOCUS_MANAGER_INTERFACE))
}
EOLIAN static void
-_efl_ui_focus_util_focus(Efl_Ui_Focus_Object *user)
+_efl_ui_focus_util_focus(Efl_Ui_Focus_Object *user EINA_UNUSED)
{
//TIZEN_ONLY(20191021): disable focus manager
return;
}
EOLIAN static Efl_Ui_Focus_Manager*
-_efl_ui_focus_util_active_manager(Efl_Ui_Focus_Manager *manager)
+_efl_ui_focus_util_active_manager(Efl_Ui_Focus_Manager *manager EINA_UNUSED)
{
//TIZEN_ONLY(20191021): disable focus manager
return NULL;
}
EOLIAN static Efl_Ui_Focus_Direction
-_efl_ui_focus_util_direction_complement(Efl_Ui_Focus_Direction dir)
+_efl_ui_focus_util_direction_complement(Efl_Ui_Focus_Direction dir EINA_UNUSED)
{
//TIZEN_ONLY(20191021): disable focus manager
return EFL_UI_FOCUS_DIRECTION_LAST;
}
/* Direction */
- if (dir == ELM_FOCUS_PREVIOUS)
+ if (dir == EFL_UI_FOCUS_DIRECTION_PREVIOUS)
{
chain[0] = right;
chain[1] = left;
}
- else if (dir == ELM_FOCUS_NEXT)
+ else if (dir == EFL_UI_FOCUS_DIRECTION_NEXT)
{
chain[0] = left;
chain[1] = right;
efl_canvas_group_change(obj);
}
-EOLIAN static Eina_Bool
+EOLIAN EINA_UNUSED static Eina_Bool
_efl_ui_scroller_efl_ui_widget_focus_state_apply(Eo *obj, Efl_Ui_Scroller_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect EINA_UNUSED)
{
//undepended from logical or not we always reigster as full with ourself as redirect
return efl_ui_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj);
}
-EOLIAN static Efl_Ui_Focus_Manager*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Manager*
_efl_ui_scroller_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj, Efl_Ui_Scroller_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *root)
{
Efl_Ui_Focus_Manager *manager;
Evas_Coord c_x = 0, c_y = 0;
Evas_Coord f_x = 0, f_y = 0, f_w = 0, f_h = 0;
Evas_Coord l_x = 0, l_y = 0, l_w = 0, l_h = 0;
- Evas_Coord step_x = 0, step_y = 0;
ret = efl_ui_widget_focus_direction_get(cur, base, degree, direction, direction_item, weight);
}
-static int
+EINA_UNUSED static int
_tree_unfocusable_counter_get(Eo *widget)
{
ELM_WIDGET_DATA_GET_OR_RETURN(widget, pd, -1);
EAPI void
elm_widget_focus_mouse_up_handle(Eo *obj)
{
- Elm_Widget_Smart_Data *pd = efl_data_scope_get(obj, MY_CLASS);
-
if (!_is_focusable(obj)) return;
/* TIZEN_ONLY(20180607): Restore legacy focus
+ Elm_Widget_Smart_Data *pd = efl_data_scope_get(obj, MY_CLASS);
if (pd->focus.manager && !pd->focus.logical)
{
efl_ui_focus_util_focus(obj);
#endif
}
-static void
+EINA_UNUSED static void
_focus_event_changed(void *data EINA_UNUSED, const Efl_Event *event)
{
if (efl_ui_focus_object_focus_get(event->object))
return lookup;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+//
+
EOLIAN static Efl_Ui_Focus_Manager*
_efl_ui_widget_efl_ui_focus_object_focus_parent_get(const Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd EINA_UNUSED)
{
return NULL;
}
+//TIZEN_ONLY(20191205): fix build warnings of focus_manager functions
+#pragma GCC diagnostic pop
+//
+
//TIZEN_ONLY(20160726): add API elm_object_part_access_object_get
EOLIAN static Evas_Object*
_efl_ui_widget_part_access_object_get(const Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED, const char *part EINA_UNUSED)
ELM_WIDGET_DATA_GET_OR_RETURN(obj, sd);
+ /*****************************************************************************
+ * TIZEN_ONLY_FEATURE: Fix entry size/cursor/region calculation for Tizen UX *
+ *****************************************************************************
+ * Move this code to the below to update show region geometry properly.
evas_smart_objects_calculate(evas_object_evas_get(obj));
+ */
+ /*******
+ * END *
+ *******/
if (!forceshow && eina_rectangle_equal(&sr.rect, &sd->show_region.rect)) return;
sd->show_region = sr;
+
+ /*****************************************************************************
+ * TIZEN_ONLY_FEATURE: Fix entry size/cursor/region calculation for Tizen UX *
+ *****************************************************************************/
+ /* Block nested call for evas_smart_objects_calculate() and region showing works */
+ if (sd->on_show_region_set) return;
+
+ sd->on_show_region_set = EINA_TRUE;
+
+ evas_smart_objects_calculate(evas_object_evas_get(obj));
+
+ sd->on_show_region_set = EINA_FALSE;
+
+ /* show_region geometry could be changed during processing elm_widget_show_region_set().
+ evas_smart_objects_calculate() can trigger nested show_region_set calls */
+ sr = sd->show_region;
+ /*******
+ * END *
+ *******/
+
if (sd->on_show_region)
{
sd->on_show_region(sd->on_show_region_data, obj, sr);
if (newest)
_parents_on_focus(newest);
}
-//END
-
-
-EOLIAN static void
-_efl_ui_widget_show_region_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Rect sr, Eina_Bool forceshow)
-{
- Evas_Object *parent_obj, *child_obj;
- Evas_Coord px, py, cx, cy, nx = 0, ny = 0;
-
- /*****************************************************************************
- * TIZEN_ONLY_FEATURE: Fix entry size/cursor/region calculation for Tizen UX *
- *****************************************************************************
- * Move this code to the below to update show region geometry properly.
- evas_smart_objects_calculate(evas_object_evas_get(obj));
- */
- /*******
- * END *
- *******/
-
- if (!forceshow && eina_rectangle_equal(&sr.rect, &sd->show_region.rect)) return;
-
- sd->show_region = sr;
-
- /*****************************************************************************
- * TIZEN_ONLY_FEATURE: Fix entry size/cursor/region calculation for Tizen UX *
- *****************************************************************************/
- /* Block nested call for evas_smart_objects_calculate() and region showing works */
- if (sd->on_show_region_set) return;
- sd->on_show_region_set = EINA_TRUE;
-
- evas_smart_objects_calculate(evas_object_evas_get(obj));
-
- sd->on_show_region_set = EINA_FALSE;
-
- /* show_region geometry could be changed during processing elm_widget_show_region_set().
- evas_smart_objects_calculate() can trigger nested show_region_set calls */
- sr = sd->show_region;
- /*******
- * END *
- *******/
-
- if (sd->on_show_region)
- {
- sd->on_show_region(sd->on_show_region_data, obj, sr);
-
- if (_elm_scrollable_is(obj))
- {
- if (elm_widget_is_legacy(obj))
- {
- elm_interface_scrollable_content_pos_get(obj, &nx, &ny);
- sr.x -= nx;
- sr.y -= ny;
- }
- else
- {
- Eina_Position2D pos;
- pos = efl_ui_scrollable_content_pos_get(obj);
- sr.x -= pos.x;
- sr.y -= pos.y;
- }
- }
- }
-
- child_obj = obj;
- do
- {
- parent_obj = sd->parent_obj;
- if ((!parent_obj) || (!_elm_widget_is(parent_obj))) break;
- sd = efl_data_scope_get(parent_obj, MY_CLASS);
- if (!sd) break;
-
- evas_object_geometry_get(parent_obj, &px, &py, NULL, NULL);
- evas_object_geometry_get(child_obj, &cx, &cy, NULL, NULL);
-
- sr.x += (cx - px);
- sr.y += (cy - py);
- sd->show_region = sr;
-
- if (sd->on_show_region)
- sd->on_show_region(sd->on_show_region_data, parent_obj, sr);
- }
- while (parent_obj);
-}
-
-EOLIAN static Eina_Rect
-_efl_ui_widget_show_region_get(const Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
-{
- return (Eina_Rect) sd->show_region;
-}
-
-//TIZEN_ONLY(20180607): Restore legacy focus
/**
* @internal
*
sd->focus_chain = eina_list_remove(sd->focus_chain, obj);
}
-//
+//END
+
#include "elm_widget_item_eo.c"
#include "elm_widget_item_container_eo.c"
#include "efl_ui_widget.eo.c"
} Efl_Ui_Widget_Focus_Manager_Data;
EOLIAN static Efl_Object*
-_efl_ui_widget_focus_manager_efl_object_constructor(Eo *obj, Efl_Ui_Widget_Focus_Manager_Data *pd)
+_efl_ui_widget_focus_manager_efl_object_constructor(Eo *obj, Efl_Ui_Widget_Focus_Manager_Data *pd EINA_UNUSED)
{
Eo *res = NULL;
}
EOLIAN static void
-_efl_ui_widget_focus_manager_efl_object_destructor(Eo *obj, Efl_Ui_Widget_Focus_Manager_Data *pd)
+_efl_ui_widget_focus_manager_efl_object_destructor(Eo *obj, Efl_Ui_Widget_Focus_Manager_Data *pd EINA_UNUSED)
{
efl_destructor(efl_super(obj, MY_CLASS));
*/
}
-EOLIAN static Eina_Bool
+EOLIAN EINA_UNUSED static Eina_Bool
_efl_ui_widget_focus_manager_efl_ui_widget_focus_state_apply(Eo *obj, Efl_Ui_Widget_Focus_Manager_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect)
{
Eina_Bool state;
sd->legacy.ctor = EINA_TRUE;
}
-EOLIAN static Efl_Ui_Focus_Manager*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Manager*
_efl_ui_win_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *root)
{
Efl_Ui_Focus_Manager *manager;
return sd->indimode;
}
-EOLIAN static Eina_Bool
+EOLIAN EINA_UNUSED static Eina_Bool
_efl_ui_win_efl_ui_focus_object_focus_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
{
// Bypass widget implementation here.
}
}
-static void
+EINA_UNUSED static void
_legacy_manager_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
{
efl_event_callback_del(ev->info, EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED, _legacy_focused, ev->object);
-static Eina_List*
+EINA_UNUSED static Eina_List*
_custom_chain_get(const Efl_Ui_Widget *node)
{
ELM_WIDGET_DATA_GET_OR_RETURN(node, pd, NULL);
_flush_manager(ev->object, pd);
}
-static void
+EINA_UNUSED static void
_custom_chain_set(Efl_Ui_Widget *node, Eina_List *lst)
{
ELM_WIDGET_DATA_GET_OR_RETURN(node, pd);
elm_object_focus_next(obj, dir);
}
-static Evas_Object*
+EINA_UNUSED static Evas_Object*
_get_legacy_target(EINA_UNUSED Evas_Object *eo, Elm_Widget_Smart_Data *pd, Elm_Focus_Direction dir)
{
Evas_Object *result = NULL;
return result;
}
-static Eina_Array*
+EINA_UNUSED static Eina_Array*
_focus_parent_chain_gen(Efl_Ui_Focus_Object *obj)
{
Eina_Array *result = eina_array_new(5);
//TIZEN_ONLY(20180607): Restore legacy focus
EOLIAN static Eina_Bool
-_elm_genlist_efl_ui_widget_focus_next_manager_is(Eo *obj, Elm_Genlist_Data *_pd EINA_UNUSED)
+_elm_genlist_efl_ui_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Genlist_Data *_pd EINA_UNUSED)
{
return _elm_genlist_smart_focus_next_enable;
}
EAPI void elm_pan_gravity_set(Elm_Pan *obj EINA_UNUSED, double x EINA_UNUSED, double y EINA_UNUSED) {}
EAPI void elm_pan_gravity_get(const Elm_Pan *obj EINA_UNUSED, double *x EINA_UNUSED, double *y EINA_UNUSED) {}
-EOLIAN static Efl_Ui_Focus_Manager*
+EOLIAN EINA_UNUSED static Efl_Ui_Focus_Manager*
_elm_interface_scrollable_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj EINA_UNUSED, Elm_Scrollable_Smart_Interface_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *root)
{
Efl_Ui_Focus_Manager *manager;
return inside;
}
-EOLIAN static Eina_Iterator*
+EOLIAN EINA_UNUSED static Eina_Iterator*
_elm_interface_scrollable_efl_ui_focus_manager_border_elements_get(const Eo *obj, Elm_Scrollable_Smart_Interface_Data *pd EINA_UNUSED)
{
Eina_Iterator *border_elements;
}
EOLIAN static Efl_Object*
-_elm_genlist_efl_object_provider_find(const Eo *obj, Elm_Genlist_Data *pd, const Efl_Object *klass)
+_elm_genlist_efl_object_provider_find(const Eo *obj, Elm_Genlist_Data *pd EINA_UNUSED, const Efl_Object *klass)
{
return efl_provider_find(efl_super(obj, ELM_GENLIST_CLASS), klass);
}
EOLIAN static void
-_elm_genlist_item_efl_ui_focus_object_setup_order_non_recursive(Eo *obj, Elm_Gen_Item *pd)
+_elm_genlist_item_efl_ui_focus_object_setup_order_non_recursive(Eo *obj EINA_UNUSED, Elm_Gen_Item *pd EINA_UNUSED)
{
return;
}
EOLIAN static Eina_Bool
-_elm_genlist_efl_ui_widget_focus_state_apply(Eo *obj, Elm_Genlist_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect EINA_UNUSED)
+_elm_genlist_efl_ui_widget_focus_state_apply(Eo *obj, Elm_Genlist_Data *pd EINA_UNUSED, Efl_Ui_Widget_Focus_State current_state EINA_UNUSED, Efl_Ui_Widget_Focus_State *configured_state EINA_UNUSED, Efl_Ui_Widget *redirect EINA_UNUSED)
{
return EINA_FALSE;
}