Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- splitVDrag :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) => m () -> m a -> m b -> m (a, b)
- splitV :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) => Dynamic t (Int -> Int) -> Dynamic t (Bool, Bool) -> m a -> m b -> m (a, b)
- splitH :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) => Dynamic t (Int -> Int) -> Dynamic t (Bool, Bool) -> m a -> m b -> m (a, b)
Documentation
splitVDrag :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) => m () -> m a -> m b -> m (a, b) Source #
A split of the available space into two parts with a draggable separator. Starts with half the space allocated to each, and the first pane has focus. Clicking in a pane switches focus.
:: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) | |
=> Dynamic t (Int -> Int) | Function used to determine size of first pane based on available size |
-> Dynamic t (Bool, Bool) | How to focus the two sub-panes, given that we are focused. |
-> m a | Widget for first pane |
-> m b | Widget for second pane |
-> m (a, b) |
A plain split of the available space into vertically stacked panes. No visual separator is built in here.
:: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) | |
=> Dynamic t (Int -> Int) | Function used to determine size of first pane based on available size |
-> Dynamic t (Bool, Bool) | How to focus the two sub-panes, given that we are focused. |
-> m a | Widget for first pane |
-> m b | Widget for second pane |
-> m (a, b) |
A plain split of the available space into horizontally stacked panes. No visual separator is built in here.