mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 02:41:36 +03:00
1b78418f9f
* GUI: view. Flooper-blooper fix compilation error. * GUI: view and viewdispatcher bones * GUI: view implementation, view models, view dispatcher * GUI: view navigation, model refinement. Power: use view, view dispatcher. * HAL Flash: proper page write. Dolphin: views. Power: views * Dolphin: transition idle scree to Views * Dolphin: input events on stats view. Format sources. * HAL: flash erase. Dolphin: permanent state storage. * Dolphin: first start welcome. HAL: flash operation status, errata 2.2.9 crutch.
34 lines
932 B
C
34 lines
932 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <gui/canvas.h>
|
|
#include <flipper_v2.h>
|
|
|
|
// Idle scree
|
|
typedef enum {
|
|
DolphinViewFirstStart,
|
|
DolphinViewIdleMain,
|
|
DolphinViewIdleStats,
|
|
DolphinViewIdleDebug,
|
|
} DolphinViewIdle;
|
|
|
|
typedef struct {
|
|
uint32_t page;
|
|
} DolphinViewFirstStartModel;
|
|
|
|
void dolphin_view_first_start_draw(Canvas* canvas, void* model);
|
|
bool dolphin_view_first_start_input(InputEvent* event, void* context);
|
|
|
|
typedef struct {
|
|
uint32_t icounter;
|
|
uint32_t butthurt;
|
|
} DolphinViewIdleStatsModel;
|
|
|
|
void dolphin_view_idle_main_draw(Canvas* canvas, void* model);
|
|
bool dolphin_view_idle_main_input(InputEvent* event, void* context);
|
|
void dolphin_view_idle_stats_draw(Canvas* canvas, void* model);
|
|
bool dolphin_view_idle_stats_input(InputEvent* event, void* context);
|
|
void dolphin_view_idle_debug_draw(Canvas* canvas, void* model);
|
|
uint32_t dolphin_view_idle_back(void* context);
|