UNPKG

@ahmic/autoit-js

Version:
39 lines (36 loc) 911 B
import koffi from 'koffi'; import { RECT } from './rect.js'; import { LPARAM, LPWSTR, HINSTANCE, UINT_PTR, HWND, UINT } from './win32.js'; class ToolInfoW { cbSize; uFlags; hwnd; uId; rect; hinst; lpszText; lParam; constructor(options) { this.cbSize = koffi.sizeof(TOOLINFOW); this.uFlags = options?.uFlags; this.hwnd = options?.hwnd; this.uId = options?.uId; this.rect = options?.rect; this.hinst = options?.hinst; this.lpszText = options?.lpszText ?? ''; this.lParam = options?.lParam; } } const TOOLINFOW = koffi.struct('TOOLINFOW', { cbSize: UINT, uFlags: UINT, hwnd: HWND, uId: UINT_PTR, rect: RECT, hinst: HINSTANCE, lpszText: LPWSTR, lParam: LPARAM, }); koffi.pointer('LPTOOLINFOW', TOOLINFOW); export { TOOLINFOW, ToolInfoW }; //# sourceMappingURL=tool-info.js.map