UNPKG

@thi.ng/imgui

Version:

Immediate mode GUI with flexible state handling & data only shape output

14 lines 723 B
import type { Maybe } from "@thi.ng/api"; import type { ComponentOpts } from "../api.js"; import type { IMGUI } from "../gui.js"; export interface ToggleOpts extends ComponentOpts { /** * If `square` is true (default: false), the clickable area will not fill * the entire cell, but only a left-aligned square of cell/row height. */ square?: boolean; value: boolean; } export declare const toggle: ({ gui, layout, id, value, square, label, info, }: ToggleOpts) => Maybe<boolean>; export declare const toggleRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, labelX: number, val: boolean, label?: string, info?: string) => Maybe<boolean>; //# sourceMappingURL=toggle.d.ts.map