Loading...
Searching...
No Matches
desktop_view_pin_input.h
1#pragma once
2
3#include <gui/view.h>
4
5#include "../helpers/pin_code.h"
6
7typedef void (*DesktopViewPinInputCallback)(void*);
8typedef void (*DesktopViewPinInputDoneCallback)(const DesktopPinCode* pin_code, void*);
10
11DesktopViewPinInput* desktop_view_pin_input_alloc(void);
12void desktop_view_pin_input_free(DesktopViewPinInput*);
13
14void desktop_view_pin_input_set_pin(DesktopViewPinInput* pin_input, const DesktopPinCode* pin_code);
15void desktop_view_pin_input_reset_pin(DesktopViewPinInput* pin_input);
16void desktop_view_pin_input_hide_pin(DesktopViewPinInput* pin_input, bool pin_hidden);
17void desktop_view_pin_input_set_label_button(DesktopViewPinInput* pin_input, const char* label);
18void desktop_view_pin_input_set_label_primary(
19 DesktopViewPinInput* pin_input,
20 uint8_t x,
21 uint8_t y,
22 const char* label);
23void desktop_view_pin_input_set_label_secondary(
24 DesktopViewPinInput* pin_input,
25 uint8_t x,
26 uint8_t y,
27 const char* label);
28void desktop_view_pin_input_set_label_tertiary(
29 DesktopViewPinInput* pin_input,
30 uint8_t x,
31 uint8_t y,
32 const char* label);
33void desktop_view_pin_input_set_pin_position(DesktopViewPinInput* pin_input, uint8_t x, uint8_t y);
34View* desktop_view_pin_input_get_view(DesktopViewPinInput*);
35void desktop_view_pin_input_set_done_callback(
36 DesktopViewPinInput* pin_input,
37 DesktopViewPinInputDoneCallback callback);
38void desktop_view_pin_input_set_back_callback(
39 DesktopViewPinInput* pin_input,
40 DesktopViewPinInputCallback callback);
41void desktop_view_pin_input_set_timeout_callback(
42 DesktopViewPinInput* pin_input,
43 DesktopViewPinInputCallback callback);
44void desktop_view_pin_input_set_context(DesktopViewPinInput* pin_input, void* context);
45void desktop_view_pin_input_lock_input(DesktopViewPinInput* pin_input);
46void desktop_view_pin_input_unlock_input(DesktopViewPinInput* pin_input);
Definition pin_code.h:9
Definition desktop_view_pin_input.c:19
Definition view_i.h:16
GUI: View API.