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