mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 14:22:27 +03:00
f5dff83595
* now shows failed login attempt count * fixed the memory leaking * made some text changes * removed second allocation of the furi string * cleaned up code * Changed Position of the Wrong Attempts Text + It removes if you typed an arrow * aligned text to the center and switched to furi_string_reset insted of furi_string_set_str("") * fixed weird behavior * Desktop: cleanup pin scene code, better reporting on transition between states Co-authored-by: あく <alleteam@gmail.com>
46 lines
1.9 KiB
C
46 lines
1.9 KiB
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include <desktop/desktop_settings.h>
|
|
|
|
typedef void (*DesktopViewPinInputCallback)(void*);
|
|
typedef void (*DesktopViewPinInputDoneCallback)(const PinCode* pin_code, void*);
|
|
typedef struct DesktopViewPinInput DesktopViewPinInput;
|
|
|
|
DesktopViewPinInput* desktop_view_pin_input_alloc(void);
|
|
void desktop_view_pin_input_free(DesktopViewPinInput*);
|
|
|
|
void desktop_view_pin_input_set_pin(DesktopViewPinInput* pin_input, const PinCode* pin);
|
|
void desktop_view_pin_input_reset_pin(DesktopViewPinInput* pin_input);
|
|
void desktop_view_pin_input_hide_pin(DesktopViewPinInput* pin_input, bool pin_hidden);
|
|
void desktop_view_pin_input_set_label_button(DesktopViewPinInput* pin_input, const char* label);
|
|
void desktop_view_pin_input_set_label_primary(
|
|
DesktopViewPinInput* pin_input,
|
|
uint8_t x,
|
|
uint8_t y,
|
|
const char* label);
|
|
void desktop_view_pin_input_set_label_secondary(
|
|
DesktopViewPinInput* pin_input,
|
|
uint8_t x,
|
|
uint8_t y,
|
|
const char* label);
|
|
void desktop_view_pin_input_set_label_tertiary(
|
|
DesktopViewPinInput* pin_input,
|
|
uint8_t x,
|
|
uint8_t y,
|
|
const char* label);
|
|
void desktop_view_pin_input_set_pin_position(DesktopViewPinInput* pin_input, uint8_t x, uint8_t y);
|
|
View* desktop_view_pin_input_get_view(DesktopViewPinInput*);
|
|
void desktop_view_pin_input_set_done_callback(
|
|
DesktopViewPinInput* pin_input,
|
|
DesktopViewPinInputDoneCallback callback);
|
|
void desktop_view_pin_input_set_back_callback(
|
|
DesktopViewPinInput* pin_input,
|
|
DesktopViewPinInputCallback callback);
|
|
void desktop_view_pin_input_set_timeout_callback(
|
|
DesktopViewPinInput* pin_input,
|
|
DesktopViewPinInputCallback callback);
|
|
void desktop_view_pin_input_set_context(DesktopViewPinInput* pin_input, void* context);
|
|
void desktop_view_pin_input_lock_input(DesktopViewPinInput* pin_input);
|
|
void desktop_view_pin_input_unlock_input(DesktopViewPinInput* pin_input);
|