PCL
Timer Event Handlers

Typedefs

using pcl::Timer::timer_event_handler = void(Control::*)(Timer &sender)
 

Functions

void pcl::Timer::OnTimer (timer_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ timer_event_handler

using pcl::Timer::timer_event_handler = void (Control::*)( Timer& sender )

Defines the prototype of a timer event handler.

A timer event is generated by an active Timer object, either at regular intervals (periodic timer), or just once when the timer period elapses (single-shot timer).

Parameters
senderThe control that sends a timer event.

Definition at line 200 of file Timer.h.

Function Documentation

◆ OnTimer()

void pcl::Timer::OnTimer ( timer_event_handler  handler,
Control receiver 
)

Sets the timer event handler for this Timer object.

Parameters
handlerThe timer event handler. Must be a member function of the receiver object's class.
receiverThe control that will receive timer events from this Timer.