cgv
|
a trigger provides callbacks after a programmable time delay More...
#include <trigger.h>
Public Member Functions | |
trigger () | |
default construction | |
bool | is_scheduled () const |
return whether a trigger is scheduled | |
bool | schedule_one_shot (double delay) |
schedule a trigger event in delay seconds, return whether this was successful More... | |
bool | schedule_recuring (double delay) |
start a recuring trigger with the given delay in seconds, return whether this was successful More... | |
double | get_delay () const |
return the delay used for scheduling the last time | |
bool | is_recuring () const |
return whether this is a recuring trigger | |
void | stop () |
stop a recuring trigger | |
Static Public Member Functions | |
static double | get_current_time () |
return the current time | |
Public Attributes | |
signal::signal< double, double > | shoot |
the shoot signal is called when the trigger is pulled and takes the current time and delay as argument | |
a trigger provides callbacks after a programmable time delay
bool cgv::gui::trigger::schedule_one_shot | ( | double | delay | ) |
schedule a trigger event in delay seconds, return whether this was successful
schedule a trigger event in delay seconds
bool cgv::gui::trigger::schedule_recuring | ( | double | delay | ) |
start a recuring trigger with the given delay in seconds, return whether this was successful
start a recuring trigger with the given delay in seconds