Kestrel Interface
Loading...
Searching...
No Matches
kest_ui.c File Reference
#include "kest_int.h"

Go to the source code of this file.

Data Structures

struct  test_page_str

Macros

#define PRINTLINES_ALLOWED   0

Functions

 IMPLEMENT_LINKED_PTR_LIST (lv_obj_t)
int create_test_page_ui (kest_ui_page *page)
void init_test_page ()
int kest_ui_page_set_background_default (kest_ui_page *page)
int kest_init_global_pages (kest_global_pages *pages)
void init_global_bg (lv_disp_t *disp)
void kest_create_ui (lv_disp_t *disp)
int init_ui_page (kest_ui_page *page)
kest_ui_pagecreate_ui_page ()
int configure_ui_page (kest_ui_page *page, void *data)
int create_page_ui (kest_ui_page *page)
int enter_ui_page (kest_ui_page *page)
int enter_ui_page_forwards (kest_ui_page *page)
int enter_ui_page_backwards (kest_ui_page *page)
int enter_ui_page_indirect (kest_ui_page **_page)
int enter_ui_page_indirect_forwards (kest_ui_page **_page)
int enter_ui_page_backwardindirect_s (kest_ui_page **_page)
void enter_ui_page_cb (lv_event_t *e)
void enter_ui_page_forwards_cb (lv_event_t *e)
void enter_ui_page_backwards_cb (lv_event_t *e)
void enter_parent_page_cb (lv_event_t *e)
void kest_ui_page_return_to_parent (kest_ui_page *page)
int init_ui_page_panel_str (kest_ui_page_panel *panel)
int create_panel (kest_ui_page *page)
int set_panel_text (kest_ui_page *page, const char *text)
int set_panel_text_rw (kest_ui_page *page, const char *text)
int create_panel_rw_title (kest_ui_page *page, const char *text)
int create_panel_left_button (kest_ui_page *page, const char *button_text, lv_event_cb_t cb, void *cb_arg)
int create_panel_right_button (kest_ui_page *page, const char *button_text, lv_event_cb_t cb, void *cb_arg)
int create_panel_rw_title_and_left_button (kest_ui_page *page, const char *text, const char *left_button_text, lv_event_cb_t left_cb, void *left_cb_arg)
int create_panel_with_back_button (kest_ui_page *page)
int create_panel_with_back_and_settings_buttons (kest_ui_page *page, kest_ui_page *settings_page)
int create_panel_with_back_button_and_right_button (kest_ui_page *page, const char *right_button_text, lv_event_cb_t right_cb, void *cb_arg)
int create_panel_with_left_button (kest_ui_page *page, const char *left_button_text, lv_event_cb_t left_cb, void *cb_arg)
int create_panel_with_right_button (kest_ui_page *page, const char *right_button_text, lv_event_cb_t right_cb, void *cb_arg)
int create_panel_with_back_button_and_page_button (kest_ui_page *page, const char *right_button_text, kest_ui_page *right_button_page)
int create_panel_with_left_and_right_buttons (kest_ui_page *page, const char *left_button_text, lv_event_cb_t left_cb, void *left_cb_arg, const char *right_button_text, lv_event_cb_t right_cb, void *right_cb_arg)
void spawn_keyboard (lv_obj_t *parent, lv_obj_t *text_area, void(*ok_cb)(lv_event_t *), void *ok_arg, void(*cancel_cb)(lv_event_t *), void *cancel_arg)
void spawn_numerical_keyboard (lv_obj_t *parent, lv_obj_t *text_area, void(*ok_cb)(lv_event_t *), void *ok_arg, void(*cancel_cb)(lv_event_t *), void *cancel_arg)
void hide_keyboard ()
void hide_keyboard_cb (lv_event_t *e)
int create_standard_container (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_container_tall (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_menu_container (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_menu_container_tall (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_button_list (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_button_list_tall (lv_obj_t **cont, lv_obj_t *parent)
int create_standard_button_click (lv_obj_t **obj, lv_obj_t **label, lv_obj_t *parent, char *text, lv_event_cb_t click_cb, void *click_cb_arg)
int create_standard_button_click_short (lv_obj_t **obj, lv_obj_t **label, lv_obj_t *parent, char *text, lv_event_cb_t click_cb, void *click_cb_arg)
int create_standard_button_long_press_release (lv_obj_t **obj, lv_obj_t **label, lv_obj_t *parent, char *text, lv_event_cb_t press_cb, void *press_cb_arg, lv_event_cb_t release_cb, void *release_cb_arg)
int init_panel (kest_ui_page_panel *panel)
kest_ui_page_panelnew_panel ()
int ui_page_update_title (kest_ui_page *page, const char *text)
int ui_page_init_create_panel_label (kest_ui_page *page)
int ui_page_set_title (kest_ui_page *page, const char *text)
int ui_page_create_panel_ui (kest_ui_page *page)
int ui_page_add_back_button (kest_ui_page *page)
int ui_page_add_parent_button (kest_ui_page *page)
int ui_page_add_left_panel_button (kest_ui_page *page, const char *label, lv_event_cb_t cb)
int ui_page_add_right_panel_button (kest_ui_page *page, const char *label, lv_event_cb_t cb)
int ui_page_create_base_ui (kest_ui_page *page)
int ui_page_create_container (kest_ui_page *page)
int ui_page_create_bottom_buttons (kest_ui_page *page)
kest_buttonui_page_add_bottom_button (kest_ui_page *page, const char *label, lv_event_cb_t cb)
int ui_page_set_title_rw (kest_ui_page *page, lv_event_cb_t save_cb, lv_event_cb_t cancel_cb)

Variables

kest_ui_page test_page
lv_obj_t * keyboard

Macro Definition Documentation

◆ PRINTLINES_ALLOWED

#define PRINTLINES_ALLOWED   0

Definition at line 5 of file kest_ui.c.

Function Documentation

◆ configure_ui_page()

int configure_ui_page ( kest_ui_page * page,
void * data )

Definition at line 197 of file kest_ui.c.

Referenced by configure_menu_item(), and kest_create_ui().

Here is the caller graph for this function:

◆ create_page_ui()

int create_page_ui ( kest_ui_page * page)

Definition at line 226 of file kest_ui.c.

◆ create_panel()

int create_panel ( kest_ui_page * page)

Definition at line 514 of file kest_ui.c.

Referenced by create_panel_rw_title(), create_panel_rw_title_and_left_button(), create_panel_with_left_and_right_buttons(), and create_panel_with_left_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_panel_left_button()

int create_panel_left_button ( kest_ui_page * page,
const char * button_text,
lv_event_cb_t cb,
void * cb_arg )

Definition at line 612 of file kest_ui.c.

Referenced by create_panel_rw_title_and_left_button(), create_panel_with_left_and_right_buttons(), and create_panel_with_left_button().

Here is the caller graph for this function:

◆ create_panel_right_button()

int create_panel_right_button ( kest_ui_page * page,
const char * button_text,
lv_event_cb_t cb,
void * cb_arg )

Definition at line 634 of file kest_ui.c.

Referenced by create_panel_with_back_button_and_page_button(), create_panel_with_left_and_right_buttons(), and create_panel_with_right_button().

Here is the caller graph for this function:

◆ create_panel_rw_title()

int create_panel_rw_title ( kest_ui_page * page,
const char * text )

Definition at line 600 of file kest_ui.c.

Here is the call graph for this function:

◆ create_panel_rw_title_and_left_button()

int create_panel_rw_title_and_left_button ( kest_ui_page * page,
const char * text,
const char * left_button_text,
lv_event_cb_t left_cb,
void * left_cb_arg )

Definition at line 656 of file kest_ui.c.

Here is the call graph for this function:

◆ create_panel_with_back_and_settings_buttons()

int create_panel_with_back_and_settings_buttons ( kest_ui_page * page,
kest_ui_page * settings_page )

Definition at line 675 of file kest_ui.c.

Here is the call graph for this function:

◆ create_panel_with_back_button()

int create_panel_with_back_button ( kest_ui_page * page)

Definition at line 670 of file kest_ui.c.

Referenced by create_effect_selector_ui_eff(), create_panel_with_back_button_and_page_button(), and create_panel_with_right_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_panel_with_back_button_and_page_button()

int create_panel_with_back_button_and_page_button ( kest_ui_page * page,
const char * right_button_text,
kest_ui_page * right_button_page )

Definition at line 709 of file kest_ui.c.

Referenced by create_panel_with_back_and_settings_buttons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_panel_with_back_button_and_right_button()

int create_panel_with_back_button_and_right_button ( kest_ui_page * page,
const char * right_button_text,
lv_event_cb_t right_cb,
void * cb_arg )

Definition at line 680 of file kest_ui.c.

Here is the call graph for this function:

◆ create_panel_with_left_and_right_buttons()

int create_panel_with_left_and_right_buttons ( kest_ui_page * page,
const char * left_button_text,
lv_event_cb_t left_cb,
void * left_cb_arg,
const char * right_button_text,
lv_event_cb_t right_cb,
void * right_cb_arg )

Definition at line 721 of file kest_ui.c.

Referenced by create_panel_with_back_button_and_right_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_panel_with_left_button()

int create_panel_with_left_button ( kest_ui_page * page,
const char * left_button_text,
lv_event_cb_t left_cb,
void * cb_arg )

Definition at line 685 of file kest_ui.c.

Referenced by create_panel_with_back_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_panel_with_right_button()

int create_panel_with_right_button ( kest_ui_page * page,
const char * right_button_text,
lv_event_cb_t right_cb,
void * cb_arg )

Definition at line 697 of file kest_ui.c.

Here is the call graph for this function:

◆ create_standard_button_click()

int create_standard_button_click ( lv_obj_t ** obj,
lv_obj_t ** label,
lv_obj_t * parent,
char * text,
lv_event_cb_t click_cb,
void * click_cb_arg )

Definition at line 907 of file kest_ui.c.

Referenced by create_menu_item_ui().

Here is the caller graph for this function:

◆ create_standard_button_click_short()

int create_standard_button_click_short ( lv_obj_t ** obj,
lv_obj_t ** label,
lv_obj_t * parent,
char * text,
lv_event_cb_t click_cb,
void * click_cb_arg )

Definition at line 928 of file kest_ui.c.

Referenced by create_effect_selector_button_ui_eff().

Here is the caller graph for this function:

◆ create_standard_button_list()

int create_standard_button_list ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 866 of file kest_ui.c.

Referenced by ui_page_create_container().

Here is the caller graph for this function:

◆ create_standard_button_list_tall()

int create_standard_button_list_tall ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 886 of file kest_ui.c.

Referenced by create_effect_selector_ui_eff(), and ui_page_create_container().

Here is the caller graph for this function:

◆ create_standard_button_long_press_release()

int create_standard_button_long_press_release ( lv_obj_t ** obj,
lv_obj_t ** label,
lv_obj_t * parent,
char * text,
lv_event_cb_t press_cb,
void * press_cb_arg,
lv_event_cb_t release_cb,
void * release_cb_arg )

Definition at line 949 of file kest_ui.c.

Referenced by create_menu_item_ui().

Here is the caller graph for this function:

◆ create_standard_container()

int create_standard_container ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 785 of file kest_ui.c.

Referenced by ui_page_create_container().

Here is the caller graph for this function:

◆ create_standard_container_tall()

int create_standard_container_tall ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 802 of file kest_ui.c.

Referenced by ui_page_create_container().

Here is the caller graph for this function:

◆ create_standard_menu_container()

int create_standard_menu_container ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 820 of file kest_ui.c.

Referenced by ui_page_create_container().

Here is the caller graph for this function:

◆ create_standard_menu_container_tall()

int create_standard_menu_container_tall ( lv_obj_t ** cont,
lv_obj_t * parent )

Definition at line 841 of file kest_ui.c.

Referenced by ui_page_create_container().

Here is the caller graph for this function:

◆ create_test_page_ui()

int create_test_page_ui ( kest_ui_page * page)

Definition at line 22 of file kest_ui.c.

Referenced by init_test_page().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_ui_page()

kest_ui_page * create_ui_page ( )

Definition at line 185 of file kest_ui.c.

Here is the call graph for this function:

◆ enter_parent_page_cb()

void enter_parent_page_cb ( lv_event_t * e)

Definition at line 468 of file kest_ui.c.

Referenced by create_panel_with_back_button(), create_panel_with_back_button_and_right_button(), ui_page_add_back_button(), and ui_page_add_parent_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ui_page()

int enter_ui_page ( kest_ui_page * page)

Definition at line 244 of file kest_ui.c.

Referenced by enter_main_menu_cb(), enter_ui_page_cb(), enter_ui_page_indirect(), kest_create_ui(), and kest_cxt_enter_previous_current_page().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ui_page_backwardindirect_s()

int enter_ui_page_backwardindirect_s ( kest_ui_page ** _page)

Definition at line 431 of file kest_ui.c.

Here is the call graph for this function:

◆ enter_ui_page_backwards()

int enter_ui_page_backwards ( kest_ui_page * page)

Definition at line 354 of file kest_ui.c.

Referenced by add_effect_from_menu_eff(), enter_parent_page_cb(), enter_ui_page_backwardindirect_s(), enter_ui_page_backwards_cb(), kest_ui_page_return_to_parent(), and profile_view_enter_main_menu_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ui_page_backwards_cb()

void enter_ui_page_backwards_cb ( lv_event_t * e)

Definition at line 459 of file kest_ui.c.

Here is the call graph for this function:

◆ enter_ui_page_cb()

void enter_ui_page_cb ( lv_event_t * e)

Definition at line 441 of file kest_ui.c.

Here is the call graph for this function:

◆ enter_ui_page_forwards()

int enter_ui_page_forwards ( kest_ui_page * page)

Definition at line 299 of file kest_ui.c.

Referenced by effect_view_enter_settings_cb(), enter_effect_selector_cb(), enter_ui_page_forwards_cb(), enter_ui_page_indirect_forwards(), menu_item_profile_listing_released_cb(), menu_item_sequence_listing_released_cb(), menu_page_link_clicked_cb(), profile_view_effect_click_cb(), profile_view_enter_settings_page_cb(), seq_view_clicked_cb(), and sequence_list_add_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ui_page_forwards_cb()

void enter_ui_page_forwards_cb ( lv_event_t * e)

Definition at line 450 of file kest_ui.c.

Referenced by configure_main_menu(), and create_panel_with_back_button_and_page_button().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ui_page_indirect()

int enter_ui_page_indirect ( kest_ui_page ** _page)

Definition at line 411 of file kest_ui.c.

Here is the call graph for this function:

◆ enter_ui_page_indirect_forwards()

int enter_ui_page_indirect_forwards ( kest_ui_page ** _page)

Definition at line 421 of file kest_ui.c.

Referenced by menu_page_link_clicked_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hide_keyboard()

void hide_keyboard ( )

Definition at line 769 of file kest_ui.c.

Referenced by profile_view_revert_name(), profile_view_save_name(), sequence_view_revert_name(), sequence_view_set_name(), sw_field_cancel_cb(), and sw_field_save_cb().

Here is the caller graph for this function:

◆ hide_keyboard_cb()

void hide_keyboard_cb ( lv_event_t * e)

Definition at line 777 of file kest_ui.c.

◆ IMPLEMENT_LINKED_PTR_LIST()

IMPLEMENT_LINKED_PTR_LIST ( lv_obj_t )

◆ init_global_bg()

void init_global_bg ( lv_disp_t * disp)

Definition at line 104 of file kest_ui.c.

◆ init_panel()

int init_panel ( kest_ui_page_panel * panel)

Definition at line 971 of file kest_ui.c.

Referenced by new_panel().

Here is the caller graph for this function:

◆ init_test_page()

void init_test_page ( )

Definition at line 32 of file kest_ui.c.

Here is the call graph for this function:

◆ init_ui_page()

int init_ui_page ( kest_ui_page * page)

Definition at line 152 of file kest_ui.c.

Referenced by create_effect_view_for(), create_profile_view_for(), create_ui_page(), init_effect_selector_eff(), init_effect_settings_page(), init_effect_view(), init_main_menu(), init_menu_page(), init_profile_settings_page(), init_profile_view(), init_sequence_view(), and init_test_page().

Here is the caller graph for this function:

◆ init_ui_page_panel_str()

int init_ui_page_panel_str ( kest_ui_page_panel * panel)

Definition at line 499 of file kest_ui.c.

Referenced by create_panel().

Here is the caller graph for this function:

◆ kest_create_ui()

void kest_create_ui ( lv_disp_t * disp)

Definition at line 121 of file kest_ui.c.

Referenced by app_main(), and main_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kest_init_global_pages()

int kest_init_global_pages ( kest_global_pages * pages)

Definition at line 78 of file kest_ui.c.

Referenced by app_main(), and main_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kest_ui_page_return_to_parent()

void kest_ui_page_return_to_parent ( kest_ui_page * page)

Definition at line 485 of file kest_ui.c.

Here is the call graph for this function:

◆ kest_ui_page_set_background_default()

int kest_ui_page_set_background_default ( kest_ui_page * page)

Definition at line 64 of file kest_ui.c.

◆ new_panel()

kest_ui_page_panel * new_panel ( )

Definition at line 991 of file kest_ui.c.

Referenced by configure_main_menu(), configure_menu_page(), configure_sequence_list(), configure_sequence_view(), init_effect_settings_page(), init_effect_view(), init_profile_settings_page(), init_profile_view(), and init_test_page().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_panel_text()

int set_panel_text ( kest_ui_page * page,
const char * text )

Definition at line 541 of file kest_ui.c.

Referenced by create_effect_selector_ui_eff().

Here is the caller graph for this function:

◆ set_panel_text_rw()

int set_panel_text_rw ( kest_ui_page * page,
const char * text )

Definition at line 573 of file kest_ui.c.

Referenced by create_panel_rw_title(), and create_panel_rw_title_and_left_button().

Here is the caller graph for this function:

◆ spawn_keyboard()

void spawn_keyboard ( lv_obj_t * parent,
lv_obj_t * text_area,
void(* ok_cb )(lv_event_t *),
void * ok_arg,
void(* cancel_cb )(lv_event_t *),
void * cancel_arg )

Definition at line 737 of file kest_ui.c.

Referenced by spawn_numerical_keyboard().

Here is the caller graph for this function:

◆ spawn_numerical_keyboard()

void spawn_numerical_keyboard ( lv_obj_t * parent,
lv_obj_t * text_area,
void(* ok_cb )(lv_event_t *),
void * ok_arg,
void(* cancel_cb )(lv_event_t *),
void * cancel_arg )

Definition at line 759 of file kest_ui.c.

Referenced by edit_sw_field_cb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_add_back_button()

int ui_page_add_back_button ( kest_ui_page * page)

Definition at line 1129 of file kest_ui.c.

Referenced by configure_effect_settings_page(), configure_menu_page(), configure_profile_settings_page(), configure_sequence_list(), and configure_sequence_view().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_add_bottom_button()

kest_button * ui_page_add_bottom_button ( kest_ui_page * page,
const char * label,
lv_event_cb_t cb )

Definition at line 1308 of file kest_ui.c.

Referenced by configure_profile_view(), configure_sequence_list(), configure_sequence_view(), and init_test_page().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_add_left_panel_button()

int ui_page_add_left_panel_button ( kest_ui_page * page,
const char * label,
lv_event_cb_t cb )

Definition at line 1171 of file kest_ui.c.

Referenced by configure_profile_view().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_add_parent_button()

int ui_page_add_parent_button ( kest_ui_page * page)

Definition at line 1150 of file kest_ui.c.

Referenced by configure_effect_view().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_add_right_panel_button()

int ui_page_add_right_panel_button ( kest_ui_page * page,
const char * label,
lv_event_cb_t cb )

Definition at line 1189 of file kest_ui.c.

Referenced by configure_effect_view(), and configure_profile_view().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_create_base_ui()

int ui_page_create_base_ui ( kest_ui_page * page)

Definition at line 1207 of file kest_ui.c.

Referenced by create_effect_settings_page_ui(), create_effect_view_ui(), create_main_menu_ui(), create_menu_page_ui(), create_profile_settings_page_ui(), create_profile_view_ui(), create_sequence_view_ui(), and create_test_page_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_create_bottom_buttons()

int ui_page_create_bottom_buttons ( kest_ui_page * page)

Definition at line 1271 of file kest_ui.c.

Referenced by ui_page_create_base_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_create_container()

int ui_page_create_container ( kest_ui_page * page)

Definition at line 1230 of file kest_ui.c.

Referenced by ui_page_create_base_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_create_panel_ui()

int ui_page_create_panel_ui ( kest_ui_page * page)

Definition at line 1094 of file kest_ui.c.

Referenced by ui_page_create_base_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_init_create_panel_label()

int ui_page_init_create_panel_label ( kest_ui_page * page)

Definition at line 1028 of file kest_ui.c.

Referenced by ui_page_create_panel_ui(), and ui_page_set_title().

Here is the caller graph for this function:

◆ ui_page_set_title()

int ui_page_set_title ( kest_ui_page * page,
const char * text )

Definition at line 1066 of file kest_ui.c.

Referenced by profile_view_rep_update(), sequence_view_rep_update(), and ui_page_update_title().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ui_page_set_title_rw()

int ui_page_set_title_rw ( kest_ui_page * page,
lv_event_cb_t save_cb,
lv_event_cb_t cancel_cb )

Definition at line 1335 of file kest_ui.c.

Referenced by configure_profile_view(), and configure_sequence_view().

Here is the caller graph for this function:

◆ ui_page_update_title()

int ui_page_update_title ( kest_ui_page * page,
const char * text )

Definition at line 1014 of file kest_ui.c.

Here is the call graph for this function:

Variable Documentation

◆ keyboard

lv_obj_t* keyboard

◆ test_page

kest_ui_page test_page

Definition at line 18 of file kest_ui.c.

Referenced by create_test_page_ui(), and init_test_page().