3 * Copyright 2012 Samsung Electronics Co., Ltd
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
9 * http://floralicense.org/license/
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.
18 #ifndef __RADIO_GROUP_H__
19 #define __RADIO_GROUP_H__
21 typedef void* cal_radio_group_h;
23 typedef void (*cal_radio_group_changed_callback)(unsigned int index, bool selected, void* data);
25 cal_radio_group_h cal_radio_group_create(unsigned int count, Evas_Object* parent);
27 void cal_radio_group_destroy(cal_radio_group_h rg);
29 void cal_radio_group_set_radio_object(cal_radio_group_h rg, unsigned int index, Evas_Object* obj);
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);
34 void cal_radio_group_remove_radio_object(cal_radio_group_h rg, unsigned int index);
36 void cal_radio_group_select_radio(cal_radio_group_h rg, unsigned int index);
38 int cal_radio_group_get_selected_radio(cal_radio_group_h rg);