1b6a3ea018a256650fceeaf085708b6aaedca755
[platform/core/uifw/eail.git] / eail / eail / eail_factory.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
3  *
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.
8  *
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.
13  *
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.
18  */
19
20 /**
21  * @file eail_factory.h
22  *
23  * @brief Header for EailFactory implementation
24  */
25
26 #ifndef EAIL_FACTORY_H
27 #define EAIL_FACTORY_H
28
29 #include <atk/atk.h>
30
31 #include <Evas.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 /** @brief Definition of object structure for EailFactory cache entry*/
38 typedef struct _EailFactoryObj EailFactoryObj;
39
40 /** @brief Definition of object structure for EailFactory cache entry*/
41 struct _EailFactoryObj
42 {
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*/
46 };
47
48 AtkObject * eail_factory_get_accessible    (Evas_Object *widget);
49 AtkObject * eail_factory_get_item_atk_obj  (Elm_Object_Item *item,
50                                             AtkRole role,
51                                             AtkObject *parent);
52 void eail_factory_append_item_to_cache     (AtkObject *atk_obj,
53                                             Elm_Object_Item *item);
54 EailFactoryObj *eail_factory_find_obj_for_item (const Elm_Object_Item *item);
55 void eail_factory_unregister_wdgt_from_cache(Evas_Object *widget);
56 void eail_factory_unregister_item_from_cache(Elm_Object_Item *item);
57 Eina_List * eail_factory_find_objects_with_role(AtkRole role);
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif