2021-09-28 12:40:39 +03: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 03:12:30 +03:00
|
|
|
DesktopFirstStartPoweroff,
|
2021-09-28 12:40:39 +03:00
|
|
|
} DesktopFirstStartEvent;
|
|
|
|
|
|
|
|
typedef struct DesktopFirstStartView DesktopFirstStartView;
|
|
|
|
|
|
|
|
typedef void (*DesktopFirstStartViewCallback)(DesktopFirstStartEvent event, void* context);
|
|
|
|
|
2021-11-16 03:12:30 +03:00
|
|
|
DesktopFirstStartView* desktop_first_start_alloc();
|
2021-09-28 12:40:39 +03:00
|
|
|
|
2021-11-16 03:12:30 +03:00
|
|
|
void desktop_first_start_free(DesktopFirstStartView* main_view);
|
|
|
|
|
|
|
|
View* desktop_first_start_get_view(DesktopFirstStartView* main_view);
|
2021-09-28 12:40:39 +03:00
|
|
|
|
|
|
|
void desktop_first_start_set_callback(
|
|
|
|
DesktopFirstStartView* main_view,
|
|
|
|
DesktopFirstStartViewCallback callback,
|
|
|
|
void* context);
|