2022-09-24 20:47:21 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../subbrute_custom_event.h"
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include "assets_icons.h"
|
|
|
|
#include <input/input.h>
|
|
|
|
#include <gui/elements.h>
|
|
|
|
#include <gui/icon.h>
|
|
|
|
|
|
|
|
typedef void (*SubBruteMainViewCallback)(SubBruteCustomEvent event, void* context);
|
|
|
|
typedef struct SubBruteMainView SubBruteMainView;
|
|
|
|
|
|
|
|
void subbrute_main_view_set_callback(
|
|
|
|
SubBruteMainView* instance,
|
|
|
|
SubBruteMainViewCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
|
|
|
SubBruteMainView* subbrute_main_view_alloc();
|
|
|
|
void subbrute_main_view_free(SubBruteMainView* instance);
|
|
|
|
View* subbrute_main_view_get_view(SubBruteMainView* instance);
|
2022-09-25 22:12:31 +03:00
|
|
|
void subbrute_main_view_set_index(
|
|
|
|
SubBruteMainView* instance,
|
|
|
|
uint8_t idx,
|
|
|
|
bool is_select_byte,
|
|
|
|
const char* key_field);
|
2022-09-24 20:47:21 +03:00
|
|
|
uint8_t subbrute_main_view_get_index(SubBruteMainView* instance);
|
|
|
|
void subbrute_attack_view_enter(void* context);
|
|
|
|
void subbrute_attack_view_exit(void* context);
|
|
|
|
bool subbrute_attack_view_input(InputEvent* event, void* context);
|
|
|
|
void subbrute_attack_view_draw(Canvas* canvas, void* context);
|