Safe Haskell | Safe-Inferred |
---|
Synopsis
- data Fltk a
- data Result
- fltk :: IO a -> Fltk a
- action :: Channel -> Fltk () -> IO ()
- quit :: Channel -> IO ()
- run_action :: Fltk a -> IO a
- data Channel
- new_channel :: IO Channel
- event_loop :: Channel -> IO ()
- data Window a
- win_ptr :: Window a -> Ptr (Window a)
- type MsgCallback = CInt -> CString -> IO ()
- data Msg a = Msg a Text
- create_window :: (CInt -> a) -> CreateWindow a -> Int -> Int -> Int -> Int -> String -> IO (Window a)
- read_msg :: Window a -> STM (Msg a)
Documentation
run_action :: Fltk a -> IO a Source #
Run an action directly, rather than over the Channel
. Only use this if
you're certain you're the main thread!
new_channel :: IO Channel Source #
event_loop :: Channel -> IO () Source #
Enter the fltk event loop. For portability, this should only be called from the main thread.