Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dwm/ext/imgui.ts>imgui.selectable

Deno Window Manager: Cross-platform window creation and management
Go to Latest
function imgui.selectable
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

label: StringSource
optional
selected: boolean | Bool = [UNSUPPORTED]
optional
flags: ImGuiSelectableFlags = [UNSUPPORTED]
optional
size: ImVec2 = [UNSUPPORTED]

Returns

boolean