Copyright | (c) 2012-2016 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- data ZoomMode
- data ViewMode
- newtype PageNum = PageNum {}
- newtype ScreenCoordinate = ScrCoord {
- unScrCoord :: (Double, Double)
- newtype CanvasCoordinate = CvsCoord {
- unCvsCoord :: (Double, Double)
- newtype DesktopCoordinate = DeskCoord {
- unDeskCoord :: (Double, Double)
- newtype PageCoordinate = PageCoord {
- unPageCoord :: (Double, Double)
- newtype ScreenDimension = ScreenDimension {}
- newtype CanvasDimension = CanvasDimension {}
- newtype CanvasOrigin = CanvasOrigin {
- unCanvasOrigin :: (Double, Double)
- newtype PageOrigin = PageOrigin {
- unPageOrigin :: (Double, Double)
- newtype PageDimension = PageDimension {}
- newtype DesktopDimension = DesktopDimension {}
- newtype ViewPortBBox = ViewPortBBox {}
- apply :: (BBox -> BBox) -> ViewPortBBox -> ViewPortBBox
- xformViewPortFitInSize :: Dimension -> (BBox -> BBox) -> ViewPortBBox -> ViewPortBBox
- data PageArrangement a where
- getRatioPageCanvas :: ZoomMode -> PageDimension -> CanvasDimension -> (Double, Double)
- makeSingleArrangement :: ZoomMode -> PageDimension -> CanvasDimension -> (Double, Double) -> PageArrangement SinglePage
- data DesktopConstraint = DesktopWidthConstrained Double
- makeContinuousArrangement :: ZoomMode -> CanvasDimension -> Hoodle EditMode -> (PageNum, PageCoordinate) -> PageArrangement ContinuousPage
- pageArrFuncCont :: DesktopConstraint -> Hoodle EditMode -> PageNum -> Maybe (PageOrigin, PageDimension)
- deskDimCont :: DesktopConstraint -> Hoodle EditMode -> DesktopDimension
- pageDimension :: Simple Lens (PageArrangement a) PageDimension
- canvasDimension :: Simple Lens (PageArrangement a) CanvasDimension
- viewPortBBox :: Simple Lens (PageArrangement a) ViewPortBBox
- desktopDimension :: Simple Lens (PageArrangement a) DesktopDimension
Documentation
supported zoom modes
newtype ScreenCoordinate Source #
ScrCoord | |
|
newtype CanvasCoordinate Source #
CvsCoord | |
|
newtype DesktopCoordinate Source #
DeskCoord | |
|
newtype PageCoordinate Source #
PageCoord | |
|
newtype ScreenDimension Source #
newtype CanvasDimension Source #
newtype CanvasOrigin Source #
newtype PageDimension Source #
newtype DesktopDimension Source #
apply :: (BBox -> BBox) -> ViewPortBBox -> ViewPortBBox Source #
xformViewPortFitInSize :: Dimension -> (BBox -> BBox) -> ViewPortBBox -> ViewPortBBox Source #
data PageArrangement a where Source #
data structure for coordinate arrangement of pages in desktop coordinate
getRatioPageCanvas :: ZoomMode -> PageDimension -> CanvasDimension -> (Double, Double) Source #
makeSingleArrangement :: ZoomMode -> PageDimension -> CanvasDimension -> (Double, Double) -> PageArrangement SinglePage Source #
makeContinuousArrangement :: ZoomMode -> CanvasDimension -> Hoodle EditMode -> (PageNum, PageCoordinate) -> PageArrangement ContinuousPage Source #
pageArrFuncCont :: DesktopConstraint -> Hoodle EditMode -> PageNum -> Maybe (PageOrigin, PageDimension) Source #