TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::BasicViewRef< Data, State > Struct Template Reference

What a control shows and one view of it, as the control takes them. More...

#include <gui_controls/gui_view_ref.h>

Public Member Functions

 BasicViewRef (Data &d, State &s)
template<class View>
requires std::is_convertible_v<View&, Data&> && std::is_convertible_v<View&, State&>
 BasicViewRef (View &view)
template<class D, class S>
requires std::is_convertible_v<D&, Data&> && std::is_convertible_v<S&, State&>
 BasicViewRef (const BasicViewRef< D, S > &other)

Public Attributes

Data & data
State & state

Detailed Description

template<class Data, class State>
struct tachyon::BasicViewRef< Data, State >

What a control shows and one view of it, as the control takes them.

A struct that is both (TimelineView, CurveView, PlotView) passes as one; for several views of the same data, keep the data once and a view state per view, and pass { data, state }.

TimelineData      animation;
TimelineViewState left, right;
TimelineEditor({ animation, left });
TimelineEditor({ animation, right }); 

Constructor & Destructor Documentation

◆ BasicViewRef() [1/3]

template<class Data, class State>
tachyon::BasicViewRef< Data, State >::BasicViewRef ( Data & d,
State & s )
inline

◆ BasicViewRef() [2/3]

template<class Data, class State>
template<class View>
requires std::is_convertible_v<View&, Data&> && std::is_convertible_v<View&, State&>
tachyon::BasicViewRef< Data, State >::BasicViewRef ( View & view)
inline

◆ BasicViewRef() [3/3]

template<class Data, class State>
template<class D, class S>
requires std::is_convertible_v<D&, Data&> && std::is_convertible_v<S&, State&>
tachyon::BasicViewRef< Data, State >::BasicViewRef ( const BasicViewRef< D, S > & other)
inline

Member Data Documentation

◆ data

template<class Data, class State>
Data& tachyon::BasicViewRef< Data, State >::data

◆ state

template<class Data, class State>
State& tachyon::BasicViewRef< Data, State >::state

The documentation for this struct was generated from the following file: