Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Ui.Fltk

Description

This has the FLTK event thread, and communication with it.

Documentation

data Fltk a Source #

Instances

Monad Fltk # 

Methods

(>>=) :: Fltk a -> (a -> Fltk b) -> Fltk b #

(>>) :: Fltk a -> Fltk b -> Fltk b #

return :: a -> Fltk a #

fail :: String -> Fltk a #

Functor Fltk # 

Methods

fmap :: (a -> b) -> Fltk a -> Fltk b #

(<$) :: a -> Fltk b -> Fltk a #

Applicative Fltk # 

Methods

pure :: a -> Fltk a #

(<*>) :: Fltk (a -> b) -> Fltk a -> Fltk b #

(*>) :: Fltk a -> Fltk b -> Fltk b #

(<*) :: Fltk a -> Fltk b -> Fltk a #

MonadIO Fltk # 

Methods

liftIO :: IO a -> Fltk a #

fltk :: IO a -> Fltk a Source #

type Channel = MVar [(Fltk (), Text)] Source #

event_loop :: Channel -> QuitRequest -> TChan UiMsg -> IO () Source #

send_action :: Channel -> Text -> Fltk () -> IO () Source #

quit_ui_thread :: QuitRequest -> IO () Source #