lib/graphic/fast_test/test_widget.c¶
Functions¶
| Name | |
|---|---|
| void | icontext_menu_demo(CFBD_GraphicDevice * dev) Icon-text menu demonstration (OOP C style) |
| void | demo_progressbar(CFBD_GraphicDevice * dev) |
| void | test_text(CFBD_GraphicDevice * dev) |
| void | demo_end_screen(CFBD_GraphicDevice * dev) |
| void | test_widget(CFBD_GraphicDevice * handler) |
Attributes¶
| Name | |
|---|---|
| const CFBD_DemoDescriptor[] | g_demos |
Defines¶
| Name | |
|---|---|
| g_demo_count |
Functions Documentation¶
function icontext_menu_demo¶
Icon-text menu demonstration (OOP C style)
Demonstrates:
- Menu initialization
- Adding menu items via operations table
- Auto-demo of scrolling and selection with animated frame
function demo_progressbar¶
function test_text¶
function demo_end_screen¶
function test_widget¶
Attributes Documentation¶
variable g_demos¶
const CFBD_DemoDescriptor[] g_demos = {{"IconText Menu", icontext_menu_demo, 3000},
{"Progress Bar", demo_progressbar, 2500},
{"Text Alignment", test_text, 2000},
{"Demo End", demo_end_screen, 3000}};
Macros Documentation¶
define g_demo_count¶
Source code¶
#include "test_widget.h"
#include "cfbd_graphic_define.h"
#include "demo_support/demo_manager.h"
/* Demo entry declarations */
void icontext_menu_demo(CFBD_GraphicDevice* dev);
void demo_progressbar(CFBD_GraphicDevice* dev);
void test_text(CFBD_GraphicDevice* dev);
void demo_end_screen(CFBD_GraphicDevice* dev);
const CFBD_DemoDescriptor g_demos[] = {{"IconText Menu", icontext_menu_demo, 3000},
{"Progress Bar", demo_progressbar, 2500},
{"Text Alignment", test_text, 2000},
{"Demo End", demo_end_screen, 3000}};
#define g_demo_count sizeof(g_demos) / sizeof(g_demos[0])
void test_widget(CFBD_GraphicDevice* handler)
{
CFBD_DemoManager_Run(handler, g_demos, g_demo_count, CFBD_DEMO_RUN_LOOP, 0);
}
Updated on 2026-02-03 at 13:21:55 +0000