List state. Lists have a container t of element type e that is
the data stored by the list. When using the event-handling functions
provided by this module, Lists handle the following events:
Up/down arrow keys: move cursor of selected item
Page up / page down keys: move cursor of selected item by one page at a time (based on the number of items shown)
Home/end keys: move cursor of selected item to beginning or end of list
Movement key behaviors (and their corresponding list transformation
functions) are subject to wrapping if the list's wrapping is enabled;
in that case, attempts to move the selection beyond either end of the
list will wrap the selection to the opposite end of the list. When
wrapping is disabled, attempts to move beyond either end of the list
will move the selection as far as possible without wrapping around
to the opposite end. To control whether wrapping is enabled, see
setScrollWrap.
The List type synonym fixes t to Vector for compatibility
with previous versions of this library.
For a container type to be usable with GenericList, it must have
instances of Traversable and Splittable. The following functions
impose further constraints:
listInsert: Applicative and SemigrouplistRemove: SemigrouplistClear: MonoidlistReverse:Reversible
Instances7Functor, Foldable, Traversable, Show, Generic, Named, …
Functor t => Functor (GenericList n t)Defined in brick-3.0 · Brick.Widgets.ListFoldable t => Foldable (GenericList n t)Defined in brick-3.0 · Brick.Widgets.ListTraversable t => Traversable (GenericList n t)Defined in brick-3.0 · Brick.Widgets.List(Show n, Show (t e)) => Show (GenericList n t e)Defined in brick-3.0 · Brick.Widgets.ListGeneric (GenericList n t e)Defined in brick-3.0 · Brick.Widgets.ListNamed (GenericList n t e) nDefined in brick-3.0 · Brick.Widgets.Listtype Rep (GenericList n t e) = D1 ('MetaDataDefined in brick-3.0 · Brick.Widgets.List"GenericList"
"Brick.Widgets.List"
"brick-3.0-9vdblQp8wLMBrmfkXNAnlD"
'False) (C1 ('MetaCons"List"
'PrefixI 'True) ((S1 ('MetaSel ('Just"listElements"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (t e)) :*: S1 ('MetaSel ('Just"listSelected"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just"listName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 n) :*: (S1 ('MetaSel ('Just"listItemHeight"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just"listScrollWrap"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))