3699a2554d
20 funciones C++ pasan de tested:false a tested:true con sus tests correspondientes y test_file_path apuntando a cpp/tests/. Cubre 4 tests reales (tween_curves, pie/kpi/bar math) y 16 placeholders (componentes UI con tests visuales pendientes para 0048). Coverage cpp pasa de 4% (3/81) a 28% (23/81).
1.6 KiB
1.6 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path, framework, params, output
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | framework | params | output | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| select | component | cpp | core | 1.0.0 | impure | bool fn_ui::select(const char* label, int* selected_idx, const char* const* options, int count, bool allow_none = false) | Select/dropdown ImGui con label muted, estilo surface+border y opcion '(none)' opcional |
|
|
false |
|
true |
|
cpp/tests/test_select.cpp | cpp/functions/core/select.cpp | imgui |
|
true el frame en que la seleccion cambio |
select
Label muted + combo estilizado con tokens. Apto para campos de formulario (lang, domain, project parent).
Ejemplo
static int lang_idx = 0;
const char* langs[] = {"go", "py", "ts", "sh", "cpp"};
fn_ui::select("Language", &lang_idx, langs, 5);
// Con opcion "ninguno"
static int project_idx = -1;
fn_ui::select("Project", &project_idx, project_names.data(),
(int)project_names.size(), true);