36 #pragma warning( push )
37 #pragma warning( disable : 4355 )
44 setUserData( &_proxy );
47 #pragma warning( pop )
56 void View::Proxy::serialize( co::DataOStream& os,
const uint64_t dirtyBits )
58 if( dirtyBits & DIRTY_MODEL )
59 os << _view->_modelID;
60 if( dirtyBits & DIRTY_IDLE )
61 os << _view->_idleSteps;
64 void View::Proxy::deserialize( co::DataIStream& is,
const uint64_t dirtyBits )
66 if( dirtyBits & DIRTY_MODEL )
67 is >> _view->_modelID;
68 if( dirtyBits & DIRTY_IDLE )
70 is >> _view->_idleSteps;
72 setDirty( DIRTY_IDLE );
76 void View::setModelID(
const lunchbox::uint128_t&
id )
82 _proxy.setDirty( Proxy::DIRTY_MODEL );
85 void View::setIdleSteps(
const int32_t steps )
87 if( _idleSteps == steps )
91 _proxy.setDirty( Proxy::DIRTY_IDLE );
94 void View::toggleEqualizer()
96 if( getEqualizers() & eq::fabric::LOAD_EQUALIZER )
97 useEqualizer( eq::fabric::EQUALIZER_ALL & ~eq::fabric::LOAD_EQUALIZER );
99 useEqualizer( eq::fabric::EQUALIZER_ALL & ~eq::fabric::TILE_EQUALIZER );
A layout groups one or more View, logically belonging together.