1e783710bc0eff62b45ccfe77ab9bcbf6b979b6c
[apps/home/quickpanel.git] / daemon / notifications / noti_listbox.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *  http://floralicense.org/license/
9  *
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.
15  */
16
17 #ifndef __QUICKPANEL_NOTI_LISTBOX_H__
18 #define __QUICKPANEL_NOTI_LISTBOX_H__
19
20 #define LISTBOX_PREPEND 1
21 #define LISTBOX_APPEND 0
22
23 Evas_Object *listbox_create(Evas_Object *parent, void *data);
24 void listbox_remove(Evas_Object *listbox);
25 void listbox_add_item(Evas_Object *listbox, Evas_Object *item, int is_prepend);
26 void listbox_remove_item(Evas_Object *listbox, Evas_Object *item, int with_animation);
27 void listbox_rotation(Evas_Object *listbox, int angle);
28 void listbox_remove_and_add_item(Evas_Object *listbox, Evas_Object *item
29                 ,void (*update_cb)(Evas_Object *list, void *data, int is_prepend)
30                 ,void *container, void *data, int pos);
31 void listbox_remove_all_item(Evas_Object *listbox, int with_animation);
32 void listbox_set_item_deleted_cb(Evas_Object *listbox,
33                 void(*deleted_cb)(void *data, Evas_Object *obj));
34 void listbox_update(Evas_Object *listbox);
35 void listbox_update_item(Evas_Object *listbox, Evas_Object *item);
36 #endif