Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Util.Fltk

Contents

Synopsis

Documentation

data Fltk a Source #

Instances

Instances details
Monad Fltk # 
Instance details

Defined in Util.Fltk

Methods

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

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

return :: a -> Fltk a #

Functor Fltk # 
Instance details

Defined in Util.Fltk

Methods

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

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

Applicative Fltk # 
Instance details

Defined in Util.Fltk

Methods

pure :: a -> Fltk a #

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

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

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

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

MonadIO Fltk # 
Instance details

Defined in Util.Fltk

Methods

liftIO :: IO a -> Fltk a #

data Result Source #

Constructors

Continue 
Quit 

Instances

Instances details
Show Result # 
Instance details

Defined in Util.Fltk

fltk :: IO a -> Fltk a Source #

action :: Channel -> Fltk () -> IO () Source #

Send a Fltk action that doesn't quit.

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!

event_loop :: Channel -> IO () Source #

Enter the fltk event loop. For portability, this should only be called from the main thread.

window

data Window a Source #

type MsgCallback = CInt -> CString -> IO () Source #

data Msg a Source #

Constructors

Msg a Text 

create_window :: (CInt -> a) -> CreateWindow a -> Int -> Int -> Int -> Int -> String -> IO (Window a) Source #