Nui
Public Member Functions | List of all members
Nui::TwoFunctorEventImpl Struct Reference

#include <event.hpp>

Inheritance diagram for Nui::TwoFunctorEventImpl:
Inheritance graph
[legend]
Collaboration diagram for Nui::TwoFunctorEventImpl:
Collaboration graph
[legend]

Public Member Functions

 TwoFunctorEventImpl (std::function< bool(std::size_t eventId)> action, std::function< bool()> valid)
 
bool call (std::size_t eventId) override
 
bool valid () const override
 
- Public Member Functions inherited from Nui::EventImpl
virtual ~EventImpl ()=default
 

Constructor & Destructor Documentation

◆ TwoFunctorEventImpl()

Nui::TwoFunctorEventImpl::TwoFunctorEventImpl ( std::function< bool(std::size_t eventId)>  action,
std::function< bool()>  valid 
)
inline

Member Function Documentation

◆ call()

bool Nui::TwoFunctorEventImpl::call ( std::size_t  eventId)
inlineoverridevirtual

Implements Nui::EventImpl.

◆ valid()

bool Nui::TwoFunctorEventImpl::valid ( ) const
inlineoverridevirtual

Implements Nui::EventImpl.


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