5#ifndef MOBROWSER_TRAY_EVENTS_HPP
6#define MOBROWSER_TRAY_EVENTS_HPP
8#include "mobrowser/base/event.hpp"
9#include "mobrowser/ui/keyboard.hpp"
10#include "mobrowser/ui/mouse.hpp"
23 std::shared_ptr<Tray>
tray;
Events allow you to be notified when something happens in MōBrowser.
Definition event.hpp:25
A class that contains all tray events.
Definition tray_events.hpp:39
Event< TrayClicked > onClicked
Invoked when the tray has been clicked using the left mouse button.
Definition tray_events.hpp:54
The key modifiers.
Definition keyboard.hpp:13
The TrayEvents::onClicked event arguments.
Definition tray_events.hpp:19
KeyModifiers key_modifiers
The key modifiers that were pressed when the tray was clicked.
Definition tray_events.hpp:33
MouseButton mouse_button
The mouse button that was used to click the tray.
Definition tray_events.hpp:28
std::shared_ptr< Tray > tray
The tray instance initiated this event.
Definition tray_events.hpp:23