lib/graphic/widget/menu/menu_indicator.h¶
Menu indicator widget for visual selection feedback. More...
Classes¶
| Name | |
|---|---|
| struct | __CFBD_MenuIndicator |
Types¶
| Name | |
|---|---|
| typedef struct _CFBD_Menu | CFBD_Menu Forward declaration of menu structure. |
| typedef struct __CFBD_MenuIndicator | CFBD_MenuIndicator Menu indicator configuration structure. |
Functions¶
| Name | |
|---|---|
| void | CFBD_InitDefaultMenuIndicator(CFBD_MenuIndicator * menuIndicatorDefault) |
| CFBD_Bool | CFBD_DrawMenuIndicator(CFBD_Menu * menu, uint16_t x, uint16_t y, uint16_t w, uint16_t h) |
Detailed Description¶
Menu indicator widget for visual selection feedback.
Provides menu indicator structure and functions for rendering a sliding indicator bar showing current menu selection.
Types Documentation¶
typedef CFBD_Menu¶
Forward declaration of menu structure.
typedef CFBD_MenuIndicator¶
Menu indicator configuration structure.
See:
Defines visual properties of the menu indicator bar that slides between menu items to show current selection.
Functions Documentation¶
function CFBD_InitDefaultMenuIndicator¶
function CFBD_DrawMenuIndicator¶
CFBD_Bool CFBD_DrawMenuIndicator(
CFBD_Menu * menu,
uint16_t x,
uint16_t y,
uint16_t w,
uint16_t h
)
Source code¶
#pragma once
#include <stdint.h>
#include "cfbd_define.h"
#include "cfbd_graphic_define.h"
typedef struct _CFBD_Menu CFBD_Menu;
typedef struct __CFBD_MenuIndicator
{
uint8_t width;
uint8_t x;
} CFBD_MenuIndicator;
void CFBD_InitDefaultMenuIndicator(CFBD_MenuIndicator* menuIndicatorDefault);
CFBD_Bool CFBD_DrawMenuIndicator(CFBD_Menu* menu, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
Updated on 2026-02-03 at 13:21:55 +0000