Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- drawListOverlay :: ListOverlayState a b -> (b -> Widget Name) -> (b -> Widget Name) -> (b -> Widget Name) -> (Bool -> a -> Widget Name) -> Maybe (Widget Name) -> OverlayPosition -> Int -> Widget Name
- data OverlayPosition
Documentation
:: ListOverlayState a b | The overlay state |
-> (b -> Widget Name) | The function to build the window title from the current search scope |
-> (b -> Widget Name) | The function to generate a message for the search scope indicating that no results were found |
-> (b -> Widget Name) | The function to generate the editor prompt for the search scope |
-> (Bool -> a -> Widget Name) | The function to render an item from the overlay's list |
-> Maybe (Widget Name) | The footer widget to render underneath the search results |
-> OverlayPosition | How to position the overlay layer |
-> Int | The maximum window width in columns |
-> Widget Name |
Draw a ListOverlayState. This draws a bordered box with the overlay's search input and results list inside the box. The provided functions determine how to render the overlay in various states.
data OverlayPosition Source #
Instances
Eq OverlayPosition Source # | |
Defined in Matterhorn.Draw.ListOverlay (==) :: OverlayPosition -> OverlayPosition -> Bool # (/=) :: OverlayPosition -> OverlayPosition -> Bool # | |
Show OverlayPosition Source # | |
Defined in Matterhorn.Draw.ListOverlay showsPrec :: Int -> OverlayPosition -> ShowS # show :: OverlayPosition -> String # showList :: [OverlayPosition] -> ShowS # |