TachyonUI
1.1.0
High-performance UI for building tools.
Toggle main menu visibility
Loading...
Searching...
No Matches
gui_view_ref.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <type_traits>
4
5
namespace
tachyon
6
{
9
18
template
<
class
Data,
class
State>
19
struct
BasicViewRef
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
}
tachyon
Definition
gui_logging.h:24
tachyon::BasicViewRef::BasicViewRef
BasicViewRef(const BasicViewRef< D, S > &other)
Definition
gui_view_ref.h:28
tachyon::BasicViewRef::BasicViewRef
BasicViewRef(Data &d, State &s)
Definition
gui_view_ref.h:24
tachyon::BasicViewRef::BasicViewRef
BasicViewRef(View &view)
Definition
gui_view_ref.h:26
tachyon::BasicViewRef< CurveData, CurveViewState >::state
CurveViewState & state
Definition
gui_view_ref.h:22
tachyon::BasicViewRef< CurveData, CurveViewState >::data
CurveData & data
Definition
gui_view_ref.h:21
gui_controls
gui_view_ref.h
Generated by
1.18.0