| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.Threepenny.Editors.Layout
- class Renderable w where
- data Layout = Grid (Seq (Seq Layout))
- beside :: Layout -> Layout -> Layout
- above :: Layout -> Layout -> Layout
- newtype Vertical = Vertical {}
- vertical :: Renderable w => w -> Vertical
- newtype Horizontal = Horizontal {}
- horizontal :: Renderable w => w -> Horizontal
- data Columns
- data a |*| b = a :|*| b
- data a -*- b = a :-*- b
Renderableable widgets
class Renderable w where Source #
Instances
| Renderable String Source # | |
| Renderable TextEntry Source # | |
| Renderable Element Source # | |
| Renderable Columns Source # | |
| Renderable Horizontal Source # | |
| Renderable Vertical Source # | |
| Renderable Layout Source # | |
| Renderable (ListBox a) Source # | |
| Renderable a => Renderable (UI a) Source # | |
| (Renderable a, Renderable b) => Renderable ((-*-) a b) Source # | |
| (Renderable a, Renderable b) => Renderable ((|*|) a b) Source # | |
| Renderable el => Renderable (GenericWidget el a) Source # | |
Layout engine
Constructors
| Grid (Seq (Seq Layout)) | A non empty list of rows, where all the rows are assumed to have the same length |
Instances
Layout monoids
Flat
A layout monoid that places everything in a single column
Constructors
| Vertical | |
Fields | |
vertical :: Renderable w => w -> Vertical Source #
newtype Horizontal Source #
A layout monoid that places everything in a single row
Constructors
| Horizontal | |
Fields | |
Instances
horizontal :: Renderable w => w -> Horizontal Source #
Columns
A layout monoid that lays elements in columns
Type level layouts
Type level Horizontal layouts
Constructors
| a :|*| b |
Instances
| Bifunctor (|*|) Source # | |
| Biapplicative (|*|) Source # | |
| Bifoldable (|*|) Source # | |
| (Renderable a, Renderable b) => Renderable ((|*|) a b) Source # | |
Type level Vertical layouts
Constructors
| a :-*- b |
Instances
| Bifunctor (-*-) Source # | |
| Biapplicative (-*-) Source # | |
| Bifoldable (-*-) Source # | |
| (Renderable a, Renderable b) => Renderable ((-*-) a b) Source # | |