summaryrefslogtreecommitdiff
path: root/src/Fl_Timeout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Timeout.cxx')
-rw-r--r--src/Fl_Timeout.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Fl_Timeout.cxx b/src/Fl_Timeout.cxx
index 9aa89b839..4ba8a0f63 100644
--- a/src/Fl_Timeout.cxx
+++ b/src/Fl_Timeout.cxx
@@ -344,6 +344,17 @@ int Fl_Timeout::remove_next_timeout(Fl_Timeout_Handler cb, void *data, void **da
return ret;
}
+std::vector<Fl::TimeoutData> Fl_Timeout::timeout_list() {
+ std::vector<Fl::TimeoutData> v;
+ const Fl_Timeout *t = first_timeout;
+ while (t) {
+ v.push_back( { t->time, t->callback, t->data } );
+ t = t->next;
+ }
+ return v;
+}
+
+
/**
Remove the timeout from the active timer queue and push it onto
the stack of currently running callbacks.