CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::plugin_manager::PluginInfoView Class Reference

#include <PluginInfoView.h>

Inheritance diagram for cdc::plugin_manager::PluginInfoView:
cdc::ui::InfoView cdc::ui::ViewBase cdc::ui::IView

Public Member Functions

bool loadForPluginId (const std::string &id)
Public Member Functions inherited from cdc::ui::InfoView
void init (const char *title, const char *text)
void setHint (const char *hint)
void setYesNoCallbacks (YesNoCallback onYes, YesNoCallback onNo, void *userData=nullptr)
void setOnMenu (MenuCallback onMenu, void *userData=nullptr)
void render (bool partial) override
 Renders the info view including title, body, scroll indicator, and footer.
InputResult onKey (char key) override
 Handles key input for scrolling and optional callbacks.
InputResult onLongPress (char key) override
 Long-press jumps to the first (KEY_UP) or last (KEY_DOWN) page.
const char * getName () const override
const char * getFooterHint () const override
 Returns the footer hint text.
Public Member Functions inherited from cdc::ui::ViewBase
virtual ~ViewBase ()=default
void onEnter (void *context) override
void onExit () override
void onResume () override
void onPause () override
void setLifecycleHooks (void(*onHide)(void *), void(*onShow)(void *), void *userData) override
bool needsRender () const override
void markDirty () override
void clearDirty () override
void setFooterHint (const char *hint) override
const char * getFooterHint () const override
Public Member Functions inherited from cdc::ui::IView
virtual ~IView ()=default
virtual bool prefersLightRefresh () const
virtual void onTick (uint32_t nowMs)

Additional Inherited Members

Public Types inherited from cdc::ui::InfoView
using YesNoCallback = void(*)(void* userData)
using MenuCallback = void(*)(void* userData)
Static Public Attributes inherited from cdc::ui::InfoView
static constexpr uint16_t MAX_TEXT_LEN = 2048
static constexpr uint8_t VISIBLE_LINES = 6
static constexpr uint8_t LINE_HEIGHT = 14
Protected Member Functions inherited from cdc::ui::ViewBase
void setTitle (const char *title)
const char * getTitle () const
Protected Attributes inherited from cdc::ui::ViewBase
bool dirty_ = true
const char * title_ = nullptr
const char * customFooter_ = nullptr
void(* onHide_ )(void *) = nullptr
void(* onShow_ )(void *) = nullptr
void * lifecycleUserData_ = nullptr

Detailed Description

Definition at line 14 of file PluginInfoView.h.

Member Function Documentation

◆ loadForPluginId()


The documentation for this class was generated from the following files: