- data ViewChannel a = ViewChannel {
- viewChannel :: TChan a
- viewChannelLock :: TVar Bool
- forkGuiIO :: IO a -> (a -> IO ()) -> IO (MVar a, ThreadId, ThreadId)
- forkGuiIO_ :: IO a -> (a -> IO ()) -> IO ()
- onGuiSignal :: MVar a -> (a -> IO ()) -> IO ThreadId
- createViewChannel :: WidgetClass widget => TChan a -> widget -> IO (ViewChannel a)
- listenViewChannel :: ViewChannel a -> (a -> IO ()) -> IO ()
- listenBufferChannel :: TChan a -> (a -> IO ()) -> IO ()
Documentation
data ViewChannel a Source
ViewChannel | |
|
onGuiSignal :: MVar a -> (a -> IO ()) -> IO ThreadIdSource
Post GUI Action to Gtk+ thread when catch signal.
createViewChannel :: WidgetClass widget => TChan a -> widget -> IO (ViewChannel a)Source
Create view channel. If widget destroy, stop read broadcast channel.
listenViewChannel :: ViewChannel a -> (a -> IO ()) -> IO ()Source
Listen view channel.