28 void onEnter(
void* context =
nullptr)
override;
31 void render(
bool partial)
override;
32 bool needsRender()
const override {
return list_.needsRender(); }
36 const char*
getName()
const override {
return "PluginListView"; }
48 static
void onSelectStatic(uint16_t index,
void* userData);
49 static
void onMenuStatic(uint16_t index,
void* userData);
50 void onSelect(uint16_t index);
51 void onMenu(uint16_t index);
53 cdc::
ui::ListView list_;
54 std::vector<std::
string> ids_;
55 std::vector<std::
string> labels_;
56 std::vector<
cdc::
ui::ListItem> items_;
In-memory representation of a plugin's meta.json.
void markDirty() override
static PluginListView * active() noexcept
Currently-mounted PluginListView instance, or nullptr if none.
const char * getFooterHint() const override
void clearDirty() override
void onEnter(void *context=nullptr) override
const char * getName() const override
void render(bool partial) override
cdc::ui::InputResult onKey(char key) override
bool needsRender() const override
Centralized key-code constants for cdc_views.