Name

RadioButton —

A radio group is a set of check buttons where only one button can be checked.

Synopsis

radioButtonNew:: IO RadioButton
radioButtonNewJoinGroup:: RadioButton -> IO RadioButton
radioButtonNewJoinGroupWithLabel:: RadioButton -> String -> IO RadioButton
radioButtonNewWithLabel:: String -> IO RadioButton

Introduction

Each radio button has to be associated with a group. Generating a new radio button makes up a new group. Other group members can be added by generating radio buttons with the function radioButtonNewJoinGroup.

Todo

No function that directly accesses the group is bound. This is due to the difficulties assuring that these groups are valid as the group is a plain GSList from Glib.

Constructors

radioButtonNew

Create a new RadioButton widget with a new group.

radioButtonNew

Methods

radioButtonNewJoinGroup

Creates a new RadioButton and attaches it to the group of another radio button.

radioButtonNewJoinGroup:: RadioButton:: IO RadioButton
rb

This function corresponds to gtk_radio_button_new_from_widget. The new name makes more sense because we do not handle any other grouping mechanism.

radioButtonNewJoinGroupWithLabel

Create a new RadioButton with a label and group.

radioButtonNewJoinGroupWithLabel:: RadioButton:: String:: IO RadioButton
rblbl

radioButtonNewWithLabel

Like RadioButton but shows a label to the right of the button.

radioButtonNewWithLabel:: String:: IO RadioButton
lbl