mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 13:33:06 +00:00
b3d8f0b950
* Power: change power_off signature to match implementation * Desktop: auto power off on first start screen and with ok button. Co-authored-by: SG <who.just.the.doctor@gmail.com>
27 lines
718 B
C
27 lines
718 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 {
|
|
DesktopFirstStartCompleted,
|
|
DesktopFirstStartPoweroff,
|
|
} DesktopFirstStartEvent;
|
|
|
|
typedef struct DesktopFirstStartView DesktopFirstStartView;
|
|
|
|
typedef void (*DesktopFirstStartViewCallback)(DesktopFirstStartEvent event, void* context);
|
|
|
|
DesktopFirstStartView* desktop_first_start_alloc();
|
|
|
|
void desktop_first_start_free(DesktopFirstStartView* main_view);
|
|
|
|
View* desktop_first_start_get_view(DesktopFirstStartView* main_view);
|
|
|
|
void desktop_first_start_set_callback(
|
|
DesktopFirstStartView* main_view,
|
|
DesktopFirstStartViewCallback callback,
|
|
void* context);
|