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_item_parent.h
23 * @brief Header for EailItemParent implementation
26 #ifndef EAIL_ITEM_PARENT_H
27 #define EAIL_ITEM_PARENT_H
29 #include "eail_item.h"
31 * @brief Returns a value corresponding to the type of EailItemParent interface
33 #define EAIL_TYPE_ITEM_PARENT (eail_item_parent_get_type())
35 * @brief Macro upcasts an instance (obj) of a subclass to the EailItemParent
38 * @param obj AtkObject instance
40 #define EAIL_ITEM_PARENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
41 EAIL_TYPE_ITEM_PARENT, EailItemParent))
43 * @brief Tests whether object (obj) implements EailItemParent interface
45 * @param obj AtkObject instance
47 #define EAIL_IS_ITEM_PARENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
48 EAIL_TYPE_ITEM_PARENT))
50 * @brief Gets EailItemParent interface structure from an obj (class instance)
52 * @param obj object instance to get EailItemParent interface from
54 #define EAIL_ITEM_PARENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj),\
55 EAIL_TYPE_ITEM_PARENT, EailItemParentIface))
61 /** @brief Definition of object structure for Atk EailItemParent*/
62 typedef struct _EailItemParent EailItemParent;
63 /** @brief Definition of interface structure for Atk EailItemParent*/
64 typedef struct _EailItemParentIface EailItemParentIface;
66 /** @brief Definition of interface structure for Atk EailItemParent*/
67 struct _EailItemParentIface
69 GTypeInterface parent;/**< @brief Parent interface that is being extended*/
71 /**@brief Callback definition for eail_item_parent_get_item_name function*/
72 const gchar *(*get_item_name) (EailItemParent *parent,
75 /**@brief Callback definition for eail_item_parent_get_item_role function*/
76 AtkRole (*get_item_role) (EailItemParent *parent,
79 /**@brief Callback definition for eail_item_parent_get_index_in_parent function*/
80 gint (*get_item_index_in_parent) (EailItemParent *parent,
83 /**@brief Callback definition for eail_item_parent_get_n_children function*/
84 gint (*get_n_children) (EailItemParent *parent,
87 /**@brief Callback definition for eail_item_parent_ref_n_child function*/
88 AtkObject * (*ref_n_child) (EailItemParent *parent,
92 /**@brief Callback definition for eail_item_parent_ref_item_state_set function*/
94 (*ref_item_state_set) (EailItemParent *parent,
96 AtkStateSet *state_set);
98 /* AtkComponent interface */
99 /**@brief Callback definition for eail_item_parent_grab_item_focus function*/
100 gboolean (*grab_item_focus) (EailItemParent *parent,
103 /**@brief Callback definition for eail_item_parent_get_item_extents function*/
104 void (*get_item_extents) (EailItemParent *parent,
110 AtkCoordType coord_type);
112 /**@brief Callback definition for eail_item_parent_get_evas_obj function*/
113 Evas_Object * (*get_evas_obj) (EailItemParent *parent,
116 /**@brief Callback definition for eail_item_parent_get_actions_supported
118 gboolean (*get_actions_supported) (EailItemParent *parent,
121 /**@brief Callback definition for eail_item_parent_is_content_get_supported
123 gboolean (*is_content_get_supported) (EailItemParent *parent,
127 /** @brief Enum that is used for representing supported actions by item*/
128 enum EailActionSupported
130 EAIL_ACTION_SUPPORTED_NONE = 1 << 0,
131 EAIL_ACTION_SUPPORTED_CLICK = 1 << 1,
132 EAIL_ACTION_SUPPORTED_PRESS = 1 << 2,
133 EAIL_ACTION_SUPPORTED_RELEASE = 1 << 3,
134 EAIL_ACTION_SUPPORTED_EXPAND = 1 << 4,
135 EAIL_ACTION_SUPPORTED_SHRINK = 1 << 5
139 GType eail_item_parent_get_type(void);
140 const gchar * eail_item_parent_get_item_name(EailItemParent *parent,
142 AtkRole eail_item_parent_get_item_role(EailItemParent *parent,
144 gint eail_item_parent_get_n_children(EailItemParent *parent,
146 AtkObject * eail_item_parent_ref_n_child(EailItemParent *parent,
149 gint eail_item_parent_get_item_index_in_parent(EailItemParent *parent,
151 AtkStateSet * eail_item_parent_ref_item_state_set(EailItemParent *parent,
153 AtkStateSet *state_set);
154 gboolean eail_item_parent_grab_item_focus(EailItemParent *parent,
156 void eail_item_parent_get_item_extents(EailItemParent *parent,
162 AtkCoordType coord_type);
163 gboolean eail_item_parent_get_actions_supported(EailItemParent *parent,
165 gboolean eail_item_parent_is_is_content_get_supported(EailItemParent *parent,
167 Evas_Object * eail_item_parent_get_evas_obj(EailItemParent *parent,