22 #ifndef BAGEL_BOFLIB_TIMER_H 23 #define BAGEL_BOFLIB_TIMER_H 25 #include "bagel/boflib/timer.h" 26 #include "bagel/boflib/llist.h" 27 #include "bagel/boflib/gfx/palette.h" 33 uint32 _lastExpiryTime = 0;
35 BofCallback _callback =
nullptr;
38 WindowTimer(uint32 interval, uint32
id, BofCallback callback);
45 CBofTimer(uint32 nID, uint32 nInterval,
void *lUserInfo, BofCallback pCallBack);
59 void setID(uint32 nID) {
66 void setInterval(uint32 nInterval) {
67 _nInterval = nInterval;
69 uint32 getInterval() {
73 void setUserInfo(
void *lUserInfo) {
74 _lUserInfo = lUserInfo;
80 void setCallBack(BofCallback pCallBack) {
81 _pCallBack = pCallBack;
83 BofCallback getCallBack() {
87 static void handleTimers();
96 static bool _bModified;
103 BofCallback _pCallBack;