* ecore_evas: Add support for quartz backend in ecore_evas_new.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Oct 2009 15:00:50 +0000 (15:00 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Oct 2009 15:00:50 +0000 (15:00 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@43231 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas.c

index caa32ea..4a7d3c3 100644 (file)
@@ -130,6 +130,12 @@ ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine)
 #else
        return 0;
 #endif
+      case ECORE_EVAS_ENGINE_QUARTZ:
+#ifdef BUILD_ECORE_EVAS_QUARTZ
+        return 1;
+#else
+        return 0;
+#endif
       default:
        return 0;
        break;
@@ -317,6 +323,22 @@ _ecore_evas_constructor_software_x11(int x, int y, int w, int h, const char *ext
 }
 #endif
 
+#ifdef BUILD_ECORE_EVAS_QUARTZ
+static Ecore_Evas *
+_ecore_evas_constructor_quartz(int x, int y, int w, int h, const char *extra_options)
+{
+   char *name = NULL;
+   Ecore_Evas *ee;
+
+   _ecore_evas_parse_extra_options_str(extra_options, "name=", &name);
+   ee = ecore_evas_quartz_new(name, w, h);
+   free(name);
+
+   if (ee) ecore_evas_move(ee, x, y);
+   return ee;
+}
+#endif
+
 #ifdef BUILD_ECORE_EVAS_XRENDER_X11
 static Ecore_Evas *
 _ecore_evas_constructor_xrender_x11(int x, int y, int w, int h, const char *extra_options)
@@ -571,6 +593,9 @@ static const struct ecore_evas_engine _engines[] = {
 #ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
   {"buffer", _ecore_evas_constructor_buffer},
 #endif
+#ifdef BUILD_ECORE_EVAS_QUARTZ
+  {"quartz", _ecore_evas_constructor_quartz},
+#endif
   {NULL, NULL}
 };