| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hledger.UI.RegisterScreen
Synopsis
- rsNew :: UIOpts -> Day -> Journal -> AccountName -> Bool -> Screen
- rsUpdate :: UIOpts -> Day -> Journal -> RegisterScreenState -> RegisterScreenState
- rsDraw :: UIState -> [Widget Name]
- rsHandle :: BrickEvent Name AppEvent -> EventM Name UIState ()
- rsSetAccount :: AccountName -> Bool -> Screen -> Screen
- rsCenterSelection :: UIState -> EventM Name UIState UIState
Documentation
rsNew :: UIOpts -> Day -> Journal -> AccountName -> Bool -> Screen Source #
Construct a register screen listing the appropriate set of transactions, with the appropriate one selected. Screen-specific arguments: the account whose register this is, whether to force inclusive balances.
rsUpdate :: UIOpts -> Day -> Journal -> RegisterScreenState -> RegisterScreenState Source #
Update a register screen from these options, reporting date, and journal.
rsSetAccount :: AccountName -> Bool -> Screen -> Screen Source #