add mouse-enter and mouse-exit events for tray
This commit is contained in:
parent
a6ea316a5d
commit
8dbb8ccbab
7 changed files with 48 additions and 1 deletions
|
@ -122,6 +122,14 @@ void Tray::OnDropText(const std::string& text) {
|
|||
Emit("drop-text", text);
|
||||
}
|
||||
|
||||
void Tray::OnMouseEntered() {
|
||||
Emit("mouse-enter");
|
||||
}
|
||||
|
||||
void Tray::OnMouseExited() {
|
||||
Emit("mouse-exited");
|
||||
}
|
||||
|
||||
void Tray::OnDragEntered() {
|
||||
Emit("drag-enter");
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@ class Tray : public mate::TrackableObject<Tray>,
|
|||
void OnDragEntered() override;
|
||||
void OnDragExited() override;
|
||||
void OnDragEnded() override;
|
||||
void OnMouseEntered() override;
|
||||
void OnMouseExited() override;
|
||||
|
||||
void SetImage(v8::Isolate* isolate, mate::Handle<NativeImage> image);
|
||||
void SetPressedImage(v8::Isolate* isolate, mate::Handle<NativeImage> image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue