opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
tab_registry_entry.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <functional>
6#include <memory>
7
8namespace osc { class Tab; }
9namespace osc { class Widget; }
10
11namespace osc
12{
13 // reference-counted definition for an available tab
15 public:
18 std::function<std::unique_ptr<Tab>(Widget*)> tab_constructor
19 );
20
22 std::unique_ptr<Tab> construct_tab(Widget*) const;
23
24 private:
25 class Impl;
26 std::shared_ptr<Impl> impl_;
27 };
28}
Definition c_string_view.h:12
Definition tab_registry_entry.h:14
std::unique_ptr< Tab > construct_tab(Widget *) const
CStringView name() const
TabRegistryEntry(CStringView name, std::function< std::unique_ptr< Tab >(Widget *)> tab_constructor)
Definition widget.h:26
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56