summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_surface.c
blob: 13c86f0c6a67cfa18a9fe69780e6fd247c12db1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "efl_canvas_surface.h"

#define MY_CLASS EFL_CANVAS_SURFACE_MIXIN

EOLIAN static Eo *
_efl_canvas_surface_efl_object_constructor(Eo *eo, Efl_Canvas_Surface_Data *pd)
{
   eo = efl_constructor(eo_super(eo, MY_CLASS));
   pd->surf.version = EVAS_NATIVE_SURFACE_VERSION;
   return eo;
}

EOLIAN static void *
_efl_canvas_surface_native_buffer_get(Eo *obj EINA_UNUSED, Efl_Canvas_Surface_Data *pd)
{
   return pd->buffer;
}

#include "efl_canvas_surface.eo.c"