Sha256: db3fa1beda9b68850af994b97834d2f5d6af60cc38447cd12c52937892fcd4c1

Contents?: true

Size: 1.01 KB

Versions: 47

Compression:

Stored size: 1.01 KB

Contents

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


#include <xot/ref.h>
#include <xot/pimpl.h>
#include <reflex/defs.h>
#include <reflex/selector.h>


namespace Reflex
{


	class View;


	class Timer : public Xot::RefCountable<>, public HasSelector
	{

		typedef Timer This;

		public:

			typedef Xot::Ref<This> Ref;

			enum {ID_INVALID = 0, ID_FIRST};

			Timer ();

			virtual ~Timer ();

			virtual void fire ();

			virtual void stop ();

			virtual View* owner () const;

			virtual int id () const;

			virtual float interval () const;

			virtual void set_count (int count);

			virtual int      count () const;

			virtual bool is_finished () const;

			virtual operator bool () const;

			virtual bool operator ! () const;

			friend bool operator == (const This& lhs, const This& rhs);

			friend bool operator != (const This& lhs, const This& rhs);

			struct Data;

			Xot::PImpl<Data> self;

		protected:

			virtual SelectorPtr* get_selector_ptr ();

	};// Timer


}// Reflex


#endif//EOH

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
reflexion-0.3 include/reflex/timer.h
reflexion-0.2.1 include/reflex/timer.h
reflexion-0.2 include/reflex/timer.h
reflexion-0.1.57 include/reflex/timer.h
reflexion-0.1.56 include/reflex/timer.h
reflexion-0.1.55 include/reflex/timer.h
reflexion-0.1.54 include/reflex/timer.h
reflexion-0.1.53 include/reflex/timer.h
reflexion-0.1.52 include/reflex/timer.h
reflexion-0.1.51 include/reflex/timer.h
reflexion-0.1.50 include/reflex/timer.h
reflexion-0.1.49 include/reflex/timer.h
reflexion-0.1.48 include/reflex/timer.h
reflexion-0.1.47 include/reflex/timer.h
reflexion-0.1.46 include/reflex/timer.h
reflexion-0.1.45 include/reflex/timer.h
reflexion-0.1.44 include/reflex/timer.h
reflexion-0.1.43 include/reflex/timer.h
reflexion-0.1.42 include/reflex/timer.h
reflexion-0.1.41 include/reflex/timer.h