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