Gtk2HsContentsIndex
Graphics.UI.Gtk.Buttons.RadioButton
Contents
Compatibilty aliases
Description

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

  • 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.
Synopsis
data RadioButton
class CheckButtonClass o => RadioButtonClass o
castToRadioButton :: GObjectClass obj => obj -> RadioButton
radioButtonNew :: IO RadioButton
radioButtonNewWithLabel :: String -> IO RadioButton
radioButtonNewWithMnemonic :: String -> IO RadioButton
radioButtonNewJoinGroup :: RadioButton -> IO RadioButton
radioButtonNewJoinGroupWithLabel :: RadioButton -> String -> IO RadioButton
radioButtonNewJoinGroupWithMnemonic :: RadioButton -> String -> IO RadioButton
Documentation
data RadioButton
Instances
RadioButtonClass RadioButton
CheckButtonClass RadioButton
ToggleButtonClass RadioButton
ButtonClass RadioButton
BinClass RadioButton
ContainerClass RadioButton
WidgetClass RadioButton
ObjectClass RadioButton
GObjectClass RadioButton
class CheckButtonClass o => RadioButtonClass o
Instances
RadioButtonClass RadioButton
castToRadioButton :: GObjectClass obj => obj -> RadioButton
radioButtonNew :: IO RadioButton
Create a new RadioButton widget with a new group.
radioButtonNewWithLabel :: String -> IO RadioButton
Like radioButtonNew but shows a label to the right of the button.
radioButtonNewWithMnemonic :: String -> IO RadioButton
Like radioButtonNew but shows a label to the right of the button. Underscores in the label string indicate the mnemonic for the menu item.
radioButtonNewJoinGroup :: RadioButton -> IO RadioButton

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

  • 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 :: RadioButton -> String -> IO RadioButton
Create a new RadioButton with a label and group.
radioButtonNewJoinGroupWithMnemonic :: RadioButton -> String -> IO RadioButton
Create a new RadioButton with a label and group. Underscores in the label string indicate the mnemonic for the menu item.
Compatibilty aliases
Produced by Haddock version 0.6