Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- data DrawFlag
- = Clear
- | BkgEfficient
- | Efficient
- type family DrawingFunction v :: * -> *
- newtype SinglePageDraw a = SinglePageDraw {
- unSinglePageDraw :: Bool -> (DrawingArea, Maybe Surface) -> (PageNum, Page a) -> ViewInfo SinglePage -> Maybe BBox -> DrawFlag -> IO (Page a)
- newtype ContPageDraw a = ContPageDraw {
- unContPageDraw :: Bool -> CanvasInfo ContinuousPage -> Maybe BBox -> Hoodle a -> DrawFlag -> IO (Hoodle a)
- getCanvasViewPort :: CanvasGeometry -> ViewPortBBox
- getBBoxInPageCoord :: CanvasGeometry -> PageNum -> BBox -> BBox
- getViewableBBox :: CanvasGeometry -> Maybe BBox -> IntersectBBox
- virtualDoubleBufferDraw :: MonadIO m => Surface -> Surface -> Render () -> Render () -> m ()
- doubleBufferFlush :: ViewMode a => Surface -> CanvasInfo a -> IO ()
- doubleBufferDraw :: (DrawWindow, Maybe Surface) -> CanvasGeometry -> Render () -> Render a -> IntersectBBox -> IO (Maybe a)
- cairoXform4PageCoordinate :: CanvasGeometry -> PageNum -> Render ()
- data PressureMode
- = NoPressure
- | Pressure
- drawCurvebitGen :: PressureMode -> (DrawingArea, Maybe Surface) -> CanvasGeometry -> Double -> (Double, Double, Double, Double) -> PageNum -> ((Double, Double), Double) -> ((Double, Double), Double) -> IO ()
- drawFuncGen :: em -> ((PageNum, Page em) -> Maybe BBox -> DrawFlag -> Render (Page em)) -> DrawingFunction SinglePage em
- drawFuncSelGen :: ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render ()) -> ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render ()) -> DrawingFunction SinglePage SelectMode
- emphasisCanvasRender :: PenColor -> CanvasGeometry -> Render ()
- emphasisPageRender :: CanvasGeometry -> (PageNum, Page EditMode) -> Render ()
- drawContPageGen :: ((PageNum, Page EditMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page EditMode)) -> DrawingFunction ContinuousPage EditMode
- drawContPageSelGen :: ((PageNum, Page EditMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page EditMode)) -> ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page SelectMode)) -> DrawingFunction ContinuousPage SelectMode
- drawSinglePage :: DrawingFunction SinglePage EditMode
- drawSinglePageSel :: CanvasGeometry -> DrawingFunction SinglePage SelectMode
- drawContHoodle :: DrawingFunction ContinuousPage EditMode
- drawContHoodleSel :: CanvasGeometry -> DrawingFunction ContinuousPage SelectMode
- cairoHittedBoxDraw :: CanvasGeometry -> Page SelectMode -> Maybe BBox -> Render ()
- renderLasso :: CanvasGeometry -> Seq (Double, Double) -> Render ()
- renderBoxSelection :: BBox -> Render ()
- renderSelectedStroke :: BBoxed Stroke -> Render ()
- renderSelectedItem :: RItem -> Render ()
- canvas2DesktopRatio :: CanvasGeometry -> Double
- renderSelectHandle :: CanvasGeometry -> BBox -> Render ()
- renderPanZoomWidget :: Maybe BBox -> CanvasCoordinate -> Render ()
- canvasImageSurface :: Maybe Double -> CanvasGeometry -> Hoodle EditMode -> IO (Surface, Dimension)
Documentation
type family DrawingFunction v :: * -> *Source
newtype SinglePageDraw a Source
SinglePageDraw | |
|
newtype ContPageDraw a Source
ContPageDraw | |
|
getBBoxInPageCoord :: CanvasGeometry -> PageNum -> BBox -> BBoxSource
:: CanvasGeometry | |
-> Maybe BBox | in desktop coordinate |
-> IntersectBBox |
virtualDoubleBufferDraw :: MonadIO m => Surface -> Surface -> Render () -> Render () -> m ()Source
double buffering within two image surfaces
doubleBufferFlush :: ViewMode a => Surface -> CanvasInfo a -> IO ()Source
doubleBufferDraw :: (DrawWindow, Maybe Surface) -> CanvasGeometry -> Render () -> Render a -> IntersectBBox -> IO (Maybe a)Source
common routine for double buffering
cairoXform4PageCoordinate :: CanvasGeometry -> PageNum -> Render ()Source
drawCurvebitGen :: PressureMode -> (DrawingArea, Maybe Surface) -> CanvasGeometry -> Double -> (Double, Double, Double, Double) -> PageNum -> ((Double, Double), Double) -> ((Double, Double), Double) -> IO ()Source
drawFuncGen :: em -> ((PageNum, Page em) -> Maybe BBox -> DrawFlag -> Render (Page em)) -> DrawingFunction SinglePage emSource
drawFuncSelGen :: ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render ()) -> ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render ()) -> DrawingFunction SinglePage SelectModeSource
emphasisCanvasRender :: PenColor -> CanvasGeometry -> Render ()Source
emphasisPageRender :: CanvasGeometry -> (PageNum, Page EditMode) -> Render ()Source
drawContPageGen :: ((PageNum, Page EditMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page EditMode)) -> DrawingFunction ContinuousPage EditModeSource
drawContPageSelGen :: ((PageNum, Page EditMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page EditMode)) -> ((PageNum, Page SelectMode) -> Maybe BBox -> DrawFlag -> Render (Int, Page SelectMode)) -> DrawingFunction ContinuousPage SelectModeSource
cairoHittedBoxDraw :: CanvasGeometry -> Page SelectMode -> Maybe BBox -> Render ()Source
renderLasso :: CanvasGeometry -> Seq (Double, Double) -> Render ()Source
renderBoxSelection :: BBox -> Render ()Source
renderSelectedStroke :: BBoxed Stroke -> Render ()Source
renderSelectedItem :: RItem -> Render ()Source
renderSelectHandle :: CanvasGeometry -> BBox -> Render ()Source
renderPanZoomWidget :: Maybe BBox -> CanvasCoordinate -> Render ()Source