2021-09-28 09:40:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/gui_i.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/canvas.h>
|
|
|
|
#include <gui/elements.h>
|
|
|
|
#include <furi.h>
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DesktopFirstStartCompleted,
|
2021-11-16 00:12:30 +00:00
|
|
|
DesktopFirstStartPoweroff,
|
2021-09-28 09:40:39 +00:00
|
|
|
} DesktopFirstStartEvent;
|
|
|
|
|
|
|
|
typedef struct DesktopFirstStartView DesktopFirstStartView;
|
|
|
|
|
|
|
|
typedef void (*DesktopFirstStartViewCallback)(DesktopFirstStartEvent event, void* context);
|
|
|
|
|
2021-11-16 00:12:30 +00:00
|
|
|
DesktopFirstStartView* desktop_first_start_alloc();
|
2021-09-28 09:40:39 +00:00
|
|
|
|
2021-11-16 00:12:30 +00:00
|
|
|
void desktop_first_start_free(DesktopFirstStartView* main_view);
|
|
|
|
|
|
|
|
View* desktop_first_start_get_view(DesktopFirstStartView* main_view);
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
void desktop_first_start_set_callback(
|
|
|
|
DesktopFirstStartView* main_view,
|
|
|
|
DesktopFirstStartViewCallback callback,
|
|
|
|
void* context);
|