Loading...
Searching...
No Matches
desktop_view_lock_menu.h
1#pragma once
2
3#include <gui/view.h>
4#include "desktop_events.h"
5
6#define HINT_TIMEOUT 2
7
9
10typedef void (*DesktopLockMenuViewCallback)(DesktopEvent event, void* context);
11
13 View* view;
14 DesktopLockMenuViewCallback callback;
15 void* context;
16};
17
18typedef struct {
19 uint8_t idx;
20 bool dummy_mode;
21 bool stealth_mode;
23
24void desktop_lock_menu_set_callback(
25 DesktopLockMenuView* lock_menu,
26 DesktopLockMenuViewCallback callback,
27 void* context);
28
29View* desktop_lock_menu_get_view(DesktopLockMenuView* lock_menu);
30void desktop_lock_menu_set_dummy_mode_state(DesktopLockMenuView* lock_menu, bool dummy_mode);
31void desktop_lock_menu_set_stealth_mode_state(DesktopLockMenuView* lock_menu, bool stealth_mode);
32void desktop_lock_menu_set_idx(DesktopLockMenuView* lock_menu, uint8_t idx);
33DesktopLockMenuView* desktop_lock_menu_alloc(void);
34void desktop_lock_menu_free(DesktopLockMenuView* lock_menu);
Definition desktop_view_lock_menu.h:12
Definition desktop_view_lock_menu.h:18
Definition view_i.h:16
GUI: View API.