efl_gfx: Remove color_part API (EO)

This API was introduced in commit:
  cd3f8db506

This was since limited to EO only APIs, and totally underexploited.
After that, efl_part() was introduced, which defines how all part APIs
should be designed.

Nothing uses this API, efl_vg had an implementation that provides no
extra value over the other APIs.
This commit is contained in:
Jean-Philippe Andre 2017-09-13 17:00:14 +09:00
parent 13da5e980e
commit 21c72948db
7 changed files with 0 additions and 118 deletions

View File

@ -89,48 +89,6 @@ interface Efl.Gfx {
a: int; [[The alpha component of the given color.]]
}
}
@property color_part {
set {
[[Sets a specifc color of the given Efl.Gfx object to the
given one.
See also @.color.get (for an example)
These color values are expected to be premultiplied by alpha.
]]
return: bool; [[$true when color was set, $false otherwise]]
}
get {
[[Retrieves a specific color of the given Evas object.
Retrieves a specific color's RGB component (and alpha channel)
values, which range from 0 to 255. For the alpha channel,
which defines the object's transparency level, 0 means totally
transparent, while 255 means opaque. These color values are
premultiplied by the alpha value.
The main color being mapped to null.
Usually youll use this attribute for text and rectangle objects,
where the main color is their unique one. If set for objects
which themselves have colors, like the images one, those colors
get modulated by this one.
Use null pointers on the components you're not interested
in: they'll be ignored by the function.
]]
return: bool; [[$true when color was retrieved, $false otherwise]]
}
keys {
part: string; [[The part you are interested in.]]
}
values {
r: int; [[The red component of the given color.]]
g: int; [[The green component of the given color.]]
b: int; [[The blue component of the given color.]]
a: int; [[The alpha component of the given color.]]
}
}
@property visible {
set {
[[Makes the given Evas object visible or invisible.]]

View File

@ -665,7 +665,6 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx, Efl.Gfx.Stack, Efl.Animator,
Efl.Object.debug_name_override;
Efl.Gfx.visible { get; set; }
Efl.Gfx.color { get; set; }
Efl.Gfx.color_part { get; set; }
Efl.Gfx.geometry { get; set; }
Efl.Gfx.position { get; set; }
Efl.Gfx.size { get; set; }

View File

@ -116,7 +116,6 @@ abstract Efl.VG (Efl.Object, Efl.Gfx, Efl.Gfx.Stack)
Efl.Object.destructor;
Efl.Gfx.visible { get; set; }
Efl.Gfx.color { get; set; }
Efl.Gfx.color_part { get; set; }
Efl.Gfx.size { get; }
Efl.Gfx.position { get; set; }
Efl.Gfx.geometry { get; }

View File

@ -35,7 +35,6 @@ class Efl.VG.Shape (Efl.VG, Efl.Gfx.Shape)
}
}
implements {
Efl.Gfx.color_part { get; set; }
Efl.VG.bounds_get;
Efl.VG.interpolate;
Efl.VG.dup;

View File

@ -1934,17 +1934,6 @@ _efl_canvas_object_efl_gfx_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj
evas_object_change(eo_obj, obj);
}
EOLIAN static Eina_Bool
_efl_canvas_object_efl_gfx_color_part_set(Eo *obj, Evas_Object_Protected_Data *pd,
const char *part,
int r, int g, int b, int a)
{
if (part) return EINA_FALSE;
_efl_canvas_object_efl_gfx_color_set(obj, pd, r, g, b, a);
return EINA_TRUE;
}
EAPI void
evas_object_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a)
{
@ -1970,18 +1959,6 @@ _efl_canvas_object_efl_gfx_color_get(Eo *eo_obj EINA_UNUSED,
if (a) *a = obj->cur->color.a;
}
EOLIAN static Eina_Bool
_efl_canvas_object_efl_gfx_color_part_get(Eo *obj,
Evas_Object_Protected_Data *pd,
const char *part,
int *r, int *g, int *b, int *a)
{
if (part) return EINA_FALSE;
_efl_canvas_object_efl_gfx_color_get(obj, pd, r, g, b, a);
return EINA_TRUE;
}
EOLIAN static void
_efl_canvas_object_anti_alias_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool anti_alias)
{

View File

@ -159,17 +159,6 @@ _efl_vg_efl_gfx_color_set(Eo *obj EINA_UNUSED,
_efl_vg_changed(obj);
}
static Eina_Bool
_efl_vg_efl_gfx_color_part_set(Eo *obj, Efl_VG_Data *pd,
const char *part,
int r, int g, int b, int a)
{
if (part) return EINA_FALSE;
_efl_vg_efl_gfx_color_set(obj, pd, r, g, b, a);
return EINA_TRUE;
}
static void
_efl_vg_efl_gfx_color_get(Eo *obj EINA_UNUSED,
Efl_VG_Data *pd,
@ -181,17 +170,6 @@ _efl_vg_efl_gfx_color_get(Eo *obj EINA_UNUSED,
if (a) *a = pd->a;
}
static Eina_Bool
_efl_vg_efl_gfx_color_part_get(Eo *obj, Efl_VG_Data *pd,
const char *part,
int *r, int *g, int *b, int *a)
{
if (part) return EINA_FALSE;
_efl_vg_efl_gfx_color_get(obj, pd, r, g, b, a);
return EINA_TRUE;
}
static void
_efl_vg_mask_set(Eo *obj EINA_UNUSED,
Efl_VG_Data *pd,

View File

@ -44,34 +44,6 @@ _efl_vg_shape_fill_get(Eo *obj EINA_UNUSED, Efl_VG_Shape_Data *pd)
return pd->fill;
}
static Eina_Bool
_efl_vg_shape_efl_gfx_color_part_set(Eo *obj, Efl_VG_Shape_Data *pd EINA_UNUSED,
const char * part,
int r, int g, int b, int a)
{
if (part && !strcmp(part, "stroke"))
{
efl_gfx_shape_stroke_color_set(obj, r, g, b, a);
return EINA_TRUE;
}
return efl_gfx_color_part_set(efl_super(obj, EFL_VG_SHAPE_CLASS), part, r, g, b, a);
}
static Eina_Bool
_efl_vg_shape_efl_gfx_color_part_get(Eo *obj, Efl_VG_Shape_Data *pd EINA_UNUSED,
const char * part,
int *r, int *g, int *b, int *a)
{
if (part && !strcmp(part, "stroke"))
{
efl_gfx_shape_stroke_color_get(obj, r, g, b, a);
return EINA_TRUE;
}
return efl_gfx_color_part_get(efl_super(obj, EFL_VG_SHAPE_CLASS), part, r, g, b, a);
}
static void
_efl_vg_shape_stroke_fill_set(Eo *obj EINA_UNUSED,
Efl_VG_Shape_Data *pd,