Graphics.UI.FLTK.Widget
- data Attr c a = Attr (c -> IO a) (c -> a -> IO ())
- data Prop c
- set :: c -> [Prop c] -> IO ()
- get :: c -> Attr c a -> IO a
- class Value_FC c v | c -> v where
- data Widget
- class Widget_C a where
- changed :: Widget_C c => Attr c Bool
- label :: Widget_C c => Attr c String
- data When
- when :: Widget_C c => Attr c When
- tooltip :: Widget_C c => Attr c String
- labelSize :: Widget_C c => Attr c Int
- redraw :: Widget_C w => w -> IO ()
- redrawLabel :: Widget_C w => w -> IO ()
- wNever :: When
- wChanged :: When
- wRelease :: When
- wReleaseAllways :: When
- wEnter :: When
- wEnterAllways :: When
- wEnterChanged :: When
- wNotChanged :: When
- type Act t = t -> IO ()
- destroy :: Widget_C w => w -> IO ()
- wait :: IO ()
- data Color
- black :: Color
- red :: Color
- green :: Color
- yellow :: Color
- blue :: Color
- magenta :: Color
- cyan :: Color
- white :: Color
- rgb :: Int -> Int -> Int -> Color
- color :: Widget_C c => Attr c Color
- labelColor :: Widget_C c => Attr c Color
- selectionColor :: Widget_C c => Attr c Color
- class CFlag a where
- (+|+) :: a -> a -> a
- data Align
- align :: Widget_C c => Attr c Align
- coords :: Widget_C c => Attr c (Int, Int, Int, Int)
- aBottom :: Align
- aCenter :: Align
- aClip :: Align
- aInside :: Align
- aLeft :: Align
- aRight :: Align
- aTextOverImage :: Align
- aTop :: Align
- aWrap :: Align
Documentation
An attribute is just a getter and a setter function.
Properties are the heart of the system.
Class for widgets
redrawLabel :: Widget_C w => w -> IO ()Source
Redraw a widget label
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.