Make debug view scrollable
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include <mvp/View.hpp>
|
||||
#include <gui/debugview_screen/DebugViewPresenter.hpp>
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/containers/scrollers/ScrollList.hpp>
|
||||
#include <touchgfx/containers/scrollers/ScrollWheel.hpp>
|
||||
#include <gui/containers/DebugViewLine.hpp>
|
||||
#include <touchgfx/widgets/canvas/Line.hpp>
|
||||
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
|
||||
@ -24,6 +24,19 @@ public:
|
||||
{
|
||||
// Override and implement this function in DebugView
|
||||
}
|
||||
virtual void handleKeyEvent(uint8_t key);
|
||||
|
||||
/*
|
||||
* Virtual Action Handlers
|
||||
*/
|
||||
virtual void scrollUp()
|
||||
{
|
||||
// Override and implement this function in DebugView
|
||||
}
|
||||
virtual void scrollDown()
|
||||
{
|
||||
// Override and implement this function in DebugView
|
||||
}
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
@ -34,7 +47,7 @@ protected:
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::Box __background;
|
||||
touchgfx::ScrollList list;
|
||||
touchgfx::ScrollWheel list;
|
||||
touchgfx::DrawableListItems<DebugViewLine, 13> listListItems;
|
||||
touchgfx::Line line1;
|
||||
touchgfx::PainterRGB565 line1Painter;
|
||||
|
||||
Reference in New Issue
Block a user