combine with desktop project
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
18
components/justus/include/MenuOptions.h
Normal file
18
components/justus/include/MenuOptions.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "u8g2.h"
|
||||
#include "common/Widget.h"
|
||||
|
||||
class Widget;
|
||||
|
||||
typedef struct {
|
||||
u8g2_t* u8g2;
|
||||
|
||||
std::function<void(std::shared_ptr<Widget>)> setScreen;
|
||||
std::function<void(std::shared_ptr<Widget>)> pushScreen;
|
||||
std::function<void()> popScreen;
|
||||
|
||||
std::function<void(uint8_t button)> onButtonClicked;
|
||||
} menu_options_t;
|
Reference in New Issue
Block a user