Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Note - this module is a kludge whilst I work out a usable API.
- module Wumpus.Tree.OTMConnectors
- data TreeDirection
- = TREE_UP
- | TREE_DOWN
- | TREE_LEFT
- | TREE_RIGHT
- tree_direction :: TreeDirection -> TreePropsF u a
- runTreeLoc :: (Real u, Floating u, InterpretUnit u) => TreeProps u a -> (elt -> LocImage u a) -> Tree elt -> LocGraphic u
- standardTreeProps :: Fractional u => u -> u -> OTMAnchorConn u a -> TreeProps u a
Re-exports
module Wumpus.Tree.OTMConnectors
data TreeDirection Source
tree_direction :: TreeDirection -> TreePropsF u aSource
runTreeLoc :: (Real u, Floating u, InterpretUnit u) => TreeProps u a -> (elt -> LocImage u a) -> Tree elt -> LocGraphic uSource
Build a LocGraphic from a Data.Tree
.
Nodes support custom drawing as the value of the label at each node is interpreted (naturally, all node drawings must be of the same type).
Definitions
standardTreeProps :: Fractional u => u -> u -> OTMAnchorConn u a -> TreeProps u aSource