Sha256: 3d8c2e536736d436a9606115a1a2f0b9c9f1c9a90737015175873fb8271de230

Contents?: true

Size: 737 Bytes

Versions: 26

Compression:

Stored size: 737 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __REFLEX_SRC_TIMER_H__
#define __REFLEX_SRC_TIMER_H__


#include <vector>
#include <list>
#include "reflex/timer.h"


namespace Reflex
{


	class Timers
	{

		public:

			typedef std::vector<Timer::Ref> TimerList;

			Timers ();

			Timer* add (View* owner, float interval, int count = 1);

			void remove (Timer* timer);

			void fire (double now);

			void find_timers (
				TimerList* result, const Selector& selector, bool recuesive = false) const;

		private:

			typedef std::list<Timer::Ref> List;

			List timers;

			int next_id;

			void add (Timer* timer);

	};// Timers


	typedef Timer* (*Timer_CreateFun) ();

	void Timer_set_create_fun (Timer_CreateFun fun);


}// Reflex


#endif//EOH

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
reflexion-0.3.4 src/timer.h
reflexion-0.3.3 src/timer.h
reflexion-0.3.2 src/timer.h
reflexion-0.3.1 src/timer.h
reflexion-0.3 src/timer.h
reflexion-0.2.1 src/timer.h
reflexion-0.2 src/timer.h
reflexion-0.1.57 src/timer.h
reflexion-0.1.56 src/timer.h
reflexion-0.1.55 src/timer.h
reflexion-0.1.54 src/timer.h
reflexion-0.1.53 src/timer.h
reflexion-0.1.52 src/timer.h
reflexion-0.1.51 src/timer.h
reflexion-0.1.50 src/timer.h
reflexion-0.1.49 src/timer.h
reflexion-0.1.48 src/timer.h
reflexion-0.1.47 src/timer.h
reflexion-0.1.46 src/timer.h
reflexion-0.1.45 src/timer.h