跳转至

Menu Configuration

Configuration parameters for menu widget appearance.

Defines

Name
CFBD_MENU_INDICATOR_WIDTH
Default menu indicator width in pixels.
CFBD_MENU_INDICATOR_POSX
Default menu indicator X position.
CFBD_MENU_INDICATOR_MAX_WIDTH_PX
Maximum menu indicator width in pixels.
CFBD_MENU_INDICATOR_MAX_HEIGHT_PX
Maximum menu indicator height in pixels.
CFBD_MENU_INDICATOR_GAP
Horizontal gap between indicator and menu items in pixels.
CFBD_MENU_ITEM_Y_GAP
Vertical gap between menu items in pixels.

Macros Documentation

define CFBD_MENU_INDICATOR_WIDTH

#define CFBD_MENU_INDICATOR_WIDTH (4)

Default menu indicator width in pixels.

See: CFBD_MENU_INDICATOR_MAX_WIDTH_PX

Note: Valid range: 0-8 pixels

Default sliding indicator bar width. Set to 0 to disable indicator.

define CFBD_MENU_INDICATOR_POSX

#define CFBD_MENU_INDICATOR_POSX (0)

Default menu indicator X position.

See: CFBD_MenuIndicator

Note: Typically 0 (left edge of menu)

Left edge position of indicator bar in pixels.

define CFBD_MENU_INDICATOR_MAX_WIDTH_PX

#define CFBD_MENU_INDICATOR_MAX_WIDTH_PX 8

Maximum menu indicator width in pixels.

Hard limit for indicator width, prevents indicator from exceeding this value regardless of configuration.

define CFBD_MENU_INDICATOR_MAX_HEIGHT_PX

#define CFBD_MENU_INDICATOR_MAX_HEIGHT_PX 16

Maximum menu indicator height in pixels.

Hard limit for indicator height to match typical menu item height.

define CFBD_MENU_INDICATOR_GAP

#define CFBD_MENU_INDICATOR_GAP (4)

Horizontal gap between indicator and menu items in pixels.

Spacing between sliding indicator bar and item text.

define CFBD_MENU_ITEM_Y_GAP

#define CFBD_MENU_ITEM_Y_GAP (0)

Vertical gap between menu items in pixels.

Note: Set to 0 for tight packing, positive values for visual separation.

Line spacing in pixels between consecutive menu items.


Updated on 2026-02-03 at 13:21:55 +0000