summaryrefslogtreecommitdiff
path: root/src/lib/ector/ector_renderer_buffer.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-11 12:57:06 +0100
committerTom Hacohen <tom@stosb.com>2016-05-11 12:57:55 +0100
commit28a2d34ae20885d229accd1c2e482e284be79afc (patch)
tree9a2a2b59eec6734ffd605d0ba495f867d56c05fc /src/lib/ector/ector_renderer_buffer.c
parent1c0ec6788f8f14cb1fea2dd0b85868462243e395 (diff)
Ector generic: Remove .Generic and .Base (hack no longer needed).
Diffstat (limited to 'src/lib/ector/ector_renderer_buffer.c')
-rw-r--r--src/lib/ector/ector_renderer_buffer.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/ector/ector_renderer_buffer.c b/src/lib/ector/ector_renderer_buffer.c
new file mode 100644
index 0000000000..4ba7287ee4
--- /dev/null
+++ b/src/lib/ector/ector_renderer_buffer.c
@@ -0,0 +1,55 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#else
4# define EFL_BETA_API_SUPPORT
5#endif
6
7#include <Eo.h>
8#include "ector_private.h"
9#include "ector_renderer_buffer.eo.h"
10
11#define MY_CLASS ECTOR_RENDERER_BUFFER_MIXIN
12
13EOLIAN static void
14_ector_renderer_buffer_efl_gfx_fill_fill_get(Eo *obj EINA_UNUSED, Ector_Renderer_Buffer_Data *pd, int *x, int *y, int *w, int *h)
15{
16 if (x) *x = pd->fill.x;
17 if (y) *y = pd->fill.y;
18 if (w) *w = pd->fill.w;
19 if (h) *h = pd->fill.h;
20}
21
22EOLIAN static void
23_ector_renderer_buffer_efl_gfx_fill_fill_set(Eo *obj EINA_UNUSED, Ector_Renderer_Buffer_Data *pd, int x, int y, int w, int h)
24{
25 if (w < 0) w = 0;
26 if (h < 0) h = 0;
27 pd->fill.x = x;
28 pd->fill.y = y;
29 pd->fill.w = w;
30 pd->fill.h = h;
31}
32
33EOLIAN static void
34_ector_renderer_buffer_buffer_set(Eo *obj EINA_UNUSED, Ector_Renderer_Buffer_Data *pd, Ector_Buffer *buf)
35{
36 _eo_xrefplace(&pd->eo_buffer, buf, obj);
37}
38
39EOLIAN static Ector_Buffer *
40_ector_renderer_buffer_buffer_get(Eo *obj EINA_UNUSED, Ector_Renderer_Buffer_Data *pd)
41{
42 return pd->eo_buffer;
43}
44
45EOLIAN static Eo_Base *
46_ector_renderer_buffer_eo_base_constructor(Eo *obj, Ector_Renderer_Buffer_Data *pd EINA_UNUSED)
47{
48 Eo_Base *ret;
49
50 ret = eo_constructor(eo_super(obj, MY_CLASS));
51
52 return ret;
53}
54
55#include "ector_renderer_buffer.eo.c"