2021-09-28 09:40:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
2022-01-02 21:39:56 +00:00
|
|
|
#include "desktop_events.h"
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
typedef struct DesktopMainView DesktopMainView;
|
|
|
|
|
2022-01-02 21:39:56 +00:00
|
|
|
typedef void (*DesktopMainViewCallback)(DesktopEvent event, void* context);
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
void desktop_main_set_callback(
|
|
|
|
DesktopMainView* main_view,
|
|
|
|
DesktopMainViewCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
|
|
|
View* desktop_main_get_view(DesktopMainView* main_view);
|
2022-09-16 21:43:21 +00:00
|
|
|
void desktop_main_set_dummy_mode_state(DesktopMainView* main_view, bool dummy_mode);
|
2021-09-28 09:40:39 +00:00
|
|
|
DesktopMainView* desktop_main_alloc();
|
|
|
|
void desktop_main_free(DesktopMainView* main_view);
|