UNPKG

@thi.ng/imgui

Version:

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

10 lines 593 B
import type { Predicate } from "@thi.ng/api"; import type { ComponentOpts } from "../api.js"; import type { IMGUI } from "../gui.js"; export interface TextfieldOpts extends Omit<ComponentOpts, "label"> { value: string; filter?: Predicate<string>; } export declare const textField: ({ gui, layout, id, value, info, filter, }: TextfieldOpts) => string | undefined; export declare const textFieldRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, txt: string, filter?: Predicate<string>, info?: string) => string | undefined; //# sourceMappingURL=textfield.d.ts.map