Flipper Developer Docs
Loading...
Searching...
No Matches
byte_input.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
gui/view.h
>
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
15
typedef
struct
ByteInput
ByteInput
;
16
18
typedef
void (*
ByteInputCallback
)(
void
* context);
19
21
typedef
void (*
ByteChangedCallback
)(
void
* context);
22
27
ByteInput
*
byte_input_alloc
(
void
);
28
33
void
byte_input_free
(
ByteInput
* byte_input);
34
41
View
*
byte_input_get_view
(
ByteInput
* byte_input);
42
52
void
byte_input_set_result_callback
(
53
ByteInput
* byte_input,
54
ByteInputCallback
input_callback,
55
ByteChangedCallback
changed_callback,
56
void
* callback_context,
57
uint8_t* bytes,
58
uint8_t bytes_count);
59
65
void
byte_input_set_header_text
(
ByteInput
* byte_input,
const
char
* text);
66
67
#ifdef __cplusplus
68
}
69
#endif
byte_input_set_result_callback
void byte_input_set_result_callback(ByteInput *byte_input, ByteInputCallback input_callback, ByteChangedCallback changed_callback, void *callback_context, uint8_t *bytes, uint8_t bytes_count)
Set byte input result callback.
Definition
services/gui/modules/byte_input.c:845
byte_input_get_view
View * byte_input_get_view(ByteInput *byte_input)
Get byte input view.
Definition
services/gui/modules/byte_input.c:840
ByteChangedCallback
void(* ByteChangedCallback)(void *context)
callback that is executed when byte buffer is changed
Definition
byte_input.h:21
ByteInputCallback
void(* ByteInputCallback)(void *context)
callback that is executed on save button press
Definition
byte_input.h:18
byte_input_free
void byte_input_free(ByteInput *byte_input)
Deinitialize and free byte input.
Definition
services/gui/modules/byte_input.c:834
byte_input_set_header_text
void byte_input_set_header_text(ByteInput *byte_input, const char *text)
Set byte input header text.
Definition
services/gui/modules/byte_input.c:868
byte_input_alloc
ByteInput * byte_input_alloc(void)
Allocate and initialize byte input.
Definition
services/gui/modules/byte_input.c:811
ByteInput
ByteInput type.
Definition
services/gui/modules/byte_input.c:8
View
Definition
view_i.h:16
view.h
GUI: View API.
applications
services
gui
modules
byte_input.h
Generated by
1.12.0