MōBrowser API
Loading...
Searching...
No Matches
tray_events.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOBROWSER_TRAY_EVENTS_HPP
6#define MOBROWSER_TRAY_EVENTS_HPP
7
8#include "mobrowser/base/event.hpp"
9#include "mobrowser/ui/keyboard.hpp"
10#include "mobrowser/ui/mouse.hpp"
11
12namespace mobrowser {
13
14class Tray;
15
23 std::shared_ptr<Tray> tray;
24
28 MouseButton mouse_button = MouseButton::kNoButton;
29
34};
35
40 public:
41 virtual ~TrayEvents() = default;
42
55};
56
57} // namespace mobrowser
58
59#endif // MOBROWSER_TRAY_EVENTS_HPP
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