Copyright | (c) 2011, 2012 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- data BBox = BBox {
- bbox_upperleft :: (Double, Double)
- bbox_lowerright :: (Double, Double)
- data StrokeBBox = StrokeBBox {}
- type TLayerBBox = GLayer [] StrokeBBox
- type TPageBBox = GPage Background [] TLayerBBox
- type TXournalBBox = GXournal [] TPageBBox
- mkbbox :: [Pair Double Double] -> BBox
- mkbboxF :: (Foldable m, Functor m) => m (Double, Double) -> BBox
- bboxFromStroke :: Stroke -> BBox
- dimToBBox :: Dimension -> BBox
- xformBBox :: ((Double, Double) -> (Double, Double)) -> BBox -> BBox
- inflate :: BBox -> Double -> BBox
- moveBBoxToOrigin :: BBox -> BBox
- moveBBoxByOffset :: (Double, Double) -> BBox -> BBox
- moveBBoxULCornerTo :: (Double, Double) -> BBox -> BBox
- intersectBBox :: BBox -> BBox -> Maybe BBox
- unionBBox :: BBox -> BBox -> BBox
- data ULMaybe a
- newtype IntersectBBox = Intersect {}
- newtype UnionBBox = Union {}
- class Maybeable a where
- mkStrokeBBoxFromStroke :: Stroke -> StrokeBBox
- strokeFromStrokeBBox :: StrokeBBox -> Stroke
Documentation
bounding box type
BBox | |
|
data StrokeBBox Source
type TLayerBBox = GLayer [] StrokeBBox Source
type TPageBBox = GPage Background [] TLayerBBox Source
type TXournalBBox = GXournal [] TPageBBox Source
bboxFromStroke :: Stroke -> BBox Source
moveBBoxToOrigin :: BBox -> BBox Source
newtype IntersectBBox Source