import { imgui } from "https://deno.land/x/dwm@0.3.4/ext/imgui.ts";
const { selectable } = imgui;
"bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state.
- size.x==0.0: use remaining width.
- size.x> 0.0: specify width.
- size.y==0.0: use label height.
- size.y> 0.0: specify height.
Parameters
optional
selected: boolean | Bool = [UNSUPPORTED]optional
flags: ImGuiSelectableFlags = [UNSUPPORTED]optional
size: ImVec2 = [UNSUPPORTED]