opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
open_popup_event.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <memory>
7#include <utility>
8
9namespace osc
10{
11 class OpenPopupEvent final : public Event {
12 public:
13 explicit OpenPopupEvent(std::unique_ptr<Popup> popup_to_open) :
14 popup_to_open_{std::move(popup_to_open)}
15 {
17 }
18
19 bool has_popup() const { return popup_to_open_ != nullptr; }
20 std::unique_ptr<Popup> take_popup() { return std::move(popup_to_open_); }
21 private:
22 std::unique_ptr<Popup> popup_to_open_;
23 };
24}
Definition event.h:13
void enable_propagation()
Definition event.h:27
Definition open_popup_event.h:11
bool has_popup() const
Definition open_popup_event.h:19
OpenPopupEvent(std::unique_ptr< Popup > popup_to_open)
Definition open_popup_event.h:13
std::unique_ptr< Popup > take_popup()
Definition open_popup_event.h:20
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56