|
void | beginSession (MenuItem *navigatedBackwardFrom=nullptr) final |
| Begin an editing session with this menu item.
|
|
void | selectEncoderAction (int32_t offset) final |
| Handle select encoder movement.
|
|
void | readValueAgain () final |
| Re-read the value from the system and redraw the display to match.
|
|
MenuItem * | selectButtonPress () final |
| Handle a select button press.
|
|
uint8_t | shouldBlinkPatchingSourceShortcut (PatchSource s, uint8_t *colour) final |
|
void | drawPixelsForOled () final |
| Paints the pixels below the standard title block.
|
|
void | drawValue () |
|
void | renderOptions () |
|
void | blinkShortcuts () |
|
void | blinkShortcutsSoon () |
|
ActionResult | timerCallback () override |
| Handle a TimerName::UI_SPECIFIC event.
|
|
| MenuItem () |
|
| MenuItem (deluge::l10n::String newName, deluge::l10n::String newTitle=deluge::l10n::String::EMPTY_STRING) |
|
| MenuItem (const MenuItem &other)=delete |
|
| MenuItem (const MenuItem &&other)=delete |
|
|
int | scrollPos = 0 |
|
int32_t | savedVal = 0 |
|
int32_t | currentValue = 0 |
|
deluge::vector< std::string_view > | options |
|
PatchSource | blinkSrc = PatchSource::NOT_AVAILABLE |
|
PatchSource | blinkSrc2 = PatchSource::NOT_AVAILABLE |
|
deluge::l10n::String | title |
| Can get overridden by getTitle(). Actual max num chars for OLED display is 14.
|
|
const deluge::l10n::String | name |
| Default name for use on OLED for deluge::gui::menu_item::Submenu s.
|
|
|
static void | drawItemsForOled (std::span< std::string_view > options, int32_t selectedOption, int32_t offset=0) |
| Internal helper which can draw the standard deluge::gui::menu_item::Submenu layout.
|
|
◆ beginSession()
void deluge::gui::menu_item::PatchCables::beginSession |
( |
MenuItem * | navigatedBackwardFrom = nullptr | ) |
|
|
finalvirtual |
Begin an editing session with this menu item.
Should make sure the menu's internal state matches the system and redraw the display.
Reimplemented from MenuItem.
◆ drawPixelsForOled()
void deluge::gui::menu_item::PatchCables::drawPixelsForOled |
( |
| ) |
|
|
finalvirtual |
Paints the pixels below the standard title block.
Reimplemented from MenuItem.
◆ readValueAgain()
void deluge::gui::menu_item::PatchCables::readValueAgain |
( |
| ) |
|
|
finalvirtual |
Re-read the value from the system and redraw the display to match.
Reimplemented from MenuItem.
◆ selectButtonPress()
MenuItem * deluge::gui::menu_item::PatchCables::selectButtonPress |
( |
| ) |
|
|
finalvirtual |
Handle a select button press.
- Returns
NO_NAVIGATION
if the SoundEditor should stay on the current menu.
nullptr
if the SoundEditor should go up one level in the menu stack.
- otherwise, enter the returned menu.
Reimplemented from MenuItem.
◆ selectEncoderAction()
void deluge::gui::menu_item::PatchCables::selectEncoderAction |
( |
int32_t | offset | ) |
|
|
finalvirtual |
Handle select encoder movement.
Child classes which override this should be careful to handle offsets larger than 1, as holding shift and scrolling will increase them.
Reimplemented from MenuItem.
◆ shouldBlinkPatchingSourceShortcut()
uint8_t deluge::gui::menu_item::PatchCables::shouldBlinkPatchingSourceShortcut |
( |
PatchSource | s, |
|
|
uint8_t * | colour ) |
|
finalvirtual |
Get the frequency at which this pad should blink the given source.
- Parameters
-
colour | Output parameter for the colour to use when blinking. |
- Returns
- Blink time period (higher means more delay between flashes), or 255 if we shouldn't blink.
Reimplemented from MenuItem.
◆ timerCallback()
ActionResult deluge::gui::menu_item::PatchCables::timerCallback |
( |
| ) |
|
|
overridevirtual |
Handle a TimerName::UI_SPECIFIC event.
Reimplemented from MenuItem.
The documentation for this class was generated from the following files:
- src/deluge/gui/menu_item/patch_cables.h
- src/deluge/gui/menu_item/patch_cables.cpp