Nui
Namespaces | Functions
listen.hpp File Reference
#include <nui/event_system/event_context.hpp>
#include <nui/event_system/observed_value.hpp>
#include <utility>
#include <memory>
#include <functional>
Include dependency graph for listen.hpp:

Go to the source code of this file.

Namespaces

 Nui
 

Functions

template<typename ValueT >
void Nui::listen (EventContext &eventContext, Observed< ValueT > const &obs, std::function< bool(ValueT const &)> onEvent)
 
template<typename ValueT >
void Nui::listen (EventContext &eventContext, Observed< ValueT > const &obs, std::function< void(ValueT const &)> onEvent)
 
template<typename ValueT , typename FunctionT >
void Nui::listen (EventContext &eventContext, Observed< ValueT > const &obs, FunctionT onEvent)
 
template<typename ValueT >
void Nui::listen (EventContext &eventContext, std::shared_ptr< Observed< ValueT >> const &obs, std::function< bool(ValueT const &)> onEvent)
 
template<typename ValueT >
void Nui::listen (EventContext &eventContext, std::shared_ptr< Observed< ValueT >> const &obs, std::function< void(ValueT const &)> onEvent)
 
template<typename ValueT , typename FunctionT >
void Nui::listen (EventContext &eventContext, std::shared_ptr< Observed< ValueT >> const &obs, FunctionT onEvent)
 
template<typename ValueT , typename FunctionT >
void Nui::listen (std::shared_ptr< Observed< ValueT >> const &obs, FunctionT onEvent)
 
template<typename ValueT , typename FunctionT >
void Nui::listen (Observed< ValueT > const &obs, FunctionT onEvent)