aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/efl_canvas_snapshot.c
blob: 9f77ce6c92fb7d72e7ad18fb78d3ecc206e8f3b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "evas_image_private.h"
#include "efl_canvas_snapshot.eo.h"

#define MY_CLASS EFL_CANVAS_SNAPSHOT_CLASS

EOLIAN static Eo *
_efl_canvas_snapshot_efl_object_constructor(Eo *eo_obj, void *pd EINA_UNUSED)
{
   Evas_Object_Protected_Data *obj;

   eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
   if (!eo_obj) return NULL;

   efl_canvas_object_pass_events_set(eo_obj, EINA_TRUE);

   obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
   EINA_COW_STATE_WRITE_BEGIN(obj, sw, cur)
     sw->snapshot = EINA_TRUE;
   EINA_COW_STATE_WRITE_END(obj, sw, cur);

   return eo_obj;
}

#include "efl_canvas_snapshot.eo.c"