03b2eb4ec7002f7d12c711333bc69829f1962eeb
[apps/home/quickpanel.git] / daemon / notifications / noti_gridbox.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_GRIDBOX_H__
18 #define __QUICKPANEL_GRIDBOX_H__
19
20 #define GRIDBOX_PREPEND 1
21 #define GRIDBOX_APPEND 0
22
23 Evas_Object *gridbox_create(Evas_Object *parent, void *data);
24 void gridbox_remove(Evas_Object *gridbox);
25 void gridbox_add_item(Evas_Object *gridbox, Evas_Object *item, int is_prepend);
26 void gridbox_remove_item(Evas_Object *gridbox, Evas_Object *item, int with_animation);
27 void gridbox_rotation(Evas_Object *gridbox, int angle);
28 void gridbox_remove_and_add_item(Evas_Object *gridbox, Evas_Object *item
29                 ,void (*update_cb)(Evas_Object *list, void *data, int is_prepend)
30                 ,void *container, void *data, int pos);
31 void gridbox_remove_all_item(Evas_Object *gridbox, int with_animation);
32 void gridbox_set_item_deleted_cb(Evas_Object *gridbox,
33                 void(*deleted_cb)(void *data, Evas_Object *obj));
34 #endif