Binds a ScalarSource and caches the latest value for paint.
More...
#include <value_source_binding.hpp>
Binds a ScalarSource and caches the latest value for paint.
Same lifetime contract as MeterSourceBinding.
◆ ScalarSourceBinding()
| pulp::view::ScalarSourceBinding::ScalarSourceBinding |
( |
View & | owner | ) |
|
|
inlineexplicit |
◆ active()
| bool pulp::view::ScalarSourceBinding::active |
( |
| ) |
const |
|
inline |
◆ has_source()
| bool pulp::view::ScalarSourceBinding::has_source |
( |
| ) |
const |
|
inline |
◆ refresh()
| void pulp::view::ScalarSourceBinding::refresh |
( |
| ) |
|
|
inline |
◆ set_active()
| void pulp::view::ScalarSourceBinding::set_active |
( |
bool | active | ) |
|
◆ set_source()
| void pulp::view::ScalarSourceBinding::set_source |
( |
std::shared_ptr< ScalarSource > | source | ) |
|
◆ stop()
| void pulp::view::ScalarSourceBinding::stop |
( |
| ) |
|
|
inline |
◆ subscribed()
| bool pulp::view::ScalarSourceBinding::subscribed |
( |
| ) |
const |
|
inline |
◆ subscribed_clock()
| FrameClock * pulp::view::ScalarSourceBinding::subscribed_clock |
( |
| ) |
const |
|
inline |
◆ value()
| float pulp::view::ScalarSourceBinding::value |
( |
| ) |
const |
|
inline |
The most recent value snapshotted on the clock.
Paint-safe: a plain member read. 0 until the first frame.
The documentation for this class was generated from the following file: