mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-01 00:39:12 +00:00
1c4e6ec74d
* refactoring p1 * refactoring p2 * cleanups * locked screen refresh rate fix * better locked view logic * seperate dolphin service and desktop app * Desktop: Favorite app acess (Left key), Settings app * Desktop settings version, submenu header * remove unused icon anomation + naming fix Co-authored-by: あく <alleteam@gmail.com>
38 lines
965 B
C
38 lines
965 B
C
#pragma once
|
|
|
|
#include <gui/gui_i.h>
|
|
#include <gui/view.h>
|
|
#include <gui/canvas.h>
|
|
#include <gui/elements.h>
|
|
#include <furi.h>
|
|
|
|
typedef enum {
|
|
DesktopHwMismatchEventExit,
|
|
} DesktopHwMismatchEvent;
|
|
|
|
typedef struct DesktopHwMismatchView DesktopHwMismatchView;
|
|
|
|
typedef void (*DesktopHwMismatchViewCallback)(DesktopHwMismatchEvent event, void* context);
|
|
|
|
struct DesktopHwMismatchView {
|
|
View* view;
|
|
DesktopHwMismatchViewCallback callback;
|
|
void* context;
|
|
};
|
|
|
|
typedef struct {
|
|
IconAnimation* animation;
|
|
uint8_t scene_num;
|
|
uint8_t hint_timeout;
|
|
bool locked;
|
|
} DesktopHwMismatchViewModel;
|
|
|
|
void desktop_hw_mismatch_set_callback(
|
|
DesktopHwMismatchView* hw_mismatch_view,
|
|
DesktopHwMismatchViewCallback callback,
|
|
void* context);
|
|
|
|
View* desktop_hw_mismatch_get_view(DesktopHwMismatchView* hw_mismatch_view);
|
|
|
|
DesktopHwMismatchView* desktop_hw_mismatch_alloc();
|
|
void desktop_hw_mismatch_free(DesktopHwMismatchView* hw_mismatch_view);
|