蜂窝菜单 (Menu cellular)
蜂窝菜单组件以蜂窝形状显示一组图标。
用法
创建蜂窝菜单组件
要创建蜂窝菜单组件,使用 gui_menu_cellular_create()
函数。用户需要提供代表图标集的图像文件数组。
配置偏移
使用 gui_menu_cellular_offset()
函数可以调整水平和垂直偏移以获得更好的显示效果。
示例

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,.
- 参数:
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
- 返回:
gui_menu_cellular_t*
-
void gui_menu_cellular_offset(gui_obj_t *menu_cellular, int offset_x, int offset_y)
config offset
- 参数:
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.
- 参数:
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),.
- 参数:
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
- 返回:
gui_menu_cellular_t*
-
struct gui_menu_cellular_t
menu_cellular structure
-
struct gui_menu_cellular_gesture_parameter