00001
00002
00003 #ifndef _CLUTTERMM_TIMEOUT_POOL_H
00004 #define _CLUTTERMM_TIMEOUT_POOL_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <clutter/clutter-timeout-pool.h>
00027
00028
00029 namespace Clutter
00030 {
00031
00042 class TimeoutPool
00043 {
00044 public:
00045 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00046 typedef TimeoutPool CppObjectType;
00047 typedef ClutterTimeoutPool BaseObjectType;
00048 #endif
00049
00050 private:
00051
00052
00053 public:
00054 explicit TimeoutPool(int priority);
00055
00056 typedef sigc::slot<bool> TimeoutSlot;
00057
00082 guint add(guint interval, const TimeoutSlot& func, int priority = Glib::PRIORITY_DEFAULT);
00083
00084
00092 void remove(guint id);
00093
00094 ClutterTimeoutPool* gobj() { return gobject_; }
00095 const ClutterTimeoutPool* gobj() const { return gobject_; }
00096
00097 protected:
00098 ClutterTimeoutPool* gobject_;
00099
00100 private:
00101
00102 TimeoutPool(const TimeoutPool& other);
00103 TimeoutPool& operator=(const TimeoutPool& other);
00104
00105
00106 };
00107
00108 }
00109
00110
00111 #endif
00112