This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
executable file
·52 lines (46 loc) · 1.69 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Key, KeyboardModifier, NodeWidget } from '@nodegui/nodegui';
export declare class NgTest {
/**
* Create a new simulation wrapper for widget
*/
constructor(widget: NodeWidget): NgTest;
/**
* Simulates clicking of key with an optional modifier
*
* @see {@link https://doc.qt.io/qt-5/qtest.html#keyClick}
*
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#25}
*/
keyClick(key: string, modifier?: KeyboardModifier): void;
/**
* Simulates clicking of key with an optional modifier
*
* @see {@link https://doc.qt.io/qt-5/qtest.html#keyClick}
*
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#34}
*/
keyClick(key: Key, modifier?: KeyboardModifier): void;
/**
* Simulates pressing a key with an optional modifier
*
* @see {@link https://doc.qt.io/qt-5/qtest.html#keyPress}
*
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#45}
*/
keyPress(key: string, modifier?: KeyboardModifier): void;
/**
* Simulates pressing a key with an optional modifier
*
* @see {@link https://doc.qt.io/qt-5/qtest.html#keyPress}
*
* @example {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#54}
*/
keyPress(key: Key, modifier?: KeyboardModifier): void;
/**
* Simulates clicking a sequence of keys on a widget.
* Optionally, a keyboard modifier can be specified as well as a delay (in milliseconds) of the test before each key click.
*
* @see {@link https://github.com/ng-qt/ng-test/blob/master/src/ng-test.spec.ts#74}
*/
keyClicks(sequence: string, modifier?: KeyboardModifier, delay?: number): void;
}