ector: start the implementation of the Generic surface.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:18:30 +0000 (16:18 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:18:30 +0000 (16:18 +0200)
src/Makefile_Ector.am
src/lib/ector/ector_generic_surface.eo
src/lib/ector/ector_surface.c [new file with mode: 0644]

index f907ee1..7b47e31 100644 (file)
@@ -27,6 +27,7 @@ lib/ector/Ector.h
 
 lib_ector_libector_la_SOURCES = \
 lib/ector/ector_main.c \
+lib/ector/ector_surface.c \
 lib/ector/ector_renderer_shape.c \
 lib/ector/ector_renderer_base.c \
 lib/ector/ector_renderer_gradient.c \
index c852943..18ebd47 100644 (file)
@@ -34,7 +34,6 @@ abstract Ector.Generic.Surface (Eo.Base)
       }
    }
    implements {
-      @virtual .size.set;
-      @virtual .size.get;
+      @virtual .renderer_factory_new;
    }
 }
diff --git a/src/lib/ector/ector_surface.c b/src/lib/ector/ector_surface.c
new file mode 100644 (file)
index 0000000..eda912f
--- /dev/null
@@ -0,0 +1,42 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <Eina.h>
+#include <Ector.h>
+
+#include "ector_private.h"
+
+typedef struct _Ector_Generic_Surface_Data Ector_Generic_Surface_Data;
+struct _Ector_Generic_Surface_Data
+{
+};
+
+void
+_ector_generic_surface_size_set(Eo *obj,
+                                Ector_Generic_Surface_Data *pd,
+                                int w, int h)
+{
+}
+
+void
+_ector_generic_surface_size_get(Eo *obj,
+                                Ector_Generic_Surface_Data *pd,
+                                int *w, int *h)
+{
+}
+
+Eina_Bool
+_ector_generic_surface_update_push(Eo *obj,
+                                   Ector_Generic_Surface_Data *pd,
+                                   const Eina_Rectangle *r,
+                                   Ector_Update_Type type)
+{
+}
+
+Eina_Bool
+_ector_generic_surface_update_reset(Eo *obj, Ector_Generic_Surface_Data *pd)
+{
+}
+
+#include "ector_generic_surface.eo.c"