| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.Threepenny.Editors.Layout
Description
A custom layout engine and combinators.
- class Renderable w where
- data Layout where
- 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 #
Closely related to Widget, this class represents types that can be rendered to an Element, either directly or via Layout.
Instances
| Renderable String # | |
| Renderable TextEntry # | |
| Renderable Element # | |
| Renderable Columns # | |
| Renderable Horizontal # | |
| Renderable Vertical # | |
| Renderable Layout # | |
| Renderable (ListBox a) # | |
| Renderable a => Renderable (UI a) # | |
| (Renderable a, Renderable b) => Renderable ((-*-) a b) # | |
| (Renderable a, Renderable b) => Renderable ((|*|) a b) # | |
| Renderable w => Renderable (EditorCollection k w) # | |
| Renderable el => Renderable (GenericWidget el a) # | |
Layout engine
A rathe limited, grid layout builder, probably not fit for general purpose use yet.
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 monoidal layout builder that places everything in a single column
Constructors
| Vertical | |
Fields | |
vertical :: Renderable w => w -> Vertical #
newtype Horizontal #
A monoidal layout builder that places everything in a single row
Constructors
| Horizontal | |
Fields | |
Instances
horizontal :: Renderable w => w -> Horizontal #
Columns
A monoidal layout builder that lays elements in columns
Type level layouts
Type level Horizontal layouts
Constructors
| a :|*| b |
Instances
| Bifoldable (|*|) # | |
| Bifunctor (|*|) # | |
| Biapplicative (|*|) # | |
| Generic ((|*|) a b) # | |
| HasDatatypeInfo ((|*|) a b) # | |
| (HasEmpty a, HasEmpty b) => HasEmpty ((|*|) a b) # | |
| (Renderable a, Renderable b) => Renderable ((|*|) a b) # | |
| (Editable a, Editable b) => Editable ((|*|) a b) # | |
| type Code ((|*|) a b) # | |
| type DatatypeInfoOf ((|*|) a b) # | |
| type EditorWidget ((|*|) a b) # | |
| type ListEditorWidget ((|*|) a b) # | |
Type level Vertical layouts
Constructors
| a :-*- b |
Instances
| Bifoldable (-*-) # | |
| Bifunctor (-*-) # | |
| Biapplicative (-*-) # | |
| Generic ((-*-) a b) # | |
| HasDatatypeInfo ((-*-) a b) # | |
| (HasEmpty a, HasEmpty b) => HasEmpty ((-*-) a b) # | |
| (Renderable a, Renderable b) => Renderable ((-*-) a b) # | |
| (Editable a, Editable b) => Editable ((-*-) a b) # | |
| type Code ((-*-) a b) # | |
| type DatatypeInfoOf ((-*-) a b) # | |
| type EditorWidget ((-*-) a b) # | |
| type ListEditorWidget ((-*-) a b) # | |