lib/efl/interfaces/efl_player.eo \
lib/efl/interfaces/efl_text.eo \
lib/efl/interfaces/efl_text_properties.eo \
- lib/efl/interfaces/efl_geometry_shape.eo
+ lib/efl/interfaces/efl_graphics_shape.eo
efl_eolian_files_h = $(efl_eolian_files:%.eo=%.eo.h)
efl_eolian_files_c = $(efl_eolian_files:%.eo=%.eo.c)
int r, g, b, a;
} color;
- Efl_Geometry_Dash *dash;
+ Efl_Graphics_Dash *dash;
unsigned int dash_length;
- Efl_Geometry_Cap cap;
- Efl_Geometry_Cap join;
+ Efl_Graphics_Cap cap;
+ Efl_Graphics_Cap join;
} stroke;
};
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_scale_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_scale_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
double s)
{
}
double
-_ector_renderer_shape_efl_geometry_shape_stroke_scale_get(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_scale_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
return pd->stroke.scale;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_color_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_color_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
int r, int g, int b, int a)
{
void
-_ector_renderer_shape_efl_geometry_shape_stroke_color_get(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_color_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
int *r, int *g, int *b, int *a)
{
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_width_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_width_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
double w)
{
}
double
-_ector_renderer_shape_efl_geometry_shape_stroke_width_get(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_width_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
return pd->stroke.width;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_location_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_location_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
double centered)
{
}
double
-_ector_renderer_shape_efl_geometry_shape_stroke_location_get(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_location_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
return pd->stroke.centered;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
- const Efl_Geometry_Dash *dash,
+ const Efl_Graphics_Dash *dash,
unsigned int length)
{
- Efl_Geometry_Dash *tmp;
+ Efl_Graphics_Dash *tmp;
if (!dash)
{
return ;
}
- tmp = realloc(pd->stroke.dash, length * sizeof (Efl_Geometry_Dash));
+ tmp = realloc(pd->stroke.dash, length * sizeof (Efl_Graphics_Dash));
if (!tmp) return ;
- memcpy(tmp, dash, length * sizeof (Efl_Geometry_Dash));
+ memcpy(tmp, dash, length * sizeof (Efl_Graphics_Dash));
pd->stroke.dash = tmp;
pd->stroke.dash_length = length;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_dash_get(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_dash_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
- const Efl_Geometry_Dash **dash,
+ const Efl_Graphics_Dash **dash,
unsigned int *length)
{
if (dash) *dash = pd->stroke.dash;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_cap_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_cap_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
- Efl_Geometry_Cap c)
+ Efl_Graphics_Cap c)
{
pd->stroke.cap = c;
}
-Efl_Geometry_Cap
-_ector_renderer_shape_efl_geometry_shape_stroke_cap_get(Eo *obj EINA_UNUSED,
+Efl_Graphics_Cap
+_ector_renderer_shape_efl_graphics_shape_stroke_cap_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
return pd->stroke.cap;
}
void
-_ector_renderer_shape_efl_geometry_shape_stroke_join_set(Eo *obj EINA_UNUSED,
+_ector_renderer_shape_efl_graphics_shape_stroke_join_set(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd,
- Efl_Geometry_Join j)
+ Efl_Graphics_Join j)
{
pd->stroke.join = j;
}
-Efl_Geometry_Join
-_ector_renderer_shape_efl_geometry_shape_stroke_join_get(Eo *obj EINA_UNUSED,
+Efl_Graphics_Join
+_ector_renderer_shape_efl_graphics_shape_stroke_join_get(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
return pd->stroke.join;
}
Eina_Bool
-_ector_renderer_shape_efl_geometry_shape_path_set(Eo *obj,
+_ector_renderer_shape_efl_graphics_shape_path_set(Eo *obj,
Ector_Renderer_Shape_Data *pd,
- const Efl_Geometry_Path_Command *op,
+ const Efl_Graphics_Path_Command *op,
const double *points)
{
}
-class Ector.Renderer.Shape (Ector.Renderer.Base, Efl.Geometry.Shape)
+class Ector.Renderer.Shape (Ector.Renderer.Base, Efl.Graphics.Shape)
{
eo_prefix: ector_renderer_shape;
legacy_prefix: null;
}
}
implements {
- Efl.Geometry.Shape.stroke_scale;
- Efl.Geometry.Shape.stroke_color;
- Efl.Geometry.Shape.stroke_width;
- Efl.Geometry.Shape.stroke_location;
- Efl.Geometry.Shape.stroke_dash;
- Efl.Geometry.Shape.stroke_cap;
- Efl.Geometry.Shape.stroke_join;
- Efl.Geometry.Shape.path_set;
+ Efl.Graphics.Shape.stroke_scale;
+ Efl.Graphics.Shape.stroke_color;
+ Efl.Graphics.Shape.stroke_width;
+ Efl.Graphics.Shape.stroke_location;
+ Efl.Graphics.Shape.stroke_dash;
+ Efl.Graphics.Shape.stroke_cap;
+ Efl.Graphics.Shape.stroke_join;
+ Efl.Graphics.Shape.path_set;
Ector.Renderer.Base.prepare;
Eo.Base.constructor;
Eo.Base.destructor;
* Path command enum.
*
* @since 1.13
- * @ingroup Efl_Geometry_Shape
+ * @ingroup Efl_Graphics_Shape
*/
-typedef enum _Efl_Geometry_Path_Command
+typedef enum _Efl_Graphics_Path_Command
{
- EFL_GEOMETRY_PATH_COMMAND_TYPE_END = 0, /**< End of the stream of command */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_MOVE_TO, /**< A move command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_LINE_TO, /**< A line command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_QUADRATIC_TO, /**< A quadratic command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_SQUADRATIC_TO, /**< A smooth quadratic command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_CUBIC_TO, /**< A cubic command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_SCUBIC_TO, /**< A smooth cubic command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_ARC_TO, /**< An arc command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_CLOSE, /**< A close command type */
- EFL_GEOMETRY_PATH_COMMAND_TYPE_LAST, /**< Not a valid command, but last one according to this version header */
-} Efl_Geometry_Path_Command;
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_END = 0, /**< End of the stream of command */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_MOVE_TO, /**< A move command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_LINE_TO, /**< A line command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_QUADRATIC_TO, /**< A quadratic command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_SQUADRATIC_TO, /**< A smooth quadratic command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_CUBIC_TO, /**< A cubic command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_SCUBIC_TO, /**< A smooth cubic command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_ARC_TO, /**< An arc command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_CLOSE, /**< A close command type */
+ EFL_GRAPHICS_PATH_COMMAND_TYPE_LAST, /**< Not a valid command, but last one according to this version header */
+} Efl_Graphics_Path_Command;
/**
* Type describing dash
* @since 1.13
*/
-typedef struct _Efl_Geometry_Dash Efl_Geometry_Dash;
-struct _Efl_Geometry_Dash
+typedef struct _Efl_Graphics_Dash Efl_Graphics_Dash;
+struct _Efl_Graphics_Dash
{
double length;
double gap;
* Type defining how a line end.
* @since 1.13
*/
-typedef enum _Efl_Geometry_Cap
+typedef enum _Efl_Graphics_Cap
{
- EFL_GEOMETRY_CAP_BUTT,
- EFL_GEOMETRY_CAP_ROUND,
- EFL_GEOMETRY_CAP_SQUARE,
- EFL_GEOMETRY_CAP_LAST
-} Efl_Geometry_Cap;
+ EFL_GRAPHICS_CAP_BUTT,
+ EFL_GRAPHICS_CAP_ROUND,
+ EFL_GRAPHICS_CAP_SQUARE,
+ EFL_GRAPHICS_CAP_LAST
+} Efl_Graphics_Cap;
/**
* Type defining how join between path are drawn.
* @since 1.13
*/
-typedef enum _Efl_Geometry_Join
+typedef enum _Efl_Graphics_Join
{
- EFL_GEOMETRY_JOIN_MITER,
- EFL_GEOMETRY_JOIN_ROUND,
- EFL_GEOMETRY_JOIN_BEVEL,
- EFL_GEOMETRY_JOIN_LAST
-} Efl_Geometry_Join;
+ EFL_GRAPHICS_JOIN_MITER,
+ EFL_GRAPHICS_JOIN_ROUND,
+ EFL_GRAPHICS_JOIN_BEVEL,
+ EFL_GRAPHICS_JOIN_LAST
+} Efl_Graphics_Join;
-#include "interfaces/efl_geometry_shape.eo.h"
+#include "interfaces/efl_graphics_shape.eo.h"
#if defined ( __cplusplus )
}
-interface Efl.Geometry.Shape
+interface Efl.Graphics.Shape
{
legacy_prefix: null;
properties {
get {
}
values {
- const(Efl_Geometry_Dash) *dash;
+ const(Efl_Graphics_Dash) *dash;
uint length;
}
}
get {
}
values {
- Efl_Geometry_Cap c;
+ Efl_Graphics_Cap c;
}
}
stroke_join {
get {
}
values {
- Efl_Geometry_Join j;
+ Efl_Graphics_Join j;
}
}
}
path_set {
return: bool;
params {
- @in const(Efl_Geometry_Path_Command) *op;
+ @in const(Efl_Graphics_Path_Command) *op;
@in const(double) *points;
}
}
#include "interfaces/efl_text.eo.c"
#include "interfaces/efl_text_properties.eo.c"
-#include "interfaces/efl_geometry_shape.eo.c"
+#include "interfaces/efl_graphics_shape.eo.c"
};
Eina_Bool
-efl_geometry_path_dup(Efl_Geometry_Path_Command **out_cmd, double **out_pts,
- const Efl_Geometry_Path_Command *in_cmd, const double *in_pts);
+efl_graphics_path_dup(Efl_Graphics_Path_Command **out_cmd, double **out_pts,
+ const Efl_Graphics_Path_Command *in_cmd, const double *in_pts);
#endif
typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data;
struct _Evas_VG_Shape_Data
{
- Efl_Geometry_Path_Command *op;
+ Efl_Graphics_Path_Command *op;
double *points;
Evas_VG_Node *fill;
struct {
- Efl_Geometry_Dash *dash;
+ Efl_Graphics_Dash *dash;
Evas_VG_Node *fill;
Evas_VG_Node *marker;
unsigned int dash_count;
- Efl_Geometry_Cap cap;
- Efl_Geometry_Join join;
+ Efl_Graphics_Cap cap;
+ Efl_Graphics_Join join;
} stroke;
unsigned int op_count;
};
Eina_Bool
-_evas_vg_shape_efl_geometry_shape_path_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_path_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
- const Efl_Geometry_Path_Command *op,
+ const Efl_Graphics_Path_Command *op,
const double *points)
{
free(pd->points);
free(pd->op);
pd->op = NULL;
- return efl_geometry_path_dup(&pd->op, &pd->points, op, points);
+ return efl_graphics_path_dup(&pd->op, &pd->points, op, points);
}
Eina_Bool
_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd EINA_UNUSED)
{
eo_do_super(obj, MY_CLASS, eo_constructor());
- pd->stroke.cap = EFL_GEOMETRY_CAP_BUTT;
- pd->stroke.join = EFL_GEOMETRY_JOIN_MITER;
+ pd->stroke.cap = EFL_GRAPHICS_CAP_BUTT;
+ pd->stroke.join = EFL_GRAPHICS_JOIN_MITER;
pd->stroke.scale = 1;
pd->stroke.a = 1;
pd->stroke.centered = 0.5;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_scale_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_scale_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
double s)
{
}
double
-_evas_vg_shape_efl_geometry_shape_stroke_scale_get(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_scale_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd)
{
return pd->stroke.scale;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_color_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_color_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
int r, int g, int b, int a)
{
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_color_get(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_color_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
int *r, int *g, int *b, int *a)
{
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_width_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_width_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
double w)
{
}
double
-_evas_vg_shape_efl_geometry_shape_stroke_width_get(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_width_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd)
{
return pd->stroke.width;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_location_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_location_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
double centered)
{
}
double
-_evas_vg_shape_efl_geometry_shape_stroke_location_get(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_location_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd)
{
return pd->stroke.centered;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
- const Efl_Geometry_Dash *dash,
+ const Efl_Graphics_Dash *dash,
unsigned int length)
{
free(pd->stroke.dash);
pd->stroke.dash = NULL;
pd->stroke.dash_count = 0;
- pd->stroke.dash = malloc(sizeof (Efl_Geometry_Dash) * length);
+ pd->stroke.dash = malloc(sizeof (Efl_Graphics_Dash) * length);
if (!pd->stroke.dash) return ;
- memcpy(pd->stroke.dash, dash, sizeof (Efl_Geometry_Dash) * length);
+ memcpy(pd->stroke.dash, dash, sizeof (Efl_Graphics_Dash) * length);
pd->stroke.dash_count = length;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_dash_get(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_dash_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
- const Efl_Geometry_Dash **dash,
+ const Efl_Graphics_Dash **dash,
unsigned int *length)
{
if (dash) *dash = pd->stroke.dash;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_cap_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_cap_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
- Efl_Geometry_Cap c)
+ Efl_Graphics_Cap c)
{
pd->stroke.cap = c;
}
-Efl_Geometry_Cap
-_evas_vg_shape_efl_geometry_shape_stroke_cap_get(Eo *obj EINA_UNUSED,
+Efl_Graphics_Cap
+_evas_vg_shape_efl_graphics_shape_stroke_cap_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd)
{
return pd->stroke.cap;
}
void
-_evas_vg_shape_efl_geometry_shape_stroke_join_set(Eo *obj EINA_UNUSED,
+_evas_vg_shape_efl_graphics_shape_stroke_join_set(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd,
- Efl_Geometry_Join j)
+ Efl_Graphics_Join j)
{
pd->stroke.join = j;
}
-Efl_Geometry_Join
-_evas_vg_shape_efl_geometry_shape_stroke_join_get(Eo *obj EINA_UNUSED,
+Efl_Graphics_Join
+_evas_vg_shape_efl_graphics_shape_stroke_join_get(Eo *obj EINA_UNUSED,
Evas_VG_Shape_Data *pd)
{
return pd->stroke.join;
-class Evas.VG_Shape (Evas.VG_Node, Efl.Geometry.Shape)
+class Evas.VG_Shape (Evas.VG_Node, Efl.Graphics.Shape)
{
eo_prefix: evas_vg_shape;
legacy_prefix: null;
}
}
implements {
- Efl.Geometry.Shape.stroke_scale;
- Efl.Geometry.Shape.stroke_color;
- Efl.Geometry.Shape.stroke_width;
- Efl.Geometry.Shape.stroke_location;
- Efl.Geometry.Shape.stroke_dash;
- Efl.Geometry.Shape.stroke_cap;
- Efl.Geometry.Shape.stroke_join;
- Efl.Geometry.Shape.path_set;
+ Efl.Graphics.Shape.stroke_scale;
+ Efl.Graphics.Shape.stroke_color;
+ Efl.Graphics.Shape.stroke_width;
+ Efl.Graphics.Shape.stroke_location;
+ Efl.Graphics.Shape.stroke_dash;
+ Efl.Graphics.Shape.stroke_cap;
+ Efl.Graphics.Shape.stroke_join;
+ Efl.Graphics.Shape.path_set;
Eo.Base.constructor;
Eo.Base.destructor;
}
#include "evas_vg_private.h"
static unsigned int
-efl_geometry_path_command_length(Efl_Geometry_Path_Command command)
+efl_graphics_path_command_length(Efl_Graphics_Path_Command command)
{
switch (command)
{
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_END: return 0;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_MOVE_TO: return 2;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_LINE_TO: return 2;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_QUADRATIC_TO: return 4;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_SQUADRATIC_TO: return 2;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_CUBIC_TO: return 6;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_SCUBIC_TO: return 4;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_ARC_TO: return 5;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_CLOSE: return 0;
- case EFL_GEOMETRY_PATH_COMMAND_TYPE_LAST: return 0;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_END: return 0;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_MOVE_TO: return 2;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_LINE_TO: return 2;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_QUADRATIC_TO: return 4;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_SQUADRATIC_TO: return 2;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_CUBIC_TO: return 6;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_SCUBIC_TO: return 4;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_ARC_TO: return 5;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_CLOSE: return 0;
+ case EFL_GRAPHICS_PATH_COMMAND_TYPE_LAST: return 0;
}
return 0;
}
static inline void
-_efl_geometry_path_length(const Efl_Geometry_Path_Command *commands,
- unsigned int *cmd_length,
- unsigned int *pts_length)
+_efl_graphics_path_length(const Efl_Graphics_Path_Command *commands,
+ unsigned int *cmd_length,
+ unsigned int *pts_length)
{
if (commands)
- while (commands[*cmd_length] != EFL_GEOMETRY_PATH_COMMAND_TYPE_END)
+ while (commands[*cmd_length] != EFL_GRAPHICS_PATH_COMMAND_TYPE_END)
{
- *pts_length += efl_geometry_path_command_length(commands[*cmd_length]);
+ *pts_length += efl_graphics_path_command_length(commands[*cmd_length]);
(*cmd_length)++;
}
}
static inline Eina_Bool
-efl_geometry_path_grow(Efl_Geometry_Path_Command command,
- Efl_Geometry_Path_Command **commands, double **points,
- double **offset_point)
+efl_graphics_path_grow(Efl_Graphics_Path_Command command,
+ Efl_Graphics_Path_Command **commands, double **points,
+ double **offset_point)
{
- Efl_Geometry_Path_Command *cmd_tmp;
+ Efl_Graphics_Path_Command *cmd_tmp;
double *pts_tmp;
unsigned int cmd_length = 0, pts_length = 0;
- _efl_geometry_path_length(*commands, &cmd_length, &pts_length);
+ _efl_graphics_path_length(*commands, &cmd_length, &pts_length);
- if (efl_geometry_path_command_length(command))
+ if (efl_graphics_path_command_length(command))
{
- pts_length += efl_geometry_path_command_length(command);
+ pts_length += efl_graphics_path_command_length(command);
pts_tmp = realloc(*points, pts_length * sizeof (double));
if (!pts_tmp) return EINA_FALSE;
*points = pts_tmp;
- *offset_point = *points + pts_length - efl_geometry_path_command_length(command);
+ *offset_point = *points + pts_length - efl_graphics_path_command_length(command);
}
cmd_tmp = realloc(*commands,
- (cmd_length + 1) * sizeof (Efl_Geometry_Path_Command));
+ (cmd_length + 1) * sizeof (Efl_Graphics_Path_Command));
if (!cmd_tmp) return EINA_FALSE;
*commands = cmd_tmp;
// Append the command
cmd_tmp[cmd_length - 1] = command;
// NULL terminate the stream
- cmd_tmp[cmd_length] = EFL_GEOMETRY_PATH_COMMAND_TYPE_END;
+ cmd_tmp[cmd_length] = EFL_GRAPHICS_PATH_COMMAND_TYPE_END;
return EINA_TRUE;
}
Eina_Bool
-efl_geometry_path_dup(Efl_Geometry_Path_Command **out_cmd, double **out_pts,
- const Efl_Geometry_Path_Command *in_cmd, const double *in_pts)
+efl_graphics_path_dup(Efl_Graphics_Path_Command **out_cmd, double **out_pts,
+ const Efl_Graphics_Path_Command *in_cmd, const double *in_pts)
{
unsigned int cmd_length = 0, pts_length = 0;
- _efl_geometry_path_length(in_cmd, &cmd_length, &pts_length);
+ _efl_graphics_path_length(in_cmd, &cmd_length, &pts_length);
*out_pts = malloc(pts_length * sizeof (double));
- *out_cmd = malloc(cmd_length * sizeof (Efl_Geometry_Path_Command));
+ *out_cmd = malloc(cmd_length * sizeof (Efl_Graphics_Path_Command));
if (!(*out_pts) || !(*out_cmd))
{
free(*out_pts);
}
memcpy(*out_pts, in_pts, pts_length * sizeof (double));
- memcpy(*out_cmd, in_cmd, cmd_length * sizeof (Efl_Geometry_Path_Command));
+ memcpy(*out_cmd, in_cmd, cmd_length * sizeof (Efl_Graphics_Path_Command));
return EINA_TRUE;
}
void
-efl_geometry_path_append_move_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y)
+efl_graphics_path_append_move_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_MOVE_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_MOVE_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_line_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y)
+efl_graphics_path_append_line_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_LINE_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_LINE_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_quadratic_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y, double ctrl_x, double ctrl_y)
+efl_graphics_path_append_quadratic_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y, double ctrl_x, double ctrl_y)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_QUADRATIC_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_QUADRATIC_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_squadratic_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y)
+efl_graphics_path_append_squadratic_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_SQUADRATIC_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_SQUADRATIC_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_cubic_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y,
- double ctrl_x0, double ctrl_y0,
- double ctrl_x1, double ctrl_y1)
+efl_graphics_path_append_cubic_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y,
+ double ctrl_x0, double ctrl_y0,
+ double ctrl_x1, double ctrl_y1)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_CUBIC_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_CUBIC_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_scubic_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y,
- double ctrl_x, double ctrl_y)
+efl_graphics_path_append_scubic_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y,
+ double ctrl_x, double ctrl_y)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_SCUBIC_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_SCUBIC_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_arc_to(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y,
- double rx, double ry,
- double angle)
+efl_graphics_path_append_arc_to(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y,
+ double rx, double ry,
+ double angle)
{
double *offset_point;
- if (!efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_ARC_TO,
+ if (!efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_ARC_TO,
commands, points, &offset_point))
return ;
}
void
-efl_geometry_path_append_close(Efl_Geometry_Path_Command **commands, double **points)
+efl_graphics_path_append_close(Efl_Graphics_Path_Command **commands, double **points)
{
double *offset_point;
- efl_geometry_path_grow(EFL_GEOMETRY_PATH_COMMAND_TYPE_ARC_TO,
+ efl_graphics_path_grow(EFL_GRAPHICS_PATH_COMMAND_TYPE_ARC_TO,
commands, points, &offset_point);
}
void
-efl_geometry_path_append_circle(Efl_Geometry_Path_Command **commands, double **points,
- double x, double y, double radius)
+efl_graphics_path_append_circle(Efl_Graphics_Path_Command **commands, double **points,
+ double x, double y, double radius)
{
- efl_geometry_path_append_move_to(commands, points, x, y - radius);
- efl_geometry_path_append_arc_to(commands, points, x + radius, y, radius, radius, 0);
- efl_geometry_path_append_arc_to(commands, points, x, y + radius, radius, radius, 0);
- efl_geometry_path_append_arc_to(commands, points, x - radius, y, radius, radius, 0);
- efl_geometry_path_append_arc_to(commands, points, x, y - radius, radius, radius, 0);
+ efl_graphics_path_append_move_to(commands, points, x, y - radius);
+ efl_graphics_path_append_arc_to(commands, points, x + radius, y, radius, radius, 0);
+ efl_graphics_path_append_arc_to(commands, points, x, y + radius, radius, radius, 0);
+ efl_graphics_path_append_arc_to(commands, points, x - radius, y, radius, radius, 0);
+ efl_graphics_path_append_arc_to(commands, points, x, y - radius, radius, radius, 0);
}