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.View.Draw

Description

 

Synopsis

Documentation

getViewableBBox Source #

Arguments

:: CanvasGeometry 
-> Maybe BBox

in desktop coordinate

-> IntersectBBox 

virtualDoubleBufferDraw :: MonadIO m => Surface -> Surface -> Render () -> Render () -> m () Source #

double buffering within two image surfaces

doubleBufferDraw :: (DrawWindow, Maybe Surface) -> CanvasGeometry -> Render a -> IntersectBBox -> IO (Maybe a) Source #

common routine for double buffering

emphasisPageRender :: CanvasGeometry -> (PageNum, Page EditMode) -> Render () Source #

highlight current page

emphasisNotifiedRender :: CanvasGeometry -> (PageNum, BBox, RItem) -> Render () Source #

highlight notified item (like link)