Copyright | (c) 2011-2016 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- nextevent :: MainCoroutine UserEvent
- sysevent :: SystemEvent -> MainCoroutine ()
- updateFlagFromToggleUI :: String -> Simple Lens HoodleState Bool -> MainCoroutine Bool
- data DrawingFunctionSet = DrawingFunctionSet {}
- invalidateGeneral :: CanvasId -> Maybe BBox -> DrawFlag -> DrawingFunction SinglePage EditMode -> DrawingFunction SinglePage SelectMode -> DrawingFunction ContinuousPage EditMode -> DrawingFunction ContinuousPage SelectMode -> MainCoroutine ()
- invalidateOther :: MainCoroutine ()
- invalidate :: CanvasId -> MainCoroutine ()
- invalidateInBBox :: Maybe BBox -> DrawFlag -> CanvasId -> MainCoroutine ()
- invalidateAllInBBox :: Maybe BBox -> DrawFlag -> MainCoroutine ()
- invalidateAll :: MainCoroutine ()
- invalidateCurrent :: MainCoroutine ()
- invalidateTemp :: CanvasId -> Surface -> Render () -> MainCoroutine ()
- invalidateTempBasePage :: CanvasId -> Surface -> PageNum -> Render () -> MainCoroutine ()
- waitSomeEvent :: (UserEvent -> Bool) -> MainCoroutine UserEvent
- doIOaction_ :: IO a -> MainCoroutine ()
- defaultHandler :: (AllEvent -> IO ()) -> RendererEvent -> IO ()
- callRenderer :: Renderer RenderEvent -> MainCoroutine ()
- callRenderer_ :: Renderer a -> MainCoroutine ()
Documentation
nextevent :: MainCoroutine UserEvent Source #
all event
sysevent :: SystemEvent -> MainCoroutine () Source #
system event
updateFlagFromToggleUI Source #
:: String | UI toggle button id |
-> Simple Lens HoodleState Bool | lens for flag |
-> MainCoroutine Bool |
update flag in HoodleState when corresponding toggle UI changed
data DrawingFunctionSet Source #
invalidateGeneral :: CanvasId -> Maybe BBox -> DrawFlag -> DrawingFunction SinglePage EditMode -> DrawingFunction SinglePage SelectMode -> DrawingFunction ContinuousPage EditMode -> DrawingFunction ContinuousPage SelectMode -> MainCoroutine () Source #
invalidateOther :: MainCoroutine () Source #
invalidate :: CanvasId -> MainCoroutine () Source #
invalidate clear
:: Maybe BBox | desktop coord |
-> DrawFlag | |
-> CanvasId | |
-> MainCoroutine () |
:: Maybe BBox | desktop coordinate |
-> DrawFlag | |
-> MainCoroutine () |
invalidateAll :: MainCoroutine () Source #
invalidateCurrent :: MainCoroutine () Source #
Invalidate Current canvas
invalidateTemp :: CanvasId -> Surface -> Render () -> MainCoroutine () Source #
Drawing temporary gadgets
invalidateTempBasePage Source #
:: CanvasId | current canvas id |
-> Surface | temporary cairo surface |
-> PageNum | current page number |
-> Render () | temporary rendering function |
-> MainCoroutine () |
Drawing temporary gadgets with coordinate based on base page
waitSomeEvent :: (UserEvent -> Bool) -> MainCoroutine UserEvent Source #
doIOaction_ :: IO a -> MainCoroutine () Source #
defaultHandler :: (AllEvent -> IO ()) -> RendererEvent -> IO () Source #
callRenderer :: Renderer RenderEvent -> MainCoroutine () Source #
order rendering routine
callRenderer_ :: Renderer a -> MainCoroutine () Source #