| Copyright | (c) Paul Schnapp 2023 |
|---|---|
| License | BSD3 |
| Maintainer | Paul Schnapp <paul.schnapp@gmail.com> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
FULE.Container
Description
A typeclass for creating containers of visual content.
Documentation
class Monad m => Container c k m where Source #
A typeclass for laying-out a container of type c that holds content of
type k.
You'll need to have the FlexibleInstances and MultiParamTypeClasses
language extensions enabled to use this and you may wish to have your
instance use the {-# OVERLAPS #-} or {-# OVERLAPPING #-} pragmas.
Methods
minWidth :: c -> Proxy k -> m (Maybe Int) Source #
Get the minimum width required for display of the container c.
minHeight :: c -> Proxy k -> m (Maybe Int) Source #
Get the minimum height required for display of the container c.
addToLayout :: c -> Proxy k -> Bounds -> RenderGroup -> LayoutOp k m () Source #
Add the container c and its contents k to a LayoutDesign.