Tizen 2.1 base
[apps/core/preloaded/calendar.git] / include / radio-group.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 #ifndef __RADIO_GROUP_H__
19 #define __RADIO_GROUP_H__
20
21 typedef void* cal_radio_group_h;
22
23 typedef void (*cal_radio_group_changed_callback)(unsigned int index, bool selected, void* data);
24
25 cal_radio_group_h cal_radio_group_create(unsigned int count, Evas_Object* parent);
26
27 void cal_radio_group_destroy(cal_radio_group_h rg);
28
29 void cal_radio_group_set_radio_object(cal_radio_group_h rg, unsigned int index, Evas_Object* obj);
30
31 void cal_radio_group_set_changed_callback(cal_radio_group_h rg, unsigned int index,
32                 cal_radio_group_changed_callback func, void* data);
33
34 void cal_radio_group_remove_radio_object(cal_radio_group_h rg, unsigned int index);
35
36 void cal_radio_group_select_radio(cal_radio_group_h rg, unsigned int index);
37
38 int cal_radio_group_get_selected_radio(cal_radio_group_h rg);
39
40 #endif