Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data VColor
- white :: VColor
- cream :: VColor
- black :: VColor
- lightBlue :: VColor
- lightBlueGreen :: VColor
- lightGray :: VColor
- mediumGray :: VColor
- darkGray :: VColor
- yellow :: VColor
- darkBlueGreen :: VColor
- blueGreen :: VColor
- data Style = Style {
- styleFont :: VFont
- lineWidth :: Double
- textMargin :: Double
- hpad, vpad :: Double
- exomargin :: Double
- vtinypad :: (Double, Double)
- styleFramePad :: Double
- styleNormalTextColor, styleNormalFillColor, styleNormalEdgeColor, styleActiveTextColor, styleActiveFillColor, styleActiveEdgeColor, styleSelectedTextColor, styleSelectedFillColor, styleSelectedEdgeColor, styleTetherColor :: VColor
- styleAuxOffset :: Position
- styleAuxColor :: VColor
- styleAuxFont :: VFont
- styleIoletRadius :: Double
- styleShowNodeBoxes :: Bool
- styleShowNodePorts :: Bool
- data VFont = VFont {}
- defaultStyle :: Style
- style0 :: Style
- style1 :: Style
- style2 :: Style
- style3 :: Style
- wstyle :: Style
- styleIncreasePadding :: Style -> Double -> Style
- data FontTextExtents = FontTextExtents {}
- setFont :: VFont -> Render ()
- measureText :: Style -> String -> Size
- styleTextExtents :: Style -> String -> FontTextExtents
- ftExtents :: String -> Render FontTextExtents
- data TextBox = TextBox {}
- makeTextBox :: Style -> String -> TextBox
- tbWidth :: TextBox -> Double
- tbHeight :: TextBox -> Double
- tbBottom :: TextBox -> Double
- tbCenter :: TextBox -> Position
- tbTextCenter :: TextBox -> Position
- tbBoxCenter :: TextBox -> Position
- offsetTextBoxCenters :: Position -> TextBox -> TextBox -> TextBox
- tbSetWidth :: TextBox -> Double -> TextBox
- treeSizes :: Style -> Tree (GNode e) -> Tree Size
- data GNode e = GNode {
- gnodeValue :: e
- gnodeTextBoxes :: [TextBox]
- gnodeNodeBB :: BBox
- gnodeInlets :: [Iolet]
- gnodeOutlets :: [Iolet]
- treeGNodes :: Repr e => Style -> IoletCounter e -> Tree e -> Tree (GNode e)
- gnodeText :: GNode e -> String
- gnodeTextBB :: GNode e -> BBox
- newtype Iolet = Iolet Circle
- ioletCenter :: Iolet -> Position
- makeIolets :: Style -> BBox -> (Int, Int) -> ([Iolet], [Iolet])
- makeIoletsRow :: Style -> Double -> Double -> Int -> [Iolet]
- pointInIolet :: Position -> Iolet -> Bool
- type IoletCounter e = e -> (Int, Int)
- zeroIoletCounter :: IoletCounter e
- makeGNode :: Repr e => Style -> IoletCounter e -> e -> GNode e
- type TreeLayout e = Tree (LayoutNode e)
- data LayoutNode e = LayoutNode {
- nodeGNode :: GNode e
- nodeTreeBB :: BBox
- layoutNodeSource :: LayoutNode e -> e
- layoutRootBB :: TreeLayout e -> BBox
- layoutTreeBB :: TreeLayout e -> BBox
- treeLayout :: Repr e => Style -> IoletCounter e -> Tree e -> TreeLayout e
- treeLayoutPaddedSize :: Style -> TreeLayout e -> Size
- treeLayoutSize :: TreeLayout e -> Size
- treeLayoutWidth :: TreeLayout e -> Double
- layoutTreeMoveCenterTo :: Double -> Double -> TreeLayout e -> TreeLayout e
- pointInLayoutNode :: Position -> LayoutNode e -> Bool
- pointInGNode :: Position -> GNode e -> Bool
- findRect :: Position -> TreeLayout e -> Maybe Rectangle
- treeLayoutWiden :: TreeLayout e -> Double -> TreeLayout e
Documentation
VFont | |
|
styleIncreasePadding :: Style -> Double -> Style Source
data FontTextExtents Source
FontTextExtents | |
|
measureText :: Style -> String -> Size Source
styleTextExtents :: Style -> String -> FontTextExtents Source
ftExtents :: String -> Render FontTextExtents Source
ftExtents: used for what?
makeTextBox :: Style -> String -> TextBox Source
tbTextCenter :: TextBox -> Position Source
tbBoxCenter :: TextBox -> Position Source
tbSetWidth :: TextBox -> Double -> TextBox Source
GNode | |
|
treeGNodes :: Repr e => Style -> IoletCounter e -> Tree e -> Tree (GNode e) Source
gnodeTextBB :: GNode e -> BBox Source
An Iolet is a circular port. Other shapes could be added.
ioletCenter :: Iolet -> Position Source
pointInIolet :: Position -> Iolet -> Bool Source
type IoletCounter e = e -> (Int, Int) Source
type TreeLayout e = Tree (LayoutNode e) Source
data LayoutNode e Source
LayoutNode | |
|
Eq e => Eq (LayoutNode e) Source | |
Show e => Show (LayoutNode e) Source | |
Translate (LayoutNode e) Source | |
Widen (LayoutNode e) Source | |
Repr e => Repr (LayoutNode e) Source | |
Draw (LayoutNode e) Source |
layoutNodeSource :: LayoutNode e -> e Source
layoutRootBB :: TreeLayout e -> BBox Source
layoutTreeBB :: TreeLayout e -> BBox Source
treeLayout :: Repr e => Style -> IoletCounter e -> Tree e -> TreeLayout e Source
treeLayoutPaddedSize :: Style -> TreeLayout e -> Size Source
treeLayoutSize :: TreeLayout e -> Size Source
treeLayoutWidth :: TreeLayout e -> Double Source
layoutTreeMoveCenterTo :: Double -> Double -> TreeLayout e -> TreeLayout e Source
pointInLayoutNode :: Position -> LayoutNode e -> Bool Source
pointInGNode :: Position -> GNode e -> Bool Source
treeLayoutWiden :: TreeLayout e -> Double -> TreeLayout e Source