2 * Copyright (c) 2009-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.
19 #ifndef __QUICKPANEL_GRIDBOX_H__
20 #define __QUICKPANEL_GRIDBOX_H__
22 #define GRIDBOX_PREPEND 1
23 #define GRIDBOX_APPEND 0
25 Evas_Object *gridbox_create(Evas_Object *parent, void *data);
26 void gridbox_remove(Evas_Object *gridbox);
27 void gridbox_add_item(Evas_Object *gridbox, Evas_Object *item, int is_prepend);
28 void gridbox_remove_item(Evas_Object *gridbox, Evas_Object *item, int with_animation);
29 void gridbox_rotation(Evas_Object *gridbox, int angle);
30 void gridbox_remove_and_add_item(Evas_Object *gridbox, Evas_Object *item
31 ,void (*update_cb)(Evas_Object *list, void *data, int is_prepend)
32 ,void *container, void *data, int pos);
33 void gridbox_remove_all_item(Evas_Object *gridbox, int with_animation);
34 void gridbox_set_item_deleted_cb(Evas_Object *gridbox,
35 void(*deleted_cb)(void *data, Evas_Object *obj));
36 int gridbox_get_item_count(Evas_Object *gridbox);
37 int gridbox_get_geometry(Evas_Object *gridbox,
38 int *limit_h, int *limit_partial_h, int *limit_partial_w);
39 void gridbox_update_item(Evas_Object *gridbox, Evas_Object *item);
40 void gridbox_closing_trigger_set(Evas_Object *gridbox);
41 int gridbox_get_item_exist(Evas_Object *gridbox, Evas_Object *box);