TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_view_ref.h
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4
5namespace tachyon
6{
9
18 template<class Data, class State>
20 {
21 Data& data;
22 State& state;
23
24 BasicViewRef(Data& d, State& s) : data(d), state(s) {}
25 template<class View> requires std::is_convertible_v<View&, Data&> && std::is_convertible_v<View&, State&>
26 BasicViewRef(View& view) : data(view), state(view) {}
27 template<class D, class S> requires std::is_convertible_v<D&, Data&> && std::is_convertible_v<S&, State&>
28 BasicViewRef(const BasicViewRef<D, S>& other) : data(other.data), state(other.state) {}
29 };
30
32}
Definition gui_logging.h:24
BasicViewRef(const BasicViewRef< D, S > &other)
Definition gui_view_ref.h:28
BasicViewRef(Data &d, State &s)
Definition gui_view_ref.h:24
BasicViewRef(View &view)
Definition gui_view_ref.h:26
CurveViewState & state
Definition gui_view_ref.h:22
CurveData & data
Definition gui_view_ref.h:21