Copyright | (c) Paul Schnapp 2023 |
---|---|
License | BSD3 |
Maintainer | Paul Schnapp <paul.schnapp@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A Container
that is divided in half, horizontally or vertically.
Synopsis
- data Divided s b u
- type BarControlGen b = Orientation -> GuideID -> b
- data Dynamics b
- dynamic :: BarControlGen b -> Int -> Dynamics b
- static :: Dynamics b
- sizedTop :: SizedContentSize Int -> Dynamics b -> s -> u -> Divided s b u
- sizedLeft :: SizedContentSize Int -> Dynamics b -> s -> u -> Divided s b u
- sizedRight :: SizedContentSize Int -> Dynamics b -> s -> u -> Divided s b u
- sizedBottom :: SizedContentSize Int -> Dynamics b -> s -> u -> Divided s b u
Documentation
A container divided (horizontally or vertically) into two parts with one of the parts having a set size (height or width) and the other part resizing dynamically.
When configured to be resizable, the resize bar's size is not included in the size of the sized content during layout but is treated as an additional size to be considered.
type BarControlGen b Source #
= Orientation | The orientation of the resize bar; a |
-> GuideID | A Guide associated with the resize bar that should be updated with a delta when the bar is moved. |
-> b | The bar component to be added to the layout. |
Type of a function to produce a Component
for controlling
the resize bar, thus leaving the mechanics and presentation up to you.
A specification of whether the sized portion of the container should be resizable and how the resize bar, if any, should be sized and controlled.
:: BarControlGen b | A function to generate a |
-> Int | The thickness of the resize bar |
-> Dynamics b |
Use a dynamic sizing, with a resize bar, for the sized portion of the container.
:: SizedContentSize Int | The size of the sized content. |
-> Dynamics b | The dynamics of the |
-> s | The sized content. |
-> u | The dynamic content. |
-> Divided s b u |
Create a Divided
container with the top portion having a particular size.
:: SizedContentSize Int | The size of the sized content. |
-> Dynamics b | The dynamics of the |
-> s | The sized content. |
-> u | The dynamic content. |
-> Divided s b u |
Create a Divided
container with the left portion having a particular size.
:: SizedContentSize Int | The size of the sized content. |
-> Dynamics b | The dynamics of the |
-> s | The sized content. |
-> u | The dynamic content. |
-> Divided s b u |
Create a Divided
container with the right portion having a particular size.
:: SizedContentSize Int | The size of the sized content. |
-> Dynamics b | The dynamics of the |
-> s | The sized content. |
-> u | The dynamic content. |
-> Divided s b u |
Create a Divided
container with the bottom portion having a particular size.