binding-gtk-0.2: Data Binding in Gtk2Hs

Graphics.UI.Gtk.Binding

Synopsis

Documentation

bindToControlSource

Arguments

:: Bindable b 
=> b a

the binding source

-> (a -> d)

a function that extracts data from the source

-> c

the target control

-> Attr c d

the attribute of the control to bind to

-> IO () 

Bind a Source to a control.

bindFromControlSource

Arguments

:: (WidgetClass c, Bindable b) 
=> c

the control

-> Attr c d

the attribute of the control to bind from

-> (a -> d -> a)

a function that applies data from the control to the source

-> b a

the binding source

-> IO (ConnectId c) 

Bind from a control to a Source. The source is updated when the control loses focus.

bindControlSource

Arguments

:: (WidgetClass c, Bindable b) 
=> b a

the binding source

-> (a -> d)

a function that extracts data from the source

-> c

the control

-> Attr c d

the attribute of the control to bind to

-> (a -> d -> a)

a function that applies data from the control to the source

-> IO (ConnectId c) 

Create a two-way data binding.

bindTextEntrySource

Arguments

:: (Show a, Read a, EntryClass c, WidgetClass c, Bindable b) 
=> b a

the binding source

-> c

the control

-> IO (ConnectId c) 

Create a simple two-way data binding for a Textual control.

navigationSource

Arguments

:: Variable v 
=> BindingList v a

the binding list

-> a

the default value for inserts

-> IO HButtonBox 

Create a set of navigation buttons for a binding list.