@thi.ng/imgui
Version:
Immediate mode GUI with flexible state handling & data only shape output
16 lines • 754 B
TypeScript
import type { IShape } from "@thi.ng/geom";
import type { ComponentOpts, Hash } from "../api.js";
import type { IMGUI } from "../gui.js";
export interface ButtonOpts extends ComponentOpts {
/**
* Label text when button is in hover state (by default the same as
* {@link ComponentOpts.label}).
*/
labelHover?: string;
}
export declare const buttonH: ({ gui, layout, id, label, labelHover, info, }: ButtonOpts) => boolean;
export declare const buttonV: ({ gui, layout, rows, id, label, labelHover, info, }: ButtonOpts & {
rows: number;
}) => boolean;
export declare const buttonRaw: (gui: IMGUI, id: string, shape: IShape, hash: Hash, label?: any, labelHover?: any, info?: string) => boolean;
//# sourceMappingURL=button.d.ts.map