ector: add top gradient renderer.

This commit is contained in:
Cedric BAIL 2015-04-03 16:15:04 +02:00
parent d59351732d
commit f701e1f099
3 changed files with 60 additions and 2 deletions

View File

@ -3,7 +3,8 @@
ector_eolian_files = \
lib/ector/ector_surface.eo \
lib/ector/ector_renderer_base.eo \
lib/ector/ector_renderer_shape.eo
lib/ector/ector_renderer_shape.eo \
lib/ector/ector_renderer_gradient.eo
ector_eolian_c = $(ector_eolian_files:%.eo=%.eo.c)
ector_eolian_h = $(ector_eolian_files:%.eo=%.eo.h)
@ -25,7 +26,8 @@ lib/ector/Ector.h
lib_ector_libector_la_SOURCES = \
lib/ector/ector_main.c \
lib/ector/ector_renderer_shape.c \
lib/ector/ector_renderer_base.c
lib/ector/ector_renderer_base.c \
lib/ector/ector_renderer_gradient.c
lib_ector_libector_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@ECTOR_CFLAGS@ \

View File

@ -0,0 +1,45 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <Eina.h>
#include <Ector.h>
#include "ector_private.h"
typedef struct _Ector_Renderer_Gradient_Data Ector_Renderer_Gradient_Data;
struct _Ector_Renderer_Gradient_Data
{
};
void
_ector_renderer_gradient_efl_graphics_gradient_stop_set(Eo *obj,
Ector_Renderer_Gradient_Data *pd,
const Efl_Graphics_Gradient_Stop *colors,
unsigned int length)
{
}
void
_ector_renderer_gradient_efl_graphics_gradient_stop_get(Eo *obj,
Ector_Renderer_Gradient_Data *pd,
const Efl_Graphics_Gradient_Stop **colors,
unsigned int *length)
{
}
void
_ector_renderer_gradient_efl_graphics_gradient_spread_set(Eo *obj,
Ector_Renderer_Gradient_Data *pd,
Efl_Graphics_Gradient_Spread s)
{
}
Efl_Graphics_Gradient_Spread
_ector_renderer_gradient_efl_graphics_gradient_spread_get(Eo *obj,
Ector_Renderer_Gradient_Data *pd)
{
}
#include "ector_renderer_gradient.eo.c"

View File

@ -0,0 +1,11 @@
abstract Ector.Renderer.Gradient (Ector.Renderer.Base, Efl.Graphics.Gradient)
{
eo_prefix: ector_renderer_gradient;
legacy_prefix: null;
implements {
Efl.Graphics.Gradient.stop.set;
Efl.Graphics.Gradient.stop.get;
Efl.Graphics.Gradient.spread.set;
Efl.Graphics.Gradient.spread.get;
}
}