opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
open_tab_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 OpenTabEvent final : public Event {
12 public:
13 explicit OpenTabEvent(std::unique_ptr<Tab> tab_to_open) :
14 tab_to_open_{std::move(tab_to_open)}
15 {
17 }
18
19 bool has_tab() const { return tab_to_open_ != nullptr; }
20 std::unique_ptr<Tab> take_tab() { return std::move(tab_to_open_); }
21 private:
22 std::unique_ptr<Tab> tab_to_open_;
23 };
24}
Definition event.h:13
void enable_propagation()
Definition event.h:27
Definition open_tab_event.h:11
OpenTabEvent(std::unique_ptr< Tab > tab_to_open)
Definition open_tab_event.h:13
bool has_tab() const
Definition open_tab_event.h:19
std::unique_ptr< Tab > take_tab()
Definition open_tab_event.h:20
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56