UNPKG

@thi.ng/imgui

Version:

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

41 lines 1.11 kB
/** * Encodes given string into array of its char codes. If `buf` is not * given, writes results into a shared, pre-defined array (use only for * ephemeral purposes). * * @param txt - * @param buf - */ export declare const encodeString: (txt: string, buf?: any[]) => any[]; /** * Returns Murmur3 hashcode for given string. * * @param txt - */ export declare const hashString: (txt: string) => number; /** * Mixes existing hash with that of given string. * * @param key - * @param txt - */ export declare const mixHash: (key: number, txt: string) => number; /** * Hash helper for labels. Mixes existing hash with given label and * GUI's disabled flag. * * @param key - * @param label - * @param disabled - */ export declare const labelHash: (key: number, label: string, disabled: boolean) => number; /** * Hash helper for numeric value labels. Mixes existing hash with given * value and GUI's disabled flag. * * @param key - * @param val - * @param disabled - */ export declare const valHash: (key: number, val: number, disabled: boolean) => number; //# sourceMappingURL=hash.d.ts.map