2 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 * @file eail_factory.h
23 * @brief Header for EailFactory implementation
26 #ifndef EAIL_FACTORY_H
27 #define EAIL_FACTORY_H
37 /** @brief Definition of object structure for EailFactory cache entry*/
38 typedef struct _EailFactoryObj EailFactoryObj;
40 /** @brief Definition of object structure for EailFactory cache entry*/
41 struct _EailFactoryObj
43 AtkObject *atk_obj;/**< @brief AtkObject representation*/
44 Evas_Object *evas_obj;/**< @brief Evas_Object that needs atk representation*/
45 Elm_Object_Item *obj_item;/**< @brief Elm_Object_Item that needs atk representation*/
49 * @brief Creates an accessible EAIL widget that represents the given Evas_Object*
51 AtkObject * eail_factory_get_accessible (Evas_Object *widget);
54 * @brief Returns an instance of AtkObject for the given item
56 AtkObject * eail_factory_get_item_atk_obj (Elm_Object_Item *item,
61 * @brief Creates an EailFactoryObj instance for the given item and adds it to cache
63 void eail_factory_append_item_to_cache (AtkObject *atk_obj,
64 Elm_Object_Item *item);
66 * @brief Tries to find an AtkObject representing the given Elm_Object_Item * in cache
68 EailFactoryObj *eail_factory_find_obj_for_item (const Elm_Object_Item *item);
71 * @brief Unregisters a widget and associated AtkObject* representation from
74 void eail_factory_unregister_wdgt_from_cache(Evas_Object *widget);
77 * @brief Unregisters an item and associated AtkObject* representation from
80 void eail_factory_unregister_item_from_cache(Elm_Object_Item *item);
81 Eina_List * eail_factory_find_objects_with_role(AtkRole role);