mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-16 18:07:13 +03:00
14bd8f2c49
OFW PR 1739 by nminaylov
19 lines
547 B
C
19 lines
547 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "desktop_events.h"
|
|
|
|
typedef struct DesktopMainView DesktopMainView;
|
|
|
|
typedef void (*DesktopMainViewCallback)(DesktopEvent event, void* context);
|
|
|
|
void desktop_main_set_callback(
|
|
DesktopMainView* main_view,
|
|
DesktopMainViewCallback callback,
|
|
void* context);
|
|
|
|
View* desktop_main_get_view(DesktopMainView* main_view);
|
|
void desktop_main_set_dummy_mode_state(DesktopMainView* main_view, bool dummy_mode);
|
|
DesktopMainView* desktop_main_alloc();
|
|
void desktop_main_free(DesktopMainView* main_view);
|