@@ -2,6 +2,39 @@ module Graphics.Element where
2{-| Graphical elements that snap together to build complex widgets and layouts.
2{-| Graphical elements that snap together to build complex widgets and layouts.
3Each Element is a rectangle with a known width and height, making them easy to
3Each Element is a rectangle with a known width and height, making them easy to
4combine and position.
4combine and position.
7+@docs image, fittedImage, croppedImage, tiledImage
10+@docs width, height, size, color, opacity, link, tag
13+@docs widthOf, heightOf, sizeOf
16+@docs flow, up, down, left, right, inward, outward
19+There are also some convenience functions for working
20+with `flow` in specific cases:
22+@docs layers, above, below, beside
25+@docs spacer, container
29+To create a `Position` you can use any of the built-in positions
30+which cover nine common positions.
31+@docs middle, midTop, midBottom, midLeft, midRight, topLeft, topRight,
32+ bottomLeft, bottomRight
34+If you need more precision, you can create custom positions.
36+@docs absolute, relative, middleAt, midTopAt, midBottomAt, midLeftAt,
37+ midRightAt, topLeftAt, topRightAt, bottomLeftAt, bottomRightAt
7import open Basics
40import open Basics