Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.Fltk

Contents

Synopsis

Documentation

data Fltk a Source #

Instances

Instances details
MonadIO Fltk Source # 
Instance details

Defined in Util.Fltk

Methods

liftIO :: IO a -> Fltk a #

Applicative Fltk Source # 
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 #

Functor Fltk Source # 
Instance details

Defined in Util.Fltk

Methods

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

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

Monad Fltk Source # 
Instance details

Defined in Util.Fltk

Methods

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

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

return :: a -> Fltk a #

data Result Source #

Constructors

Continue 
Quit 

Instances

Instances details
Show Result Source # 
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 #