Menu Cellular
The menu cellular widget displays a set of icons in a honeycomb shape menu.
Usage
Create Menu Cellular Widget
Creating function is gui_menu_cellular_create()
. Users need to enter the icons set’s image file array.
Config Offset
Function is gui_menu_cellular_offset()
. Users are able to adjust horizontal and vertical offset for better display.
Example

API
Functions
-
gui_menu_cellular_t *gui_menu_cellular_create(void *parent, int icon_size, uint32_t *icon_array[], int array_size)
Create a honeycomb effect widget,.
- Parameters:
parent – the father widget nested in
icon_size – icon’s width(px)
icon_array – icons set’s file address array
array_size – the array’s size
- Returns:
gui_menu_cellular_t*
-
void gui_menu_cellular_offset(gui_obj_t *menu_cellular, int offset_x, int offset_y)
config offset
- Parameters:
menu_cellular – the menu_cellular pointer
offset_x – offset_x
offset_y – offset_y
-
void gui_menu_cellular_on_click(gui_menu_cellular_t *menu_cellular, struct gui_menu_cellular_gesture_parameter *para_array, int array_length)
Listen to click events on the cellular menu.
It processes the click event based on the given gesture parameters.
- Parameters:
menu_cellular – Pointer to the cellular menu structure.
para_array – Array of gesture parameters corresponding to the click event.
array_length – Length of the gesture parameters array.
-
gui_menu_cellular_t *gui_menu_cellular_create_ftl(void *parent, int icon_size, uint32_t *icon_array[], int array_size)
Create a honeycomb effect widget (ftl address mode),.
- Parameters:
parent – the father widget nested in
icon_size – icon’s width(px)
icon_array – icons set’s file address array (ftl address mode)
array_size – the array’s size
- Returns:
gui_menu_cellular_t*
-
struct gui_menu_cellular_t
menu_cellular structure
-
struct gui_menu_cellular_gesture_parameter