Subhransu Mohanty
eb7af88ca4
ector: don't apply transformation on clips in Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-10 12:05:04 +02:00
Subhransu Mohanty
85312d56c6
ector: update cairo enum definitions and fix gradient spread issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:19 +02:00
Cedric BAIL
41a75f0b07
efl: follow Efl.VG naming by using bounds_get as an API name.
2015-04-03 16:38:08 +02:00
Cedric BAIL
65fb92831b
ector: there is no need for bounds get to return a Eina_Bool.
2015-04-03 16:38:06 +02:00
Cedric BAIL
510a3e42e8
ector: implements bounds_get for gradients in Cairo backend.
2015-04-03 16:37:55 +02:00
Cedric BAIL
2d9bccbfdc
ector: implements bounds_get for Ector_Renderer_Cairo_Shape.
2015-04-03 16:34:30 +02:00
Cedric BAIL
5310a3ea9c
ector: remove some warning from the Cairo backend.
2015-04-03 16:34:25 +02:00
Subhransu Mohanty
6c64f2db74
ector: fix transform issue in cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:19 +02:00
Subhransu Mohanty
b20872bf68
ector: add cairo_save() and cairo_restore() to fix the transformation issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:16 +02:00
Subhransu Mohanty
1f62465916
ector: add mul_col feature in Cairo backend and fixed color handling issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:10 +02:00
Subhransu Mohanty
a500249b69
ector: add clipping support for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:07 +02:00
Subhransu Mohanty
26d8641381
ector: gradient now uses spread while filling a shape for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:06 +02:00
Subhransu Mohanty
e22752d1eb
ector: use line width, join and cap style while stoking the path for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:05 +02:00
Subhransu Mohanty
f1e48f8de8
ector: don't draw the gradient if its used as fill object in Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:03 +02:00
Cedric BAIL
5e5b3750c7
ector: add warning if library is not found.
...
We use the system configuration to find it. So if it doesn't find it, adjust
your system.
2015-04-03 16:33:48 +02:00
Cedric BAIL
728fa26409
ector: use the new infrastructure to detect changed path for Cairo backend.
2015-04-03 16:33:40 +02:00
Cedric BAIL
de08a3bc04
ector: add reference point to define (0, 0) and don't repeat the same value everywhere.
2015-04-03 16:33:19 +02:00
Cedric BAIL
5613ca50ae
ector: remember last position and translate to Ector_Renderer origin position.
2015-04-03 16:33:07 +02:00
Cedric BAIL
cb1226ad41
ector: set the transformation matrix before any translation !
2015-04-03 16:33:04 +02:00
Cedric BAIL
f5fe46ec3c
ector: cairo require an identity matrix to be set instead of NULL.
...
NULL mean crash :-D
2015-04-03 16:33:00 +02:00
Cedric BAIL
8e05c58f2b
ector: use shift instead of divide when possible.
2015-04-03 16:31:50 +02:00
Cedric BAIL
e99774946c
ector: implementation of some common code in Ector.Renderer.Cairo.Base.
...
This require to make some class mixin instead of interface or abstract. So a lot
of class renaming is also necessary here.
2015-04-03 16:31:44 +02:00
Cedric BAIL
b54897dc27
ector: remove unecessary check for cairo context.
...
We now maintain an always available context.
2015-04-03 16:31:37 +02:00
Cedric BAIL
98b13ec944
ector: do not forget to get cairo symbol in Ector.Renderer.Cairo.Gradient_Linear.
2015-04-03 16:31:36 +02:00
Cedric BAIL
976e9de88a
ector: call eo_do_super on the right gradient class in Ector.Renderer.Cairo.Gradient_Radial.
2015-04-03 16:31:35 +02:00
Cedric BAIL
f41884153f
ector: slightly better implementation for gradient radial draw.
2015-04-03 16:31:33 +02:00
Cedric BAIL
2821fd58db
ector: on shutdown our ability to find cairo symbol may no be there anymore.
2015-04-03 16:31:32 +02:00
Cedric BAIL
9967da56ca
ector: remove useless printf !
2015-04-03 16:31:31 +02:00
Cedric BAIL
4f98cab04d
ector: fix inheritance in cairo backend.
2015-04-03 16:31:18 +02:00
Cedric BAIL
5ef81292a1
ector: fix setting context to always have one available.
2015-04-03 16:31:17 +02:00
Cedric BAIL
df43ec9487
ector: fix constructor/destructor of Ector_Cairo backend.
2015-04-03 16:30:48 +02:00
Cedric BAIL
0f6328b04f
efl: introduce EFL_GFX_CHANGED event and properly propagate up to Evas.
2015-04-03 16:30:42 +02:00
Cedric BAIL
ac8d923090
efl: add path operation to Efl.Gfx.Shape.
2015-04-03 16:23:28 +02:00
Cedric BAIL
c000ee8099
efl: rename namespace Graphics to Gfx.
2015-04-03 16:23:16 +02:00
Cedric BAIL
ba47b47eb2
efl: make path a property actually.
2015-04-03 16:23:10 +02:00
Cedric BAIL
5bb35d5598
efl: simplify the enum to only use Cubic Bezier curve.
...
So SVG support all kind of primitive, but really they are just sugar
on top of the simpler cubic bezier curve. Let's simplify our backend
by just supporting them and the simple line. We still provide all
the sugar, but via helper function that do convert to the right
number of Bezier curve.
2015-04-03 16:23:07 +02:00
Cedric BAIL
3f3fb4cac7
ector: handle color multiplier in the function declaration.
2015-04-03 16:22:16 +02:00
Cedric BAIL
5d98201236
ector: reorder macro for easier reuse.
2015-04-03 16:22:15 +02:00
Cedric BAIL
aad1cf28f6
ector: prepare doesn't need surface, as it should always be the parent.
2015-04-03 16:22:14 +02:00
Cedric BAIL
74b2eed158
ector: first implementation of an Cairo shape renderer.
...
Note: still a lot on the todo, but it should display something that follow
the correct path at least. Thanks librsvg for helping a lot.
2015-04-03 16:22:11 +02:00
Cedric BAIL
7ba0f46a39
ector: remove surface from draw command as it should be drawn on the parent, always !
2015-04-03 16:22:10 +02:00
Cedric BAIL
60e4edd7b9
ector: start implementing radial gradient in cairo backend.
2015-04-03 16:22:08 +02:00
Cedric BAIL
48beef6b21
ector: fix cairo linear gradient implementation.
2015-04-03 16:22:07 +02:00
Cedric BAIL
d6cd365a48
ector: now import header of all cairo renderer.
2015-04-03 16:22:04 +02:00
Cedric BAIL
7417c034bf
ector: cairo need a specialized fill function.
2015-04-03 16:22:03 +02:00
Cedric BAIL
ea8f37e47d
ector: first try at implementing linear gradient renderer.
2015-04-03 16:22:02 +02:00
Cedric BAIL
fdf3942aa0
ector: first implementation of a Cairo surface.
2015-04-03 16:22:01 +02:00
Cedric BAIL
33d538643a
ector: add a base interface for all cairo renderer.
2015-04-03 16:22:00 +02:00
Cedric BAIL
fedfbf4bf6
ector: fix building of cairo backend.
2015-04-03 16:21:58 +02:00
Cedric BAIL
fcbc29f85e
ector: move dependency around. Evas now depend on Ector.
2015-04-03 16:21:57 +02:00