Skip to content

Class MainPage

ClassList > MainPage

Inherits the following classes: daisy::UiPage

Public Types

Type Name
typedef daisy::Logger< daisy::LOGGER_EXTERNAL > Log

Public Functions

Type Name
void Draw (const daisy::UiCanvasDescriptor & canvasDescriptor) override
void Init ()
bool OnButton (uint16_t buttonID, uint8_t numberOfPresses, bool isRetriggering) override
bool OnPotMoved (uint16_t potID, float newPosition)
void OnShow ()

Public Types Documentation

typedef Log

using MainPage::Log =  daisy::Logger<daisy::LOGGER_EXTERNAL>;

Simple alias for logging StartLog() for the destination should have already been called before the page is opened.


Public Functions Documentation

function Draw

inline void MainPage::Draw (
    const daisy::UiCanvasDescriptor & canvasDescriptor
) override

function Init

inline void MainPage::Init () 

function OnButton

inline bool MainPage::OnButton (
    uint16_t buttonID,
    uint8_t numberOfPresses,
    bool isRetriggering
) override

function OnPotMoved

inline bool MainPage::OnPotMoved (
    uint16_t potID,
    float newPosition
) 

function OnShow

inline void MainPage::OnShow () 


The documentation for this class was generated from the following file external-docs/libDaisy/examples/devkits/Desktop-DevKit-UI-Template/src/main_page.h