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_SETTINGS_GRIDBOX_H__
20 #define __QUICKPANEL_SETTINGS_GRIDBOX_H__
22 #define SETTINGS_GRIDBOX_PREPEND 1
23 #define SETTINGS_GRIDBOX_APPEND 0
24 #define SETTINGS_GRIDBOX_ITEM_ICON "item_icon"
25 #define SETTINGS_GRIDBOX_ITEM_DIVIDER "item_divider"
27 extern Evas_Object *quickpanel_settings_gridbox_create(Evas_Object *parent, void *data);
28 extern void quickpanel_settings_gridbox_remove(Evas_Object *gridbox);
29 extern void quickpanel_settings_gridbox_item_add(Evas_Object *gridbox, Evas_Object *item, const char *item_type, int is_prepend);
30 extern void quickpanel_settings_gridbox_item_remove(Evas_Object *gridbox, Evas_Object *item);
31 extern void quickpanel_settings_gridbox_item_remove_all(Evas_Object *gridbox);
32 extern void quickpanel_settings_gridbox_rotation(Evas_Object *gridbox, int angle);
33 extern int quickpanel_settings_gridbox_item_count_get(Evas_Object *gridbox);
34 extern int quickpanel_settings_gridbox_item_index_get(Evas_Object *gridbox, int touch_x, int touch_y);
35 extern void quickpanel_settings_gridbox_unpack_all(Evas_Object *gridbox);