gui, navigate over freqs

This commit is contained in:
aanper
2020-10-18 07:10:15 +03:00
parent 568143537d
commit 737ee2b0bf
3 changed files with 164 additions and 43 deletions

View File

@@ -13,7 +13,9 @@ typedef struct {
FlipperStartupApp* app;
} AppLoaderContext;
void render_callback(CanvasApi* canvas, void* _ctx) {
// TODO add mutex for contex
static void render_callback(CanvasApi* canvas, void* _ctx) {
AppLoaderState* ctx = (AppLoaderState*)_ctx;
canvas->clear(canvas);
@@ -25,7 +27,7 @@ void render_callback(CanvasApi* canvas, void* _ctx) {
canvas->draw_str(canvas, 2, 44, "press back to exit");
}
void input_callback(InputEvent* input_event, void* _ctx) {
static void input_callback(InputEvent* input_event, void* _ctx) {
AppLoaderState* ctx = (AppLoaderState*)_ctx;
if(input_event->state && input_event->input == InputBack) {
@@ -34,7 +36,7 @@ void input_callback(InputEvent* input_event, void* _ctx) {
}
}
void handle_menu(void* _ctx) {
static void handle_menu(void* _ctx) {
AppLoaderContext* ctx = (AppLoaderContext*)_ctx;
widget_enabled_set(ctx->state->widget, true);