Karya, built on 2018-02-23T20:23:55 (patch cf8565b7ac832266878af99a942555d139065f12)

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 #