-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Data Binding in Gtk2Hs -- -- Bind mutable data and lists to Gtk2Hs widgets. Examples are provided -- by the included demo programs. @package binding-gtk @version 0.2 module Graphics.UI.Gtk.Binding -- | Bind a Source to a control. bindToControl :: Bindable b => b a -> (a -> d) -> c -> Attr c d -> IO () -- | Bind from a control to a Source. The source is updated when the -- control loses focus. bindFromControl :: (WidgetClass c, Bindable b) => c -> Attr c d -> (a -> d -> a) -> b a -> IO (ConnectId c) -- | Create a two-way data binding. bindControl :: (WidgetClass c, Bindable b) => b a -> (a -> d) -> c -> Attr c d -> (a -> d -> a) -> IO (ConnectId c) -- | Create a simple two-way data binding for a Textual control. bindTextEntry :: (Show a, Read a, EntryClass c, WidgetClass c, Bindable b) => b a -> c -> IO (ConnectId c) -- | Create a set of navigation buttons for a binding list. navigation :: Variable v => BindingList v a -> a -> IO HButtonBox