[misc] Sycn with master branch.
[apps/core/preloaded/calendar.git] / include / dialogue.h
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.1 (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_DIALOGUE_H__
20 #define __CALENDAR_DIALOGUE_H__
21
22 #include <Elementary.h>
23
24 typedef void (*cal_dialogue_item_clicked_callback)(Evas_Object *obj, void *data);
25
26 Evas_Object * cal_dialogue_create(Evas_Object *parent);
27 void cal_dialogue_destroy(Evas_Object * dialogue);
28
29 Evas_Object * cal_dialogue_get_box(Evas_Object *dialogue);
30
31 Evas_Object * cal_dialogue_append_item(Evas_Object *box, const char *style, cal_dialogue_item_clicked_callback callback_func, void *callback_data);
32 Evas_Object * cal_dialogue_insert_item_after(Evas_Object *box, const char *style, Evas_Object *after, cal_dialogue_item_clicked_callback callback_func, void *callback_data);
33 Evas_Object * cal_dialogue_insert_item_before(Evas_Object *box, const char *style, Evas_Object *before, cal_dialogue_item_clicked_callback callback_func, void *callback_data);
34
35 void cal_dialogue_delete_item(Evas_Object *box, Evas_Object *item);
36 void cal_dialogue_delete_all_items(Evas_Object *dialogue);
37
38 void cal_dialogue_show_item_before(Evas_Object *box, Evas_Object *item, Evas_Object *before);
39 void cal_dialogue_show_item_after(Evas_Object *box, Evas_Object *item, Evas_Object *after);
40
41 void cal_dialogue_hide_item(Evas_Object *box, Evas_Object *item);
42
43 #endif /* __CALENDAR_DIALOGUE_H__ */