f1f6ccaf492e92b401458da1abcafb45af659aa2
[apps/core/preloaded/calendar.git] / include / grid.h
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18
19 #ifndef __CALENDAR_GRID_H__
20 #define __CALENDAR_GRID_H__
21
22 #include <Elementary.h>
23
24 typedef Eina_Bool (* cal_grid_item_changed_callback)(void *);
25
26 Evas_Object * cal_grid_create(Evas_Object *parent, cal_grid_item_changed_callback callback_func, void *callback_data);
27
28 void cal_grid_set_edit_mode(Evas_Object *grid, Eina_Bool is_edit_mode);
29
30 void cal_grid_set_max_item_count(Evas_Object *grid, unsigned int count);
31
32 unsigned int cal_grid_get_current_item_count(Evas_Object *grid);
33
34 Elm_Object_Item * cal_grid_append_item(Evas_Object *grid, const char *image_path);
35
36 void cal_grid_delete_item(Evas_Object *grid, Elm_Object_Item *item);
37
38 Eina_List * cal_grid_get_item_path_list(Evas_Object *grid);
39
40 void cal_grid_free_item_path_list(Eina_List *item_path_list);
41
42 #endif /* __CALENDAR_GRID_H__ */