summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-11-28 16:44:51 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-28 16:45:19 +0900
commitc602c075cada6eb56158d398c27f57b522bafdc7 (patch)
treec0eee22f772db67cbefb8503a11d904b2c4fd141 /src/lib/ector
parent507a705d5db24dcb6355eb8fba75a6835226b582 (diff)
ector: fix indentation.
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/ector_renderer.c43
-rw-r--r--src/lib/ector/ector_renderer.eo6
2 files changed, 24 insertions, 25 deletions
diff --git a/src/lib/ector/ector_renderer.c b/src/lib/ector/ector_renderer.c
index 90f26382ab..1c2026e4da 100644
--- a/src/lib/ector/ector_renderer.c
+++ b/src/lib/ector/ector_renderer.c
@@ -49,8 +49,8 @@ _ector_renderer_surface_set(Eo *obj EINA_UNUSED, Ector_Renderer_Data *pd, Ector_
49 49
50static void 50static void
51_ector_renderer_transformation_set(Eo *obj EINA_UNUSED, 51_ector_renderer_transformation_set(Eo *obj EINA_UNUSED,
52 Ector_Renderer_Data *pd, 52 Ector_Renderer_Data *pd,
53 const Eina_Matrix3 *m) 53 const Eina_Matrix3 *m)
54{ 54{
55 if (!m) 55 if (!m)
56 { 56 {
@@ -60,23 +60,22 @@ _ector_renderer_transformation_set(Eo *obj EINA_UNUSED,
60 else 60 else
61 { 61 {
62 if (!pd->m) pd->m = malloc(sizeof (Eina_Matrix3)); 62 if (!pd->m) pd->m = malloc(sizeof (Eina_Matrix3));
63 if (!pd->m) return ; 63 if (!pd->m) return;
64
65 memcpy(pd->m, m, sizeof (Eina_Matrix3)); 64 memcpy(pd->m, m, sizeof (Eina_Matrix3));
66 } 65 }
67} 66}
68 67
69static const Eina_Matrix3 * 68static const Eina_Matrix3 *
70_ector_renderer_transformation_get(const Eo *obj EINA_UNUSED, 69_ector_renderer_transformation_get(const Eo *obj EINA_UNUSED,
71 Ector_Renderer_Data *pd) 70 Ector_Renderer_Data *pd)
72{ 71{
73 return pd->m; 72 return pd->m;
74} 73}
75 74
76static void 75static void
77_ector_renderer_origin_set(Eo *obj EINA_UNUSED, 76_ector_renderer_origin_set(Eo *obj EINA_UNUSED,
78 Ector_Renderer_Data *pd, 77 Ector_Renderer_Data *pd,
79 double x, double y) 78 double x, double y)
80{ 79{
81 pd->origin.x = x; 80 pd->origin.x = x;
82 pd->origin.y = y; 81 pd->origin.y = y;
@@ -84,8 +83,8 @@ _ector_renderer_origin_set(Eo *obj EINA_UNUSED,
84 83
85static void 84static void
86_ector_renderer_origin_get(const Eo *obj EINA_UNUSED, 85_ector_renderer_origin_get(const Eo *obj EINA_UNUSED,
87 Ector_Renderer_Data *pd, 86 Ector_Renderer_Data *pd,
88 double *x, double *y) 87 double *x, double *y)
89{ 88{
90 if (x) *x = pd->origin.x; 89 if (x) *x = pd->origin.x;
91 if (y) *y = pd->origin.y; 90 if (y) *y = pd->origin.y;
@@ -93,23 +92,23 @@ _ector_renderer_origin_get(const Eo *obj EINA_UNUSED,
93 92
94static void 93static void
95_ector_renderer_visibility_set(Eo *obj EINA_UNUSED, 94_ector_renderer_visibility_set(Eo *obj EINA_UNUSED,
96 Ector_Renderer_Data *pd, 95 Ector_Renderer_Data *pd,
97 Eina_Bool v) 96 Eina_Bool v)
98{ 97{
99 pd->visibility = v; 98 pd->visibility = v;
100} 99}
101 100
102static Eina_Bool 101static Eina_Bool
103_ector_renderer_visibility_get(const Eo *obj EINA_UNUSED, 102_ector_renderer_visibility_get(const Eo *obj EINA_UNUSED,
104 Ector_Renderer_Data *pd) 103 Ector_Renderer_Data *pd)
105{ 104{
106 return pd->visibility; 105 return pd->visibility;
107} 106}
108 107
109static void 108static void
110_ector_renderer_color_set(Eo *obj EINA_UNUSED, 109_ector_renderer_color_set(Eo *obj EINA_UNUSED,
111 Ector_Renderer_Data *pd, 110 Ector_Renderer_Data *pd,
112 int r, int g, int b, int a) 111 int r, int g, int b, int a)
113{ 112{
114 pd->color.r = r; 113 pd->color.r = r;
115 pd->color.g = g; 114 pd->color.g = g;
@@ -119,8 +118,8 @@ _ector_renderer_color_set(Eo *obj EINA_UNUSED,
119 118
120static void 119static void
121_ector_renderer_color_get(const Eo *obj EINA_UNUSED, 120_ector_renderer_color_get(const Eo *obj EINA_UNUSED,
122 Ector_Renderer_Data *pd, 121 Ector_Renderer_Data *pd,
123 int *r, int *g, int *b, int *a) 122 int *r, int *g, int *b, int *a)
124{ 123{
125 if (r) *r = pd->color.r; 124 if (r) *r = pd->color.r;
126 if (g) *g = pd->color.g; 125 if (g) *g = pd->color.g;
@@ -130,22 +129,22 @@ _ector_renderer_color_get(const Eo *obj EINA_UNUSED,
130 129
131static void 130static void
132_ector_renderer_mask_set(Eo *obj EINA_UNUSED, 131_ector_renderer_mask_set(Eo *obj EINA_UNUSED,
133 Ector_Renderer_Data *pd, 132 Ector_Renderer_Data *pd,
134 Ector_Renderer *r) 133 Ector_Renderer *mask)
135{ 134{
136 efl_replace(&pd->mask, r); 135 efl_replace(&pd->mask, mask);
137} 136}
138 137
139static Ector_Renderer * 138static Ector_Renderer *
140_ector_renderer_mask_get(const Eo *obj EINA_UNUSED, 139_ector_renderer_mask_get(const Eo *obj EINA_UNUSED,
141 Ector_Renderer_Data *pd) 140 Ector_Renderer_Data *pd)
142{ 141{
143 return pd->mask; 142 return pd->mask;
144} 143}
145 144
146static Eina_Bool 145static Eina_Bool
147_ector_renderer_prepare(Eo *obj EINA_UNUSED, 146_ector_renderer_prepare(Eo *obj EINA_UNUSED,
148 Ector_Renderer_Data *pd) 147 Ector_Renderer_Data *pd)
149{ 148{
150 if (pd->mask) 149 if (pd->mask)
151 ector_renderer_prepare(pd->mask); 150 ector_renderer_prepare(pd->mask);
@@ -155,7 +154,7 @@ _ector_renderer_prepare(Eo *obj EINA_UNUSED,
155 154
156static unsigned int 155static unsigned int
157_ector_renderer_crc_get(const Eo *obj EINA_UNUSED, 156_ector_renderer_crc_get(const Eo *obj EINA_UNUSED,
158 Ector_Renderer_Data *pd) 157 Ector_Renderer_Data *pd)
159{ 158{
160 unsigned int crc; 159 unsigned int crc;
161 160
diff --git a/src/lib/ector/ector_renderer.eo b/src/lib/ector/ector_renderer.eo
index f47d1403f8..de669c0cc7 100644
--- a/src/lib/ector/ector_renderer.eo
+++ b/src/lib/ector/ector_renderer.eo
@@ -64,8 +64,8 @@ abstract Ector.Renderer (Efl.Object)
64 set { 64 set {
65 } 65 }
66 get { 66 get {
67 } 67 }
68 values { 68 values {
69 r: int; [[The red component of the given color.]] 69 r: int; [[The red component of the given color.]]
70 g: int; [[The green component of the given color.]] 70 g: int; [[The green component of the given color.]]
71 b: int; [[The blue component of the given color.]] 71 b: int; [[The blue component of the given color.]]
@@ -79,7 +79,7 @@ abstract Ector.Renderer (Efl.Object)
79 get { 79 get {
80 } 80 }
81 values { 81 values {
82 r: Ector.Renderer; [[Rendering mask]] 82 mask: Ector.Renderer; [[Rendering mask]]
83 } 83 }
84 } 84 }
85 @property crc { 85 @property crc {