Sha256: fd0404f025df642cacad699e69b3f496b4d040bb4005ae5239980bcbd16e59fe

Contents?: true

Size: 869 Bytes

Versions: 7

Compression:

Stored size: 869 Bytes

Contents

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


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


namespace Reflex
{


	class Application : public Xot::RefCountable<>
	{

		typedef Application This;

		public:

			typedef Xot::Ref<This> Ref;

			Application ();

			virtual void start ();

			virtual void quit ();

			virtual void    set_name (const char* name);

			virtual const char* name () const;

			virtual void on_start (Event* e);

			virtual void on_quit (Event* e);

			virtual void on_preference (Event* e);

			virtual void on_about (Event* e);

			operator bool () const;

			bool operator ! () const;

			struct Data;

			Xot::PImpl<Data> self;

		protected:

			virtual ~Application ();

	};// Application


	Application* app ();


}// Reflex


#endif//EOH

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reflexion-0.1.12 include/reflex/application.h
reflexion-0.1.11 include/reflex/application.h
reflexion-0.1.10 include/reflex/application.h
reflexion-0.1.9.1 include/reflex/application.h
reflexion-0.1.9 include/reflex/application.h
reflexion-0.1.8 include/reflex/application.h
reflexion-0.1.7 include/reflex/application.h