add mouse-move event and click event position for tray

This commit is contained in:
Sean Bannigan 2017-08-26 14:04:58 -04:00 committed by Cheng Zhao
parent ee519b7552
commit 0b205019b6
7 changed files with 41 additions and 9 deletions

View file

@ -76,6 +76,7 @@ The `Tray` module emits the following events:
* `ctrlKey` Boolean
* `metaKey` Boolean
* `bounds` [Rectangle](structures/rectangle.md) - The bounds of tray icon
* `position` [Point](structures/point.md) - The position of the event
Emitted when the tray icon is clicked.
@ -166,6 +167,17 @@ Emitted when the mouse enters the tray icon.
Emitted when the mouse exits the tray icon.
#### Event: 'mouse-move' _macOS_
* `event` Event
* `altKey` Boolean
* `shiftKey` Boolean
* `ctrlKey` Boolean
* `metaKey` Boolean
* `position` [Point](structures/point.md) - The position of the event
Emitted when the mouse moves in the tray icon.
### Instance Methods
The `Tray` class has the following methods: