hoodle-core-0.16.0: Core library for hoodle

Copyright(c) 2011-2016 Ian-Woo Kim
LicenseBSD3
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Hoodle.Coroutine.Draw

Description

 

Synopsis

Documentation

sysevent :: SystemEvent -> MainCoroutine () Source #

system event

updateFlagFromToggleUI Source #

Arguments

:: String

UI toggle button id

-> Simple Lens HoodleState Bool

lens for flag

-> MainCoroutine Bool 

update flag in HoodleState when corresponding toggle UI changed

invalidate :: CanvasId -> MainCoroutine () Source #

invalidate clear

invalidateInBBox Source #

Arguments

:: Maybe BBox

desktop coord

-> DrawFlag 
-> CanvasId 
-> MainCoroutine () 

invalidateAllInBBox Source #

Arguments

:: Maybe BBox

desktop coordinate

-> DrawFlag 
-> MainCoroutine () 

invalidateCurrent :: MainCoroutine () Source #

Invalidate Current canvas

invalidateTemp :: CanvasId -> Surface -> Render () -> MainCoroutine () Source #

Drawing temporary gadgets

invalidateTempBasePage Source #

Arguments

:: 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

callRenderer :: Renderer RenderEvent -> MainCoroutine () Source #

order rendering routine