Photon microGUI widgets library 0.6.0
PhWidgets::Widget::phwidgets_event< ParentT, CallbackID > Class Template Reference

An event, which raise a notification to registered subscribers (event handlers) that something of interest has occurred. More...

#include <Widget.h>

Public Member Functions

void add (callback_t value)
 add an event handler
 
void remove (callback_t value)
 remove an event handler
 
void raise (PtCallbackInfo_t *info) const
 raise an event More...
 
void operator+= (callback_t value)
 add an event handler
 
void operator-= (callback_t value)
 remove an event handler
 
void operator() (PtCallbackInfo_t *info) const
 raise an event More...
 

Detailed Description

template<class ParentT, typename ParentT::template Callbacks< PtCallback_t >::Callback CallbackID>
class PhWidgets::Widget::phwidgets_event< ParentT, CallbackID >

An event, which raise a notification to registered subscribers (event handlers) that something of interest has occurred.

Event handlers must be Widget::callback_t type or convertable to it.

Member Function Documentation

◆ operator()()

template<class ParentT , typename ParentT::template Callbacks< PtCallback_t >::Callback CallbackID>
void PhWidgets::Widget::phwidgets_event< ParentT, CallbackID >::operator() ( PtCallbackInfo_t info) const
inline

raise an event

invokes all event handlers that are subscribed to this event

◆ raise()

template<class ParentT , typename ParentT::template Callbacks< PtCallback_t >::Callback CallbackID>
void PhWidgets::Widget::phwidgets_event< ParentT, CallbackID >::raise ( PtCallbackInfo_t info) const
inline

raise an event

invokes all event handlers that are subscribed to this event


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