hoodle-types-0.3.0: Data types for programs for hoodle file format

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

Data.Hoodle.BBox

Description

 

Synopsis

Documentation

data BBox Source

bounding box type

Constructors

BBox 

class GetBBoxable a where Source

Methods

getBBox :: a -> BBox Source

Instances

data BBoxed a Source

Constructors

BBoxed 

Fields

bbxed_content :: a
 
bbxed_bbx :: BBox
 

Instances

Eq a => Eq (BBoxed a) 
Ord a => Ord (BBoxed a) 
Show a => Show (BBoxed a) 
GetBBoxable (BBoxed a) 

xformBBox :: ((Double, Double) -> (Double, Double)) -> BBox -> BBox Source

general transform BBox

inflate :: BBox -> Double -> BBox Source

inflate bbox by amount r

data ULMaybe a Source

Constructors

Bottom 
Middle a 
Top 

Instances

Eq a => Eq (ULMaybe a) 
Show a => Show (ULMaybe a) 

class Maybeable a where Source

Associated Types

type ElemType a :: * Source

Methods

toMaybe :: a -> Maybe (ElemType a) Source

fromMaybe :: Maybe (ElemType a) -> a Source