Enlightenment CVS committal Author : andreas Project : e17 Module : proto/eflpp
Dir : e17/proto/eflpp/src/ecore Modified Files: eflpp_ecore_window.cpp eflpp_ecore_window.h Log Message: add isEngineTypeSupported() as static function to be able to use it before creating a new window. =================================================================== RCS file: /cvs/e/e17/proto/eflpp/src/ecore/eflpp_ecore_window.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- eflpp_ecore_window.cpp 28 Aug 2007 22:02:00 -0000 1.1 +++ eflpp_ecore_window.cpp 3 Sep 2007 21:28:10 -0000 1.2 @@ -127,6 +127,11 @@ Dout( dc::notice, "EcoreEvasWindow::postRenderEvent()" ); } +bool EcoreEvasWindow::isEngineTypeSupported (EngineType et) +{ + return ecore_evas_engine_type_supported_get (static_cast <Ecore_Evas_Engine_Type> (et)); +} + bool EcoreEvasWindow::canClose() const { return true; =================================================================== RCS file: /cvs/e/e17/proto/eflpp/src/ecore/eflpp_ecore_window.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- eflpp_ecore_window.h 28 Aug 2007 22:02:00 -0000 1.1 +++ eflpp_ecore_window.h 3 Sep 2007 21:28:10 -0000 1.2 @@ -20,7 +20,19 @@ public: enum Event { Resize, Move, Show, Hide, DeleteRequest, Destroy, FocusIn, FocusOut, MouseIn, MouseOut, PreRender, PostRender }; - + + enum EngineType + { + SoftwareX11 = ECORE_EVAS_ENGINE_SOFTWARE_X11, + SoftwareFB = ECORE_EVAS_ENGINE_SOFTWARE_FB, + GLX11 = ECORE_EVAS_ENGINE_GL_X11, + SoftwareBuffer = ECORE_EVAS_ENGINE_SOFTWARE_BUFFER, + XRenderX11 = ECORE_EVAS_ENGINE_XRENDER_X11, + DirectFB = ECORE_EVAS_ENGINE_DIRECTFB, + SoftwareX11_16 = ECORE_EVAS_ENGINE_SOFTWARE_X11_16, + SDL = ECORE_EVAS_ENGINE_SDL + }; + public: virtual ~EcoreEvasWindow(); @@ -46,6 +58,8 @@ * The default implementation returns true. **/ virtual bool canClose() const; + + static bool isEngineTypeSupported (EngineType et); /* Window Management */ void move( const Point& ); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs