Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 740

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.Buttons.RadioButton</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Buttons-RadioButton.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr></table><p class="caption">Graphics.UI.Gtk.Buttons.RadioButton</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail
</a></li><li><a href="#g:2">Class Hierarchy
</a></li><li><a href="#g:3">Types
</a></li><li><a href="#g:4">Constructors
</a></li><li><a href="#g:5">Compatibilty aliases
</a></li><li><a href="#g:6">Methods
</a></li><li><a href="#g:7">Attributes
</a></li><li><a href="#g:8">Signals
</a></li><li><a href="#g:9">Deprecated
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A choice from multiple check buttons
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:RadioButton">RadioButton</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Buttons-CheckButton.html#t:CheckButtonClass">CheckButtonClass</a> o =&gt; <a href="#t:RadioButtonClass">RadioButtonClass</a> o </li><li class="src short"><a href="#v:castToRadioButton">castToRadioButton</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:gTypeRadioButton">gTypeRadioButton</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toRadioButton">toRadioButton</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNew">radioButtonNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewWithLabel">radioButtonNewWithLabel</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewWithMnemonic">radioButtonNewWithMnemonic</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewFromWidget">radioButtonNewFromWidget</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewWithLabelFromWidget">radioButtonNewWithLabelFromWidget</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewWithMnemonicFromWidget">radioButtonNewWithMnemonicFromWidget</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewJoinGroup">radioButtonNewJoinGroup</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewJoinGroupWithLabel">radioButtonNewJoinGroupWithLabel</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonNewJoinGroupWithMnemonic">radioButtonNewJoinGroupWithMnemonic</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:radioButtonSetGroup">radioButtonSetGroup</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:radioButtonGetGroup">radioButtonGetGroup</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a>]</li><li class="src short"><a href="#v:radioButtonGroup">radioButtonGroup</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> [<a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a>] <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></li><li class="src short"><a href="#v:groupChanged">groupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a>)</li><li class="src short"><a href="#v:onGroupChanged">onGroupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)</li><li class="src short"><a href="#v:afterGroupChanged">afterGroupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)</li></ul></div><div id="interface"><h1 id="g:1">Detail
</h1><div class="doc"><p>A single radio button performs the same basic function as a
 <code><a href="Graphics-UI-Gtk-Buttons-CheckButton.html#t:CheckButton">CheckButton</a></code>, as its position in the object hierarchy reflects. It is only
 when multiple radio buttons are grouped together that they become a
 different user interface component in their own right.
</p><p>Every radio button is a member of some group of radio buttons. When one
 is selected, all other radio buttons in the same group are deselected. A
 <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> is one way of giving the user a choice from many options.
</p><p>Radio button widgets are created with <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNew">radioButtonNew</a></code>.
 Optionally, <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewWithLabel">radioButtonNewWithLabel</a></code> can be used if you want a
 text label on the radio button.
</p><p>For the radio button functions that take an existing group, the groups are
 represented by any of their members. So when adding widgets to an existing
 group of radio buttons, use <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewFromWidget">radioButtonNewFromWidget</a></code> with a <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code>
 that is already a member of the group. The convenience function
 <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewWithLabelFromWidget">radioButtonNewWithLabelFromWidget</a></code> is also provided.
</p><p>To remove a <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> from one group and make it part of a new one,
 use <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonSetGroup">radioButtonSetGroup</a></code>.
</p><ul><li> How to create a group of two radio buttons.
</li></ul><pre>
 createRadioButtons :: IO ()
 createRadioButtons = do
 window &lt;- windowNew
 box &lt;- vBoxNew True 2

 -- Create a radio button with a Entry widget
 radio1 &lt;- radioButtonNew
 entry &lt;- entryNew
 containerAdd radio1 entry

 -- Create a radio button with a label
 radio2 &lt;- radioButtonNewWithLabelFromWidget
 radio1 &quot;I'm the second radio button.&quot;

 -- Pack them into a box, then show all the widgets
 boxPackStart box radio1 PackGrow 2
 boxPackStart box radio2 PackGrow 2
 containerAdd window box
 widgetShowAll window

</pre><p>When an unselected button in the group is clicked the clicked button
 receives the &quot;toggled&quot; signal, as does the previously selected button.
 Inside the &quot;toggled&quot; handler,
 <code>Graphics.UI.Gtk.Buttons.ToggleButton.toggleButtonGetActive</code> can be used to
 determine if the button has been selected or deselected.
