| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Termtab.UI.Widgets.TrackPanel
Description
The per-track panel stacked into Termtab.UI's main layout: a header
naming the track (highlighted when it's the focused/current track) plus
its content, laid out according to the track's DisplayMode. Chooses
between the rasterized Bravura notation image
(Termtab.UI.NotationGraphics) and the plain-text Unicode staff
(Termtab.UI.Widgets.Notation) depending on whether graphics blitting
is actually available in the current terminal.
Synopsis
- renderTrackPanel :: AppState -> TrackIndex -> Track -> Widget ResourceName
- focusedTrackAttr :: AttrName
Documentation
renderTrackPanel :: AppState -> TrackIndex -> Track -> Widget ResourceName Source #
Render one track's panel. A Standard (non-fretted) instrument is
always forced to NotationOnly regardless of its stored DisplayMode
(there's no tab to show for it); every other track respects
asDisplayModes, falling back to defaultModeFor if the track has no
entry there yet.
focusedTrackAttr :: AttrName Source #
Attribute name for a track header when it's the focused track.