/** * @brief Inits Action interface for PANEL * * @param action an AtkAction * @param data data passed to callback * @returns TRUE on success, FALSE otherwise */ static gboolean eail_panel_action_toggle(AtkAction *action, void *data) { Evas_Object *widget; g_return_val_if_fail(EAIL_IS_PANEL(action), FALSE); widget = eail_widget_get_widget(EAIL_WIDGET(action)); if (!widget) return FALSE; elm_panel_toggle(widget); return TRUE; }
/** * @brief Implementation of AtkObject->ref_state_set callback * * ATK doc says: * Gets a reference to the state set of the accessible; the caller must * unreference it when it is no longer needed. * * @returns a reference to an AtkStateSet which is the state set of the * accessible. */ static AtkStateSet* eail_panel_ref_state_set(AtkObject *obj) { Evas_Object *widget; Eina_Bool hidden; AtkStateSet *state_set; g_return_val_if_fail(EAIL_IS_PANEL(obj), NULL); state_set = ATK_OBJECT_CLASS(eail_panel_parent_class)->ref_state_set(obj); widget = eail_widget_get_widget(EAIL_WIDGET(obj)); hidden = elm_panel_hidden_get(widget); if (!hidden) atk_state_set_add_state(state_set, ATK_STATE_VISIBLE); return state_set; }
/** * @brief Implementation of eail_widget_get_widget_children callback from * EailWidget * * @returns Eina_List filled with Evas_Object* objects contained in Panel widget */ static Eina_List* eail_panel_children_get(EailWidget *widget) { Evas_Object *obj, *child; Eina_List *list; g_return_val_if_fail(EAIL_IS_PANEL(widget), NULL); obj = eail_widget_get_widget(widget); if (obj == NULL) return NULL; child = elm_object_part_content_get(obj, "default"); if (child == NULL) return NULL; list = NULL; list = eina_list_append(list, child); return list; }