</p></div><h1 id="g:2">Class Hierarchy
</h1><div class="doc"><pre>
 | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Object.html#t:Object">Object</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:Bin">Bin</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Buttons-ToggleButton.html#t:ToggleButton">ToggleButton</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Buttons-CheckButton.html#t:CheckButton">CheckButton</a></code>
 | +----RadioButton
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:RadioButton" class="def">RadioButton</a>  <a href="src/Graphics-UI-Gtk-Types.html#RadioButton" class="link">Source</a></p><div class="subs instances"><p id="control.i:RadioButton" class="caption collapser" onclick="toggleSection('i:RadioButton')">Instances</p><div id="section.i:RadioButton" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Buttons-CheckButton.html#t:CheckButtonClass">CheckButtonClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Buttons-ToggleButton.html#t:ToggleButtonClass">ToggleButtonClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Buttons-Button.html#t:ButtonClass">ButtonClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:BinClass">BinClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Buttons-CheckButton.html#t:CheckButtonClass">CheckButtonClass</a> o =&gt; <a name="t:RadioButtonClass" class="def">RadioButtonClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#RadioButtonClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:RadioButtonClass" class="caption collapser" onclick="toggleSection('i:RadioButtonClass')">Instances</p><div id="section.i:RadioButtonClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToRadioButton" class="def">castToRadioButton</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a><a href="src/Graphics-UI-Gtk-Types.html#castToRadioButton" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeRadioButton" class="def">gTypeRadioButton</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeRadioButton" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toRadioButton" class="def">toRadioButton</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a><a href="src/Graphics-UI-Gtk-Types.html#toRadioButton" class="link">Source</a></p></div><h1 id="g:4">Constructors
</h1><div class="top"><p class="src"><a name="v:radioButtonNew" class="def">radioButtonNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNew" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> with a new group. To be of any practical
 value, a widget should then be packed into the radio button.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewWithLabel" class="def">radioButtonNewWithLabel</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewWithLabel" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> with a text label.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewWithMnemonic" class="def">radioButtonNewWithMnemonic</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewWithMnemonic" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>label</code> - the text of the button, with an underscore
 in front of the mnemonic character
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> containing a label. The label will be created
 using <code>Graphics.UI.Gtk.Display.Label.labelNewWithMnemonic</code>,
 so underscores in <code>label</code> indicate the mnemonic
 for the button.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewFromWidget" class="def">radioButtonNewFromWidget</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewFromWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code>, adding it to the same group as the group to
 which <code>groupMember</code> belongs. As with <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNew">radioButtonNew</a></code>, a widget should be
 packed into the radio button.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewWithLabelFromWidget" class="def">radioButtonNewWithLabelFromWidget</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewWithLabelFromWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>label</code> - a text string to display next to the radio
 button.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> with a text label, adding it to the same group
 as the group to which <code>groupMember</code> belongs.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewWithMnemonicFromWidget" class="def">radioButtonNewWithMnemonicFromWidget</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewWithMnemonicFromWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>label</code> - the text of the button, with an underscore
 in front of the mnemonic character
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code> containing a label, adding it to the same group
 as the group to which <code>groupMember</code> belongs. The label will be created using
 <code>Graphics.UI.Gtk.Display.Label.labelNewWithMnemonic</code>,
 so underscores in <code>label</code> indicate the mnemonic for the button.
</p></div></div><h1 id="g:5">Compatibilty aliases
</h1><div class="top"><p class="src"><a name="v:radioButtonNewJoinGroup" class="def">radioButtonNewJoinGroup</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewJoinGroup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Alias for <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewFromWidget">radioButtonNewFromWidget</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewJoinGroupWithLabel" class="def">radioButtonNewJoinGroupWithLabel</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewJoinGroupWithLabel" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>label</code> - a text string to display next to the radio
 button.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Alias for <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewWithLabelFromWidget">radioButtonNewWithLabelFromWidget</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonNewJoinGroupWithMnemonic" class="def">radioButtonNewJoinGroupWithMnemonic</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonNewJoinGroupWithMnemonic" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button
 group, to which the new radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>label</code> - the text of the button, with an underscore
 in front of the mnemonic character
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Alias for <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#v:radioButtonNewWithMnemonicFromWidget">radioButtonNewWithMnemonicFromWidget</a></code>.
</p></div></div><h1 id="g:6">Methods
</h1><div class="top"><p class="src"><a name="v:radioButtonSetGroup" class="def">radioButtonSetGroup</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonSetGroup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc"><p><code>groupMember</code> - a member of an existing radio button group,
 to which this radio button will be added.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets a <code><a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></code>s group. It should be noted that this does not
 change the layout of your interface in any way, so if you are changing the
 group, it is likely you will need to re-arrange the user interface to
 reflect these changes.
</p></div></div><div class="top"><p class="src"><a name="v:radioButtonGetGroup" class="def">radioButtonGetGroup</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonGetGroup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a>]</td><td class="doc"><p>returns a list containing all the radio buttons
 in the same group as this radio button.
</p></td></tr></table></div><div class="doc"><p>Retrieves the group assigned to a radio button.
</p></div></div><h1 id="g:7">Attributes
</h1><div class="top"><p class="src"><a name="v:radioButtonGroup" class="def">radioButtonGroup</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a> [<a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a>] <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButton">RadioButton</a><a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#radioButtonGroup" class="link">Source</a></p><div class="doc"><p>Sets a new group for a radio button.
</p></div></div><h1 id="g:8">Signals
</h1><div class="top"><p class="src"><a name="v:groupChanged" class="def">groupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a>)<a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#groupChanged" class="link">Source</a></p><div class="doc"><p>Emitted when the group of radio buttons that a radio button belongs to
 changes. This is emitted when a radio button switches from being alone to
 being part of a group of 2 or more buttons, or vice-versa, and when a
 buttton is moved from one group of 2 or more buttons to a different one, but
 not when the composition of the group that a button belongs to changes.
</p><ul><li> Available since Gtk+ version 2.4
</li></ul></div></div><h1 id="g:9">Deprecated
</h1><div class="top"><p class="src"><a name="v:onGroupChanged" class="def">onGroupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)<a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#onGroupChanged" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:afterGroupChanged" class="def">afterGroupChanged</a> :: <a href="Graphics-UI-Gtk-Buttons-RadioButton.html#t:RadioButtonClass">RadioButtonClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)<a href="src/Graphics-UI-Gtk-Buttons-RadioButton.html#afterGroupChanged" class="link">Source</a></p><div class="doc"><p>Emitted when the group of radio buttons that a radio button belongs to
 changes. This is emitted when a radio button switches from being alone to
 being part of a group of 2 or more buttons, or vice-versa, and when a
 buttton is moved from one group of 2 or more buttons to a different one, but
 not when the composition of the group that a button belongs to changes.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>