From f64dbbea3e97280d9459b939ede0646e4f715f64 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 4 May 2015 11:23:09 +0800 Subject: [PATCH] docs: Pass bounds in clicked event of tray --- docs/api/tray.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/api/tray.md b/docs/api/tray.md index dd030385..0562a618 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -47,12 +47,16 @@ Creates a new tray icon associated with the `image`. ### Event: 'clicked' * `event` -* `point` Object +* `bounds` Object - the bounds of tray icon * `x` Integer * `y` Integer + * `width` Integer + * `height` Integer Emitted when the tray icon is clicked. +__NOte:__ The `bounds` payload is only implemented on OS X. + ### Event: 'double-clicked' Emitted when the tray icon is double clicked. @@ -106,7 +110,7 @@ Sets the hover text for this tray icon. Sets the title displayed aside of the tray icon in the status bar. -This is only implemented on OS X. +__Note:__ This is only implemented on OS X. ### Tray.setHighlightMode(highlight) @@ -114,7 +118,7 @@ This is only implemented on OS X. Sets whether the tray icon is highlighted when it is clicked. -This is only implmented on OS X. +__Note:__ This is only implemented on OS X. ### Tray.displayBalloon(options) @@ -123,10 +127,14 @@ This is only implmented on OS X. * `title` String * `content` String +Displays a tray balloon. + +__Note:__ This is only implemented on Windows. + ### Tray.setContextMenu(menu) * `menu` Menu -Set the context menu for this icon. +Sets the context menu for this icon. [event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter -- 2.43.0