hs-fltk-0.2.5: Binding to GUI library FLTK

Graphics.UI.FLTK.Widget

Synopsis

Documentation

data Attr c a Source

An attribute is just a getter and a setter function.

Constructors

Attr (c -> IO a) (c -> a -> IO ()) 

data Prop c Source

Properties are the heart of the system.

Constructors

forall a . (Attr c a) := a 
forall a . (Attr c a) ::= (IO a) 
forall a . (Attr c a) :=> (a -> a) 
forall a . (Attr c a) ::=> (a -> IO a) 

set :: c -> [Prop c] -> IO ()Source

Set a number of properties for some object.

get :: c -> Attr c a -> IO aSource

Get an Attr of an object.

class Value_FC c v | c -> v whereSource

Function class to get and set the value of a widget.

Methods

value :: Attr c vSource

Instances

Value_FC Input String

Value of the input widget.

Value_FC Tabs Widget 
Value_FC Progress Float

Current value for the progress bar.

Value_FC MultiBrowser Int 

data Widget Source

Type for widgets

changed :: Widget_C c => Attr c BoolSource

Has the widget changed?

label :: Widget_C c => Attr c StringSource

The label of the widget.

data When Source

When are actions fired?

when :: Widget_C c => Attr c WhenSource

Change when the action is fired.

tooltip :: Widget_C c => Attr c StringSource

The tooltip of the widget.

labelSize :: Widget_C c => Attr c IntSource

Size of label in pt.

redraw :: Widget_C w => w -> IO ()Source

Redraw a widget.

redrawLabel :: Widget_C w => w -> IO ()Source

Redraw a widget label

type Act t = t -> IO ()Source

The type for actions.

destroy :: Widget_C w => w -> IO ()Source

Destroy a widget

rgb :: Int -> Int -> Int -> ColorSource

color :: Widget_C c => Attr c ColorSource

Change Color the action is fired.

labelColor :: Widget_C c => Attr c ColorSource

Change Color the action is fired.

selectionColor :: Widget_C c => Attr c ColorSource

Change Color the action is fired.

class CFlag a whereSource

Methods

(+|+) :: a -> a -> aSource

Instances

data Align Source

Instances

align :: Widget_C c => Attr c AlignSource

Change Align the action is fired.

coords :: Widget_C c => Attr c (Int, Int, Int, Int)Source

Coordinates (x,y,width,heigth) of a widget