@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
20 lines (17 loc) • 374 B
JavaScript
import koffi from 'koffi';
import { LONG } from './win32.js';
class Point {
x;
y;
constructor(point) {
this.x = point?.x ?? 0;
this.y = point?.y ?? 0;
}
}
const POINT = koffi.struct('POINT', {
x: LONG,
y: LONG,
});
const LPPOINT = koffi.pointer('LPPOINT', POINT);
export { LPPOINT, POINT, Point };
//# sourceMappingURL=point.js.map