2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __ATTACH_PANEL_TOOLBAR_H__
18 #define __ATTACH_PANEL_TOOLBAR_H__
20 #include <Elementary.h>
23 TOOLBAR_EVENT_TYPE_INVALID = 0,
24 TOOLBAR_EVENT_TYPE_CHANGE_TAB,
25 TOOLBAR_EVENT_TYPE_MAX,
26 } toolbar_event_type_e;
28 extern Evas_Object *_toolbar_create(Evas_Object *ui_manager, attach_panel_h attach_panel);
29 extern void _toolbar_destroy(Evas_Object *toolbar);
31 extern Elm_Object_Item *_toolbar_append_item(Evas_Object *toolbar, const char *tab_name, Evas_Object *page);
32 extern void _toolbar_remove_item(Evas_Object *toolbar, Elm_Object_Item *tabbar_item);
34 extern void _toolbar_bring_in(Evas_Object *toolbar, Elm_Object_Item *tabbar_item);
35 extern unsigned int _toolbar_count_item(Evas_Object *toolbar);
38 extern int _toolbar_register_event_cb(Evas_Object *toolbar, int event_type, void (*event_cb)(Evas_Object *toolbar, int event_type, void *event_info, void *data), void *data);
39 extern int _toolbar_unregister_event_cb(Evas_Object *toolbar, int event_type, void (*event_cb)(Evas_Object *toolbar, int event_type, void *event_info, void *data));
41 #endif /* __ATTACH_PANEL_TOOLBAR_H__ */