atlas-0: Skyline rectangle packing

Copyright(c) 2019 Edward Kmett
LicenseBSD-2-Clause OR Apache-2.0
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Atlas.Internal

Description

Details of the implementation.

The contents of this module do not fall under the PVP. Use at your own risk.

Synopsis

Documentation

newtype Atlas s Source #

Constructors

Atlas (ForeignPtr AtlasContext) 
Instances
Eq (Atlas s) Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

(==) :: Atlas s -> Atlas s -> Bool #

(/=) :: Atlas s -> Atlas s -> Bool #

Ord (Atlas s) Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

compare :: Atlas s -> Atlas s -> Ordering #

(<) :: Atlas s -> Atlas s -> Bool #

(<=) :: Atlas s -> Atlas s -> Bool #

(>) :: Atlas s -> Atlas s -> Bool #

(>=) :: Atlas s -> Atlas s -> Bool #

max :: Atlas s -> Atlas s -> Atlas s #

min :: Atlas s -> Atlas s -> Atlas s #

Show (Atlas s) Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

showsPrec :: Int -> Atlas s -> ShowS #

show :: Atlas s -> String #

showList :: [Atlas s] -> ShowS #

data Heuristic Source #

Constructors

BottomLeft

bottom-left sort-height

BestFirst

best first sort-height

Instances
Bounded Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Enum Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Eq Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Ord Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Read Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Show Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Ix Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Lift Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

lift :: Heuristic -> Q Exp #

Default Heuristic Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

def :: Heuristic

data Pt Source #

Use and cast back and forth to ints instead for more natural API?

Constructors

Pt Int Int 
Instances
Eq Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

(==) :: Pt -> Pt -> Bool #

(/=) :: Pt -> Pt -> Bool #

Num Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

(+) :: Pt -> Pt -> Pt #

(-) :: Pt -> Pt -> Pt #

(*) :: Pt -> Pt -> Pt #

negate :: Pt -> Pt #

abs :: Pt -> Pt #

signum :: Pt -> Pt #

fromInteger :: Integer -> Pt #

Ord Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

compare :: Pt -> Pt -> Ordering #

(<) :: Pt -> Pt -> Bool #

(<=) :: Pt -> Pt -> Bool #

(>) :: Pt -> Pt -> Bool #

(>=) :: Pt -> Pt -> Bool #

max :: Pt -> Pt -> Pt #

min :: Pt -> Pt -> Pt #

Read Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Show Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

showsPrec :: Int -> Pt -> ShowS #

show :: Pt -> String #

showList :: [Pt] -> ShowS #

Lift Pt Source # 
Instance details

Defined in Data.Atlas.Internal

Methods

lift :: Pt -> Q Exp #

pokeWH :: Ptr Rect -> Pt -> IO () Source #

atlasCtx :: Context Source #