Molybden 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 MOLYBDEN_TRAY_EVENTS_HPP
6#define MOLYBDEN_TRAY_EVENTS_HPP
7
8#include "molybden/base/event.hpp"
9#include "molybden/ui/keyboard.hpp"
10#include "molybden/ui/mouse.hpp"
11
12namespace molybden {
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 molybden
58
59#endif // MOLYBDEN_TRAY_EVENTS_HPP
Events allow you to be notified when something happens in Molybden.
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
std::shared_ptr< Tray > tray
The tray instance initiated this event.
Definition tray_events.hpp:23
MouseButton mouse_button
The mouse button that was used to click the tray.
Definition tray_events.hpp:28
KeyModifiers key_modifiers
The key modifiers that were pressed when the tray was clicked.
Definition tray_events.hpp:33