Copyright | (c) Paul Schnapp 2023 |
---|---|
License | BSD3 |
Maintainer | Paul Schnapp <paul.schnapp@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A Container
to position content relative to its parent
container, including in the center.
Synopsis
- data Positioned c
- topLeft :: c -> Positioned c
- topMiddle :: c -> Positioned c
- topRight :: c -> Positioned c
- middleLeft :: c -> Positioned c
- centered :: c -> Positioned c
- middleRight :: c -> Positioned c
- bottomLeft :: c -> Positioned c
- bottomMiddle :: c -> Positioned c
- bottomRight :: c -> Positioned c
Documentation
data Positioned c Source #
A container for positioning content within a larger container in one of nine positions relative to the parent. Relative positioning will adjust to keep up with changes to the size of the parent container.
Instances
Container c k m => Container (Positioned c) k m Source # | |
Defined in FULE.Container.Positioned minWidth :: Positioned c -> Proxy k -> m (Maybe Int) Source # minHeight :: Positioned c -> Proxy k -> m (Maybe Int) Source # addToLayout :: Positioned c -> Proxy k -> Bounds -> RenderGroup -> LayoutOp k m () Source # |
topLeft :: c -> Positioned c Source #
Position content in the top-left corner of its parent container.
topMiddle :: c -> Positioned c Source #
Position content in the middle of the top side of its parent container.
topRight :: c -> Positioned c Source #
Position content in the top-right corner of its parent container.
middleLeft :: c -> Positioned c Source #
Position content in the middle of the left side of its parent container.
centered :: c -> Positioned c Source #
Position content in the very center of its parent container.
middleRight :: c -> Positioned c Source #
Position content in the middle of the right side of its parent container.
bottomLeft :: c -> Positioned c Source #
Position content in the bottom-left corner of its parent container.
bottomMiddle :: c -> Positioned c Source #
Position content in the middle of the bottom side of its parent container.
bottomRight :: c -> Positioned c Source #
Position content in the bottom-right corner of its parent container.