### Library
evas_eolian_pub_files = \
- lib/evas/canvas/evas_object.eo \
+ lib/evas/canvas/efl_canvas_object.eo \
lib/evas/canvas/efl_canvas_polygon.eo \
lib/evas/canvas/efl_canvas_rectangle.eo \
lib/evas/canvas/efl_canvas_text.eo \
fprintf(stdout, "Toggling clipping ");
Evas_Object *clip = NULL;
- clip = evas_obj_clip_get(d.img);
+ clip = efl_canvas_object_clip_get(d.img);
if (clip == d.clipper)
{
- evas_obj_clip_unset(d.img);
+ efl_canvas_object_clip_unset(d.img);
fprintf(stdout, "off\n");
}
else
{
- evas_obj_clip_set(d.img, d.clipper);
+ efl_canvas_object_clip_set(d.img, d.clipper);
fprintf(stdout, "on\n");
}
return;
efl_gfx_size_set(d.clipper, WIDTH / 2, HEIGHT / 2);
efl_gfx_visible_set(d.clipper, EINA_TRUE);
- evas_obj_clip_set(d.img, d.clipper);
+ efl_canvas_object_clip_set(d.img, d.clipper);
fprintf(stdout, "%s", commands);
/* Interceptors Callbacks */
static void
-_ecore_evas_obj_intercept_move(void *data, Evas_Object *obj, Evas_Coord x, Evas_Coord y)
+_ecore_evas_object_intercept_move(void *data, Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
Ecore_Evas *ee = data;
// FIXME: account for frame
}
static void
-_ecore_evas_obj_intercept_raise(void *data, Evas_Object *obj EINA_UNUSED)
+_ecore_evas_object_intercept_raise(void *data, Evas_Object *obj EINA_UNUSED)
{
Ecore_Evas *ee = data;
ecore_evas_raise(ee);
}
static void
-_ecore_evas_obj_intercept_lower(void *data, Evas_Object *obj EINA_UNUSED)
+_ecore_evas_object_intercept_lower(void *data, Evas_Object *obj EINA_UNUSED)
{
Ecore_Evas *ee = data;
ecore_evas_lower(ee);
}
static void
-_ecore_evas_obj_intercept_stack_above(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *above EINA_UNUSED)
+_ecore_evas_object_intercept_stack_above(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *above EINA_UNUSED)
{
INF("TODO: %s", __FUNCTION__);
}
static void
-_ecore_evas_obj_intercept_stack_below(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *below EINA_UNUSED)
+_ecore_evas_object_intercept_stack_below(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *below EINA_UNUSED)
{
INF("TODO: %s", __FUNCTION__);
}
static void
-_ecore_evas_obj_intercept_layer_set(void *data, Evas_Object *obj EINA_UNUSED, int l)
+_ecore_evas_object_intercept_layer_set(void *data, Evas_Object *obj EINA_UNUSED, int l)
{
Ecore_Evas *ee = data;
ecore_evas_layer_set(ee, l);
/* Event Callbacks */
static void
-_ecore_evas_obj_callback_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
ecore_evas_show(ee);
}
static void
-_ecore_evas_obj_callback_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
ecore_evas_hide(ee);
}
static void
-_ecore_evas_obj_callback_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
Evas_Coord ow, oh;
}
static void
-_ecore_evas_obj_callback_changed_size_hints(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_changed_size_hints(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
Evas_Coord w, h;
}
static void
-_ecore_evas_obj_callback_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
_ecore_evas_object_dissociate(ee, obj);
}
static void
-_ecore_evas_obj_callback_del_dissociate(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+_ecore_evas_object_callback_del_dissociate(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
_ecore_evas_object_dissociate(ee, obj);
{
evas_object_event_callback_add
(obj, EVAS_CALLBACK_SHOW,
- _ecore_evas_obj_callback_show, ee);
+ _ecore_evas_object_callback_show, ee);
evas_object_event_callback_add
(obj, EVAS_CALLBACK_HIDE,
- _ecore_evas_obj_callback_hide, ee);
+ _ecore_evas_object_callback_hide, ee);
evas_object_event_callback_add
(obj, EVAS_CALLBACK_RESIZE,
- _ecore_evas_obj_callback_resize, ee);
+ _ecore_evas_object_callback_resize, ee);
evas_object_event_callback_add
(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _ecore_evas_obj_callback_changed_size_hints, ee);
+ _ecore_evas_object_callback_changed_size_hints, ee);
if (flags & ECORE_EVAS_OBJECT_ASSOCIATE_DEL)
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_DEL, _ecore_evas_obj_callback_del, ee);
+ (obj, EVAS_CALLBACK_DEL, _ecore_evas_object_callback_del, ee);
else
evas_object_event_callback_add
- (obj, EVAS_CALLBACK_DEL, _ecore_evas_obj_callback_del_dissociate, ee);
+ (obj, EVAS_CALLBACK_DEL, _ecore_evas_object_callback_del_dissociate, ee);
evas_object_intercept_move_callback_add
- (obj, _ecore_evas_obj_intercept_move, ee);
+ (obj, _ecore_evas_object_intercept_move, ee);
if (flags & ECORE_EVAS_OBJECT_ASSOCIATE_STACK)
{
evas_object_intercept_raise_callback_add
- (obj, _ecore_evas_obj_intercept_raise, ee);
+ (obj, _ecore_evas_object_intercept_raise, ee);
evas_object_intercept_lower_callback_add
- (obj, _ecore_evas_obj_intercept_lower, ee);
+ (obj, _ecore_evas_object_intercept_lower, ee);
evas_object_intercept_stack_above_callback_add
- (obj, _ecore_evas_obj_intercept_stack_above, ee);
+ (obj, _ecore_evas_object_intercept_stack_above, ee);
evas_object_intercept_stack_below_callback_add
- (obj, _ecore_evas_obj_intercept_stack_below, ee);
+ (obj, _ecore_evas_object_intercept_stack_below, ee);
}
if (flags & ECORE_EVAS_OBJECT_ASSOCIATE_LAYER)
evas_object_intercept_layer_set_callback_add
- (obj, _ecore_evas_obj_intercept_layer_set, ee);
+ (obj, _ecore_evas_object_intercept_layer_set, ee);
if (flags & ECORE_EVAS_OBJECT_ASSOCIATE_DEL)
{
{
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_SHOW,
- _ecore_evas_obj_callback_show, ee);
+ _ecore_evas_object_callback_show, ee);
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_HIDE,
- _ecore_evas_obj_callback_hide, ee);
+ _ecore_evas_object_callback_hide, ee);
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_RESIZE,
- _ecore_evas_obj_callback_resize, ee);
+ _ecore_evas_object_callback_resize, ee);
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _ecore_evas_obj_callback_changed_size_hints, ee);
+ _ecore_evas_object_callback_changed_size_hints, ee);
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_DEL, _ecore_evas_obj_callback_del, ee);
+ (obj, EVAS_CALLBACK_DEL, _ecore_evas_object_callback_del, ee);
evas_object_event_callback_del_full
- (obj, EVAS_CALLBACK_DEL, _ecore_evas_obj_callback_del_dissociate, ee);
+ (obj, EVAS_CALLBACK_DEL, _ecore_evas_object_callback_del_dissociate, ee);
evas_object_intercept_move_callback_del
- (obj, _ecore_evas_obj_intercept_move);
+ (obj, _ecore_evas_object_intercept_move);
evas_object_intercept_raise_callback_del
- (obj, _ecore_evas_obj_intercept_raise);
+ (obj, _ecore_evas_object_intercept_raise);
evas_object_intercept_lower_callback_del
- (obj, _ecore_evas_obj_intercept_lower);
+ (obj, _ecore_evas_object_intercept_lower);
evas_object_intercept_stack_above_callback_del
- (obj, _ecore_evas_obj_intercept_stack_above);
+ (obj, _ecore_evas_object_intercept_stack_above);
evas_object_intercept_stack_below_callback_del
- (obj, _ecore_evas_obj_intercept_stack_below);
+ (obj, _ecore_evas_object_intercept_stack_below);
evas_object_intercept_layer_set_callback_del
- (obj, _ecore_evas_obj_intercept_layer_set);
+ (obj, _ecore_evas_object_intercept_layer_set);
if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
{
* @param[in] col The column of the child to get
* @param[in] row The row of the child to get
*
- * @return The child Evas.Object
+ * @return The child Efl.Canvas.Object
*
* @ingroup Edje_Object
*/
double s = base_s;
if (ep->part->scale) base_s = TO_DOUBLE(sc);
- evas_obj_scale_set(ep->object, base_s);
+ efl_canvas_object_scale_set(ep->object, base_s);
efl_canvas_text_size_native_get(ep->object, &tw, &th);
orig_s = base_s;
{
orig_s = _edje_part_recalc_single_textblock_scale_range_adjust(chosen_desc, base_s,
orig_s * TO_INT(params->eval.w) / tw);
- evas_obj_scale_set(ep->object, orig_s);
+ efl_canvas_object_scale_set(ep->object, orig_s);
efl_canvas_text_size_native_get(ep->object, &tw, &th);
}
if (chosen_desc->text.fit_x)
{
s = _edje_part_recalc_single_textblock_scale_range_adjust(chosen_desc, base_s,
orig_s * TO_INT(params->eval.w) / tw);
- evas_obj_scale_set(ep->object, s);
+ efl_canvas_object_scale_set(ep->object, s);
efl_canvas_text_size_native_get(ep->object, NULL, NULL);
}
}
s = tmp_s;
}
- evas_obj_scale_set(ep->object, s);
+ efl_canvas_object_scale_set(ep->object, s);
efl_canvas_text_size_native_get(ep->object, NULL, NULL);
}
}
break;
s = tmp_s;
- evas_obj_scale_set(ep->object, s);
+ efl_canvas_object_scale_set(ep->object, s);
efl_canvas_text_size_native_get(ep->object, &fw, &fh);
i--;
}
else map_obj = mo;
if (map_obj)
{
- evas_obj_map_set(map_obj, map);
- evas_obj_map_enable_set(map_obj, EINA_TRUE);
+ efl_canvas_object_map_set(map_obj, map);
+ efl_canvas_object_map_enable_set(map_obj, EINA_TRUE);
}
}
else
{
if (ep->nested_smart) /* Cancel map of smart obj holding nested parts */
{
- evas_obj_map_enable_set(ep->nested_smart, EINA_FALSE);
- evas_obj_map_set(ep->nested_smart, NULL);
+ efl_canvas_object_map_enable_set(ep->nested_smart, EINA_FALSE);
+ efl_canvas_object_map_set(ep->nested_smart, NULL);
}
else
{
#endif
if (mo)
{
- evas_obj_map_enable_set(mo, 0);
- evas_obj_map_set(mo, NULL);
+ efl_canvas_object_map_enable_set(mo, 0);
+ efl_canvas_object_map_set(mo, NULL);
}
#ifdef HAVE_EPHYSICS
}
}
EO_CALLBACKS_ARRAY_DEFINE(edje_callbacks,
- { EVAS_OBJECT_EVENT_HOLD, _edje_hold_signal_cb },
+ { EFL_CANVAS_OBJECT_EVENT_HOLD, _edje_hold_signal_cb },
{ EFL_EVENT_POINTER_IN, _edje_mouse_in_signal_cb },
{ EFL_EVENT_POINTER_OUT, _edje_mouse_out_signal_cb },
{ EFL_EVENT_POINTER_DOWN, _edje_mouse_down_signal_cb },
{ EFL_EVENT_POINTER_WHEEL, _edje_mouse_wheel_signal_cb });
EO_CALLBACKS_ARRAY_DEFINE(edje_focus_callbacks,
- { EVAS_OBJECT_EVENT_FOCUS_IN, _edje_focus_in_signal_cb },
- { EVAS_OBJECT_EVENT_FOCUS_OUT, _edje_focus_out_signal_cb });
+ { EFL_CANVAS_OBJECT_EVENT_FOCUS_IN, _edje_focus_in_signal_cb },
+ { EFL_CANVAS_OBJECT_EVENT_FOCUS_OUT, _edje_focus_out_signal_cb });
void
_edje_callbacks_add(Evas_Object *obj, Edje *ed, Edje_Real_Part *rp)
}
if (ep->no_render)
- evas_obj_no_render_set(rp->object, 1);
+ efl_canvas_object_no_render_set(rp->object, 1);
if (st_nested && st_nested->nested_children_count) /* Add this to list of children */
{
evas_object_pass_events_set(rp->object, 1);
evas_object_pointer_mode_set(rp->object, EVAS_OBJECT_POINTER_MODE_NOGRAB);
}
- evas_obj_anti_alias_set(rp->object, ep->anti_alias);
- evas_obj_precise_is_inside_set(rp->object, ep->precise_is_inside);
+ efl_canvas_object_anti_alias_set(rp->object, ep->anti_alias);
+ efl_canvas_object_precise_is_inside_set(rp->object, ep->precise_is_inside);
}
if (rp->part->clip_to_id < 0)
evas_object_clip_set(rp->object, ed->base->clipper);
//-------------
static void
-_elua_evas_obj_free(void *obj)
+_elua_efl_canvas_object_free(void *obj)
{
Edje_Lua_Evas_Object *elo = obj;
static int
_elua_edje(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_edje_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_edje_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = edje_object_add(evas_object_evas_get(ed->obj));
_edje_subobj_register(ed, elo->evas_obj);
static int
_elua_image(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_image_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_image_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_image_filled_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
static int
_elua_line(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_line_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_line_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_line_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
static int
_elua_polygon(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_polygon_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_polygon_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_polygon_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
static int
_elua_rect(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_rectangle_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
static int
_elua_text(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_text_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_text_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_text_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
/* XXX: disabled until there are enough textblock functions implemented to make it actually useful
_elua_textblock(lua_State *L) // Stack usage [-7, +8, em]
{
- _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_textblock_meta, _elua_evas_obj_free)
+ _ELUA_PLANT_EVAS_OBJECT(Edje_Lua_Evas_Object, _elua_evas_textblock_meta, _elua_efl_canvas_object_free)
// Stack usage [-7, +8, em]
elo->evas_obj = evas_object_textblock_add(evas_object_evas_get(ed->obj));
_elua_polish_evas_object(ed, elo);
Note: Almost all swallow rules apply: you should not move, resize,
hide, show, set the color or clipper of such part. It's a bit
more restrictive as one must never delete this object!]]
- return: Evas.Object; [[The externally created object, or $null if there is none or
+ return: Efl.Canvas.Object; [[The externally created object, or $null if there is none or
part is not an external.]]
params {
@in part: string; [[The part name]]
content: string; [[A string identifying which content from the EXTERNAL to get]]
}
values {
- v: Evas.Object;
+ v: Efl.Canvas.Object;
}
}
preload {
Note: If the type of Edje part is GROUP, SWALLOW or EXTERNAL,
returned handle by this function will indicate nothing or transparent
rectangle for events. Use $.part_swallow_get() in that case.]]
- return: const(Evas.Object); [[A pointer to the Evas object implementing the given part,
+ return: const(Efl.Canvas.Object); [[A pointer to the Evas object implementing the given part,
or $null on failure (e.g. the given part doesn't exist)]]
params {
@in part: string; [[The Edje part's name]]
Eo.Base.constructor;
Eo.Base.destructor;
Eo.Base.dbg_info_get;
- Evas.Object.paragraph_direction.set;
+ Efl.Canvas.Object.paragraph_direction.set;
Efl.Canvas.Group.group_hide;
Efl.Canvas.Group.group_show;
Efl.Canvas.Group.group_move;
# include <Evil.h>
#endif
-#define EVAS_OBJECT_PROTECTED
+#define EFL_CANVAS_OBJECT_PROTECTED
#include <Eina.h>
#include <Eet.h>
ed->duration_scale = 1.0;
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
_edje_lib_ref();
parent = eo_parent_get(obj);
Edje *edg;
efl_canvas_group_no_render_set(eo_super(obj, MY_CLASS), hide);
- if (evas_obj_no_render_get(obj) == hide) return;
+ if (efl_canvas_object_no_render_get(obj) == hide) return;
EINA_LIST_FOREACH(ed->groups, l, edg)
if (edg != ed) efl_canvas_group_no_render_set(edg->obj, hide);
}
EOLIAN static void
-_edje_object_evas_object_paragraph_direction_set(Eo *obj, Edje *ed, Evas_BiDi_Direction dir)
+_edje_object_efl_canvas_object_paragraph_direction_set(Eo *obj, Edje *ed, Evas_BiDi_Direction dir)
{
- evas_obj_paragraph_direction_set(eo_super(obj, MY_CLASS), dir);
+ efl_canvas_object_paragraph_direction_set(eo_super(obj, MY_CLASS), dir);
/* Make it dirty to recalculate edje.
It needs to move text objects according to new paragraph direction */
if (inlined_font) efl_text_properties_font_source_set(ep->object, ed->path);
else efl_text_properties_font_source_set(ep->object, NULL);
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, size);
efl_text_set(ep->object, text);
if (inlined_font) efl_text_properties_font_source_set(ep->object, ed->path);
else efl_text_properties_font_source_set(ep->object, NULL);
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, size);
if (inlined_font) efl_text_properties_font_source_set(ep->object, ed->path);
else efl_text_properties_font_source_set(ep->object, NULL);
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, size);
efl_text_set(ep->object, text);
if (inlined_font) efl_text_properties_font_source_set(ep->object, ed->path);
else efl_text_properties_font_source_set(ep->object, NULL);
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, size);
part_get_geometry(ep, &tw, &th);
{
int current;
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, 10);
part_get_geometry(ep, &tw, &th);
{
current = (top + bottom) / 2;
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, current);
part_get_geometry(ep, &tw, &th);
{
current++;
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, current);
part_get_geometry(ep, &tw, &th);
if (inlined_font) efl_text_properties_font_source_set(ep->object, ed->path);
else efl_text_properties_font_source_set(ep->object, NULL);
- if (ep->part->scale) evas_obj_scale_set(ep->object, TO_DOUBLE(sc));
+ if (ep->part->scale) efl_canvas_object_scale_set(ep->object, TO_DOUBLE(sc));
efl_text_properties_font_set(ep->object, font, size);
efl_text_set(ep->object, text);
else
evas_object_pass_events_set(obj_swallow, 1);
_edje_callbacks_focus_add(rp->typedata.swallow->swallowed_object, ed, rp);
- evas_obj_anti_alias_set(obj_swallow, rp->part->anti_alias);
- evas_obj_precise_is_inside_set(obj_swallow, rp->part->precise_is_inside);
+ efl_canvas_object_anti_alias_set(obj_swallow, rp->part->anti_alias);
+ efl_canvas_object_precise_is_inside_set(obj_swallow, rp->part->precise_is_inside);
ed->dirty = EINA_TRUE;
ed->recalc_call = EINA_TRUE;
{
elm_interface_atspi_accessible_type_set(obj, ELM_ATSPI_TYPE_SKIPPED);
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PAGE_TAB_LIST);
_efl_ui_grid_eo_base_constructor(Eo *obj, Efl_Ui_Grid_Data *pd)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
pd->dir1 = EFL_ORIENT_RIGHT;
Efl_Ui_Grid_Data *gd;
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
gd = eo_data_scope_get(obj, EFL_UI_GRID_CLASS);
_efl_ui_image_eo_base_constructor(Eo *obj, Efl_Ui_Image_Data *pd)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
_efl_ui_nstate_eo_base_constructor(Eo *obj, Efl_Ui_Nstate_Data *pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
//TODO: Add ATSPI call here
_efl_ui_text_eo_base_constructor(Eo *obj, Efl_Ui_Text_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
eo_parent_set(obj, ecore_evas_get(tmp_sd.ee));
eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
if (getenv("ELM_FIRST_FRAME"))
just like any other object would be, and do other things
like applying \@ref Evas_Map effects to it. This is the only
type of window that requires the parent parameter of
- \@ref elm_win_add to be a valid @Evas.Object.]]
+ \@ref elm_win_add to be a valid @Efl.Canvas.Object.]]
socket_image, [[The window is rendered onto an image buffer and can be shown
other process's plug image object. No actual window is
created for this type, instead the window and all of its
@endcode
*/
values {
- icon: Evas.Object @nullable; [[The Evas image object to use for an icon.]]
+ icon: Efl.Canvas.Object @nullable; [[The Evas image object to use for an icon.]]
}
}
get {
the object to use for the window icon.
]]
values {
- icon: const(Evas.Object) @nullable; [[The Evas image object to use for an icon.]]
+ icon: const(Efl.Canvas.Object) @nullable; [[The Evas image object to use for an icon.]]
}
}
}
sd->first_filter = EINA_TRUE;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GLASS_PANE);
_elm_ctxpopup_eo_base_constructor(Eo *obj, Elm_Ctxpopup_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_POPUP_MENU);
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILE_CHOOSER);
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
_elm_fileselector_entry_eo_base_constructor(Eo *obj, Elm_Fileselector_Entry_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GROUPING);
_elm_hoversel_eo_base_constructor(Eo *obj, Elm_Hoversel_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
_elm_multibuttonentry_eo_base_constructor(Eo *obj, Elm_Multibuttonentry_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PAGE_TAB_LIST);
_elm_player_eo_base_constructor(Eo *obj, Elm_Player_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
_elm_popup_eo_base_constructor(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_NOTIFICATION);
*/
#define ELM_CONFIG_ICON_THEME_ELEMENTARY "_Elementary_Icon_Theme"
-#define EVAS_OBJECT_PROTECTED
+#define EFL_CANVAS_OBJECT_PROTECTED
_elm_access_eo_base_constructor(Eo *obj, void *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
_elm_actionslider_eo_base_constructor(Eo *obj, Elm_Actionslider_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SLIDER);
set {
}
values {
- win: Evas.Object;
+ win: Efl.Canvas.Object;
}
}
@property id {
{
elm_interface_atspi_accessible_type_set(obj, ELM_ATSPI_TYPE_DISABLED);
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
{
elm_interface_atspi_accessible_type_set(obj, ELM_ATSPI_TYPE_SKIPPED);
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
You must free this list with eina_list_free() once you are done with it.
]]
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
pack_end {
]]
params {
- @in subobj: Evas.Object; [[The object to add to the box]]
+ @in subobj: Efl.Canvas.Object; [[The object to add to the box]]
}
}
unpack_all {
]]
params {
- @in subobj: Evas.Object; [[The object to unpack]]
+ @in subobj: Efl.Canvas.Object; [[The object to unpack]]
}
}
pack_after {
]]
params {
- @in subobj: Evas.Object; [[The object to add to the box]]
- @in after: Evas.Object; [[The object after which to add it]]
+ @in subobj: Efl.Canvas.Object; [[The object to add to the box]]
+ @in after: Efl.Canvas.Object; [[The object after which to add it]]
}
}
pack_start {
]]
params {
- @in subobj: Evas.Object; [[The object to add to the box]]
+ @in subobj: Efl.Canvas.Object; [[The object to add to the box]]
}
}
recalculate {
]]
params {
- @in subobj: Evas.Object; [[The object to add to the box]]
- @in before: Evas.Object; [[The object before which to add it]]
+ @in subobj: Efl.Canvas.Object; [[The object to add to the box]]
+ @in before: Efl.Canvas.Object; [[The object before which to add it]]
}
}
clear {
_elm_bubble_eo_base_constructor(Eo *obj, Elm_Bubble_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
_elm_button_eo_base_constructor(Eo *obj, Elm_Button_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PUSH_BUTTON);
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_CALENDAR);
_elm_check_eo_base_constructor(Eo *obj, Elm_Check_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_CHECK_BOX);
_elm_clock_eo_base_constructor(Eo *obj, Elm_Clock_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TEXT);
_elm_colorselector_eo_base_constructor(Eo *obj, Elm_Colorselector_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_COLOR_CHOOSER);
_elm_conformant_eo_base_constructor(Eo *obj, Elm_Conformant_Data *sd)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
]]
}
values {
- parent: Evas.Object; [[The parent to use.]]
+ parent: Efl.Canvas.Object; [[The parent to use.]]
}
}
@property direction_priority {
params {
@in label: string; [[The Label of the new item]]
- @in icon: Evas.Object @optional; [[Icon to be set on new item]]
+ @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
@in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
@in data: const(void_ptr) @optional; [[Data passed to $func]]
}
params {
@in label: string; [[The Label of the new item]]
- @in icon: Evas.Object @optional; [[Icon to be set on new item]]
+ @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
@in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
@in data: const(void_ptr) @optional; [[Data passed to $func]]
}
_elm_datetime_eo_base_constructor(Eo *obj, Elm_Datetime_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_DATE_EDITOR);
_elm_dayselector_eo_base_constructor(Eo *obj, Elm_Dayselector_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL);
_elm_diskselector_eo_base_constructor(Eo *obj, Elm_Diskselector_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
return: Elm.Widget.Item;
params {
@in label: string; [[The label of the diskselector item.]]
- @in icon: Evas.Object @optional; [[The icon object to use at left side of the item. An
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use at left side of the item. An
icon can be any Evas object, but usually it is an icon created
with elm_icon_add(). ]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is selected.]]
_elm_entry_eo_base_constructor(Eo *obj, Elm_Entry_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ENTRY);
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
]]
}
values {
- parent: Evas.Object @nullable; [[The object to use as parent for the hover.]]
+ parent: Efl.Canvas.Object @nullable; [[The object to use as parent for the hover.]]
}
}
@property prediction_allow {
change the internal textblock object). This applies to all cursors
returned from textblock calls, and all the other derivative values.
]]
- return: Evas.Object;
+ return: Efl.Canvas.Object;
}
}
@property cursor_geometry {
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
_elm_frame_eo_base_constructor(Eo *obj, Elm_Frame_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FRAME);
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TREE_TABLE);
floating "orphans" that can be re-used elsewhere if the user wants
to.]]
params {
- @out l: own(list<own(Evas.Object)>); [[The contents list to return.]]
+ @out l: own(list<own(Efl.Canvas.Object)>); [[The contents list to return.]]
}
}
}
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
elsewhere if the user wants to.
]]
params {
- @out l: own(list<own(Evas.Object)>); [[The contents list to return.]]
+ @out l: own(list<own(Efl.Canvas.Object)>); [[The contents list to return.]]
}
}
update {
_elm_gesture_layer_eo_base_constructor(Eo *obj, Elm_Gesture_Layer_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
]]
return: bool; [[$true on success, $false otherwise.]]
params {
- @in target: Evas.Object; [[The object to attach.]]
+ @in target: Efl.Canvas.Object; [[The object to attach.]]
}
}
cb_del {
((version > 0) && (version <= 3)) ? version : EVAS_GL_GLES_2_X;
_elm_glview_constructor(obj, sd);
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
eo_event_callback_add(obj, EO_EVENT_CALLBACK_ADD, _cb_added, NULL);
_elm_grid_eo_base_constructor(Eo *obj, void *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
return obj;
It's possible to remove objects from the grid when walking this
list, but these removals won't be reflected on it.
]]
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
clear {
unpack {
[[Unpack a child from a grid object]]
params {
- @in subobj: Evas.Object; [[The child to unpack]]
+ @in subobj: Efl.Canvas.Object; [[The child to unpack]]
}
}
pack {
[[Pack child at given position and size]]
params {
- @in subobj: Evas.Object; [[The child to pack.]]
+ @in subobj: Efl.Canvas.Object; [[The child to pack.]]
@in x: Evas.Coord; [[The virtual x coord at which to pack it.]]
@in y: Evas.Coord; [[The virtual y coord at which to pack it.]]
@in w: Evas.Coord; [[The virtual width at which to pack it.]]
_elm_hover_eo_base_constructor(Eo *obj, Elm_Hover_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_POPUP_MENU);
[[Get the target object for the hover.]]
}
values {
- target: Evas.Object; [[The target object.]]
+ target: Efl.Canvas.Object; [[The target object.]]
}
}
best_content_location_get @const {
get {
}
values {
- parent: Evas.Object @nullable; [[The parent to use]]
+ parent: Efl.Canvas.Object @nullable; [[The parent to use]]
}
}
@property expanded {
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
_elm_index_eo_base_constructor(Eo *obj, Elm_Index_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SCROLL_BAR);
_elm_pan_eo_base_constructor(Eo *obj, Elm_Pan_Smart_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_PAN_CLASS));
- evas_obj_type_set(obj, MY_PAN_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_PAN_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
return obj;
set {
}
values {
- pan: Evas.Object @nullable;
+ pan: Efl.Canvas.Object @nullable;
}
}
@property page_change_cb {
set {
}
values {
- content: Evas.Object @nullable;
+ content: Efl.Canvas.Object @nullable;
}
}
@property edge_left_cb {
set {
}
values {
- edje_object: Evas.Object;
- hit_rectangle: Evas.Object;
+ edje_object: Efl.Canvas.Object;
+ hit_rectangle: Efl.Canvas.Object;
}
}
@property last_page {
}
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GLASS_PANE);
return obj;
_elm_label_eo_base_constructor(Eo *obj, Elm_Label_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LABEL);
{
sd->obj = obj;
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
hooking callbacks to signals, etc.) can be done with
proper elementary functions.
]]
- return: Evas.Object; [[An Evas_Object with the edje layout
+ return: Efl.Canvas.Object; [[An Evas_Object with the edje layout
settings loaded \@ref elm_layout_file_set.]]
}
}
_elm_list_eo_base_constructor(Eo *obj, Elm_List_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
params {
@in before: Elm.Widget.Item; [[The list item to insert before.]]
@in label: string; [[The label of the list item.]]
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
- @in end: Evas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in end: Efl.Canvas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
}
params {
@in after: Elm.Widget.Item; [[The list item to insert after.]]
@in label: string; [[The label of the list item.]]
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
- @in end: Evas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in end: Efl.Canvas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
}
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
@in label: string; [[The label of the list item.]]
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
- @in end: Evas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in end: Efl.Canvas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
}
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
@in label: string; [[The label of the list item.]]
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
- @in end: Evas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in end: Efl.Canvas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
}
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
@in label: string; [[The label of the list item.]]
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
- @in end: Evas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in end: Efl.Canvas.Object @optional; [[The icon object to use for the right side of the item. An icon can be any Evas object.]]
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
@in cmp_func: Eina_Compare_Cb; [[The comparing function to be used to sort list
]]
}
values {
- obj: Evas.Object; [[The base Edje object associated with the item.]]
+ obj: Efl.Canvas.Object; [[The base Edje object associated with the item.]]
}
}
@property prev {
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE_MAP);
}
track_add {
[[Add a track on the map.]]
- return: Evas.Object; [[The route object. This is an elm object of type Route.]]
+ return: Efl.Canvas.Object; [[The route object. This is an elm object of type Route.]]
params {
@in emap: void_ptr; [[The emap route object.]]
}
track_remove {
[[Remove a track from the map.]]
params {
- @in route: Evas.Object; [[The track to remove.]]
+ @in route: Efl.Canvas.Object; [[The track to remove.]]
}
}
overlay_route_add {
_elm_mapbuf_eo_base_constructor(Eo *obj, Elm_Mapbuf_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE_MAP);
return obj;
Eo *parent = NULL;
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
parent = eo_parent_get(obj);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_MENU);
Warning: Don't manipulate this object!
]]
- return: Evas.Object; [[The base Edje object containing the
+ return: Efl.Canvas.Object; [[The base Edje object containing the
swallowed content associated with the item.]]
}
}
get {
[[Get the entry of the multibuttonentry object]]
- return: Evas.Object; [[The entry object, or NULL if none]]
+ return: Efl.Canvas.Object; [[The entry object, or NULL if none]]
}
}
@property selected_item {
is complete.
]]
- return: Evas.Object; [[$NULL or the content object(if the elm_naviframe_content_preserve_on_pop_get is true).]]
+ return: Efl.Canvas.Object; [[$NULL or the content object(if the elm_naviframe_content_preserve_on_pop_get is true).]]
}
item_insert_before {
[[Insert a new item into the naviframe before item $before.
params {
@in before: Elm.Widget.Item; [[The naviframe item to insert before.]]
@in title_label: string @optional; [[The label in the title area. The name of the title label part is "elm.text.title"]]
- @in prev_btn: Evas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
- @in next_btn: Evas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
- @in content: Evas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
+ @in prev_btn: Efl.Canvas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
+ @in next_btn: Efl.Canvas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
+ @in content: Efl.Canvas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
@in item_style: string @nullable; [[The current item style name. $NULL would be default.]]
}
}
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
@in title_label: string @optional; [[The label in the title area. The name of the title label part is "elm.text.title"]]
- @in prev_btn: Evas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
- @in next_btn: Evas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
- @in content: Evas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
+ @in prev_btn: Efl.Canvas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
+ @in next_btn: Efl.Canvas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
+ @in content: Efl.Canvas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
@in item_style: string @nullable; [[The current item style name. $NULL would be default.]]
}
}
[[Simple version of item_promote.]]
params {
- @in content: Evas.Object;
+ @in content: Efl.Canvas.Object;
}
}
item_insert_after {
params {
@in after: Elm.Widget.Item; [[The naviframe item to insert after.]]
@in title_label: string @optional; [[The label in the title area. The name of the title label part is "elm.text.title"]]
- @in prev_btn: Evas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
- @in next_btn: Evas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
- @in content: Evas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
+ @in prev_btn: Efl.Canvas.Object @nullable; [[The button to go to the previous item. If it is NULL, then naviframe will create a back button automatically. The name of the prev_btn part is "elm.swallow.prev_btn"]]
+ @in next_btn: Efl.Canvas.Object @nullable; [[The button to go to the next item. Or It could be just an extra function button. The name of the next_btn part is "elm.swallow.next_btn"]]
+ @in content: Efl.Canvas.Object; [[The main content object. The name of content part is "elm.swallow.content"]]
@in item_style: string @nullable; [[The current item style name. $NULL would be default.]]
}
}
_elm_notify_eo_base_constructor(Eo *obj, Elm_Notify_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_NOTIFICATION);
return obj;
_elm_panel_eo_base_constructor(Eo *obj, Elm_Panel_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL);
_elm_panes_eo_base_constructor(Eo *obj, Elm_Panes_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SPLIT_PANE);
_elm_photo_eo_base_constructor(Eo *obj, Elm_Photo_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
_elm_photocam_eo_base_constructor(Eo *obj, Elm_Photocam_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
modify it. It is for inspection only, and hooking callbacks
to. Nothing else. It may be deleted at any time as well.
]]
- return: Evas.Object; [[The internal image object handle or $null]]
+ return: Efl.Canvas.Object; [[The internal image object handle or $null]]
}
}
@property image_size {
_elm_plug_eo_base_constructor(Eo *obj, void *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
Note: Be careful to not manipulate it, as it is under control of
elementary.
]]
- return: Evas.Object; [[The inlined image object or $null.]]
+ return: Efl.Canvas.Object; [[The inlined image object or $null.]]
}
}
connect {
return: Elm.Widget.Item; [[A handle to the item added or $null on errors.]]
params {
@in label: string; [[The Label of the new item.]]
- @in icon: Evas.Object @optional; [[Icon to be set on new item.]]
+ @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item.]]
@in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected.]]
@in data: const(void_ptr) @optional; [[Data passed to $func above.]]
}
_elm_prefs_eo_base_constructor(Eo *obj, Elm_Prefs_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _elm_prefs_smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_REDUNDANT_OBJECT);
@since 1.8]]
- return: const(Evas.Object); [[A valid widget handle, on success, or $NULL, otherwise]]
+ return: const(Efl.Canvas.Object); [[A valid widget handle, on success, or $NULL, otherwise]]
params {
@in name: string; [[The name of the item (as declared in the prefs collection) to get object from]]
}
return: bool; [[$true, on success, $false otherwise]]
params {
@in name: string; [[the name of the SWALLOW item (as declared in the prefs collection)]]
- @in child: Evas.Object; [[The object to occupy the item]]
+ @in child: Efl.Canvas.Object; [[The object to occupy the item]]
}
}
item_editable_set {
@since 1.8]]
- return: Evas.Object; [[The unswallowed object, or NULL on errors]]
+ return: Efl.Canvas.Object; [[The unswallowed object, or NULL on errors]]
params {
@in name: string; [[the name of the SWALLOW item (as declared in the prefs collection)]]
}
_elm_progressbar_eo_base_constructor(Eo *obj, Elm_Progressbar_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PROGRESS_BAR);
_elm_radio_eo_base_constructor(Eo *obj, Elm_Radio_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_RADIO_BUTTON);
@property selected_object {
get {
[[Get the selected radio object.]]
- return: Evas.Object; [[The selected radio object]]
+ return: Efl.Canvas.Object; [[The selected radio object]]
}
}
group_add {
_elm_route_eo_base_constructor(Eo *obj, Elm_Route_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
_elm_scroller_eo_base_constructor(Eo *obj, Elm_Scroller_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SCROLL_PANE);
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_LIST);
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
@in label: string @optional; [[The label of the item.]]
@in idx: int; [[Item position. Value should be between 0 and items count.]]
}
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
params {
- @in icon: Evas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
+ @in icon: Efl.Canvas.Object @optional; [[The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with elm_icon_add().]]
@in label: string @optional; [[The label of the item. Note that, NULL is different from empty string "".]]
}
}
it was created, with function elm_segment_control_item_add(), or later
with function elm_object_item_part_content_set(). If no icon
was passed as argument, it will return $NULL.]]
- return: Evas.Object; [[The left side icon associated to the item at $index.]]
+ return: Efl.Canvas.Object; [[The left side icon associated to the item at $index.]]
params {
@in idx: int; [[The index of the segment item.]]
}
object_get @const {
[[Get the real Evas(Edje) object created to implement the view of a given segment_control item.
- Base object is the @Evas.Object that represents that item.]]
- return: Evas.Object; [[The base Edje object associated with $it]]
+ Base object is the @Efl.Canvas.Object that represents that item.]]
+ return: Efl.Canvas.Object; [[The base Edje object associated with $it]]
}
selected_set {
[[Set the selected state of an item.
_elm_separator_eo_base_constructor(Eo *obj, Elm_Separator_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SEPARATOR);
return obj;
_elm_slider_eo_base_constructor(Eo *obj, Elm_Slider_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SLIDER);
_elm_slideshow_eo_base_constructor(Eo *obj, Elm_Slideshow_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_DOCUMENT_PRESENTATION);
lower level callbacks for events on that object. Do not delete
this object under any circumstances.]]
- return: Evas.Object;
+ return: Efl.Canvas.Object;
}
}
implements {
_elm_spinner_eo_base_constructor(Eo *obj, Elm_Spinner_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_SPIN_BUTTON);
_elm_table_eo_base_constructor(Eo *obj, void *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
return obj;
}
child_get @const {
[[Get child object of table at given coordinates.]]
- return: Evas.Object; [[Child of object if find if not return $null.]]
+ return: Efl.Canvas.Object; [[Child of object if find if not return $null.]]
params {
@in col: int; [[Column number of child object.]]
@in row: int; [[Row number of child object.]]
means only takes that 1 cell.
]]
params {
- @in subobj: Evas.Object; [[The subobject to be modified in the table.]]
+ @in subobj: Efl.Canvas.Object; [[The subobject to be modified in the table.]]
@in column: int; [[Column number.]]
@in row: int; [[Row number.]]
@in colspan: int;
pack_get {
[[Get the packing location of an existing child of the table.]]
params {
- @in subobj: Evas.Object; [[The subobject to be modified in the table.]]
+ @in subobj: Efl.Canvas.Object; [[The subobject to be modified in the table.]]
@out column: int; [[Column number.]]
@out row: int; [[Row number.]]
@out colspan: int;
unpack {
[[Remove child from table.]]
params {
- @in subobj: Evas.Object; [[The subobject.]]
+ @in subobj: Efl.Canvas.Object; [[The subobject.]]
}
}
pack {
able to fit in 16bits will result in failure.
]]
params {
- @in subobj: Evas.Object; [[The subobject to be added to the table.]]
+ @in subobj: Efl.Canvas.Object; [[The subobject to be added to the table.]]
@in column: int; [[Column number.]]
@in row: int; [[Row number.]]
@in colspan: int;
_elm_thumb_eo_base_constructor(Eo *obj, Elm_Thumb_Data *sd)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, "Elm_Thumb");
+ efl_canvas_object_type_set(obj, "Elm_Thumb");
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
_elm_toolbar_eo_base_constructor(Eo *obj, Elm_Toolbar_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_TOOL_BAR);
get {
}
values {
- parent: Evas.Object; [[The parent of the menu objects.]]
+ parent: Efl.Canvas.Object; [[The parent of the menu objects.]]
}
}
@property standard_priority {
]]
label: string;
icon_str: string;
- icon: Evas.Object;
+ icon: Efl.Canvas.Object;
func: Evas_Smart_Cb ;
data: const(void_ptr);
}
]]
}
values {
- obj: Evas.Object; [[The base Edje object associated with $it.]]
+ obj: Efl.Canvas.Object; [[The base Edje object associated with $it.]]
}
}
@property icon_object {
]]
}
values {
- obj: Evas.Object; [[The icon object.]]
+ obj: Efl.Canvas.Object; [[The icon object.]]
}
}
@property separator {
]]
}
values {
- menu: Evas.Object; [[Item's menu object or $null on failure.]]
+ menu: Efl.Canvas.Object; [[Item's menu object or $null on failure.]]
}
}
@property state {
_elm_video_eo_base_constructor(Eo *obj, Elm_Video_Data *_pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_ANIMATION);
@property emotion {
get {
[[Get the underlying Emotion object.]]
- return: Evas.Object; [[the underlying Emotion object.]]
+ return: Efl.Canvas.Object; [[the underlying Emotion object.]]
}
}
@property title {
]]
params {
@in propname: string; [[Property name]]
- @in evas: Evas.Object; [[Evas widget]]
+ @in evas: Efl.Canvas.Object; [[Evas widget]]
}
}
}
@since 1.11
]]
params {
- @in genlist: Evas.Object; [[Genlist object]]
+ @in genlist: Efl.Canvas.Object; [[Genlist object]]
@in item_type: Elm.Genlist.Item.Type; [[Item type]]
@in item_style: string; [[The current item style name. $null would be default.]]
}
@since 1.11
]]
params {
- @out widget: Evas.Object; [[Returned widget]]
+ @out widget: Efl.Canvas.Object; [[Returned widget]]
}
}
property_connect {
return the internal reference. Be careful using it as it may
interfere with elm_web behavior.
]]
- return: Evas.Object; [[The internal ewk_view object or $null
+ return: Efl.Canvas.Object; [[The internal ewk_view object or $null
if it does not exist. (Failure to
create or Elementary compiled
without ewebkit)]]
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
sd->obj = obj;
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _elm_web_smart_callbacks);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_HTML_CONTAINER);
_propagate_event(void *data, const Eo_Event *event);
EO_CALLBACKS_ARRAY_DEFINE(elm_widget_subitems_callbacks,
- { EVAS_OBJECT_EVENT_DEL, _on_sub_obj_del },
+ { EFL_CANVAS_OBJECT_EVENT_DEL, _on_sub_obj_del },
{ EFL_GFX_EVENT_HIDE, _on_sub_obj_hide });
EO_CALLBACKS_ARRAY_DEFINE(efl_subitems_callbacks,
- { EVAS_OBJECT_EVENT_DEL, _on_sub_obj_del });
+ { EFL_CANVAS_OBJECT_EVENT_DEL, _on_sub_obj_del });
EO_CALLBACKS_ARRAY_DEFINE(focus_callbacks,
{ EFL_EVENT_KEY_DOWN, _propagate_event },
{ EFL_EVENT_KEY_UP, _propagate_event },
EINA_ITERATOR_FOREACH(it, o)
{
if (evas_object_data_get(o, "_elm_leaveme")) continue;
- evas_obj_no_render_set(o, hide);
+ efl_canvas_object_no_render_set(o, hide);
}
eina_iterator_free(it);
}
evas_object_color_get(obj, &r, &g, &b, &a);
evas_object_color_set(child, r, g, b, a);
- evas_obj_no_render_set(child, evas_obj_no_render_get(obj));
+ efl_canvas_object_no_render_set(child, efl_canvas_object_no_render_get(obj));
evas_object_clip_set(child, evas_object_clip_get(obj));
if (evas_object_visible_get(obj))
{ EFL_GFX_EVENT_MOVE, _track_obj_view_update },
{ EFL_GFX_EVENT_SHOW, _track_obj_view_update },
{ EFL_GFX_EVENT_HIDE, _track_obj_view_update },
- { EVAS_OBJECT_EVENT_DEL, _track_obj_view_del });
+ { EFL_CANVAS_OBJECT_EVENT_DEL, _track_obj_view_del });
static void
_track_obj_view_del(void *data, const Eo_Event *event EINA_UNUSED)
sd->on_create = EINA_TRUE;
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
parent = eo_parent_get(obj);
elm_obj_widget_parent_set(obj, parent);
the list of objects. The previous list will be deleted and this list
will be managed by elementary. After it is set, don't modify it.]]
values {
- objs: list<Evas.Object>; [[Chain of objects to pass focus]]
+ objs: list<Efl.Canvas.Object>; [[Chain of objects to pass focus]]
}
}
get {
values {
- objs: const(list<Evas.Object>); [[Chain of objects]]
+ objs: const(list<Efl.Canvas.Object>); [[Chain of objects]]
}
}
}
legacy: elm_widget_parent_get; /* Needed because we don't do duplication removal for legacy names. */
}
values {
- parent: Evas.Object @nullable;
+ parent: Efl.Canvas.Object @nullable;
}
}
@property access_info {
return: bool;
}
values {
- edj: Evas.Object;
+ edj: Efl.Canvas.Object;
wname: string;
welement: string;
wstyle: string;
set {
}
values {
- sobj: Evas.Object @nullable;
+ sobj: Efl.Canvas.Object @nullable;
}
}
@property display_mode {
set {
}
values {
- sobj: Evas.Object @nullable;
+ sobj: Efl.Canvas.Object @nullable;
sub_obj: bool;
}
}
[[Function to operate on a given widget's scrollabe children when necessary.
Warning: free the returned list with eina_list_free().]]
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
@property scroll_hold {
}
@property top {
get {
- return: Evas.Object;
+ return: Efl.Canvas.Object;
}
}
@property focus_order {
}
@property can_focus_child_list {
get {
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
@property focused_item {
}
@property parent_widget {
get @virtual_pure {
- return: Evas.Object;
+ return: Efl.Canvas.Object;
legacy: null;
}
}
@property focused_object {
[[Current focused object in object tree.]]
get {
- return: Evas.Object; [[Current focused or $null, if there is no focused object.]]
+ return: Efl.Canvas.Object; [[Current focused or $null, if there is no focused object.]]
}
}
@property parent2 {
get {
}
values {
- parent: Evas.Object @nullable;
+ parent: Efl.Canvas.Object @nullable;
}
}
@property part_text {
}
}
newest_focus_order_get @const {
- return: Evas.Object;
+ return: Efl.Canvas.Object;
params {
@out newest_focus_order: uint;
@in can_focus_only: bool;
@since 1.8]]
params {
- @in next: Evas.Object @nullable; [[Focus next object]]
+ @in next: Efl.Canvas.Object @nullable; [[Focus next object]]
@in dir: Elm.Focus_Direction; [[Focus direction]]
}
}
[[Get the next object with specific focus direction.
@since 1.8]]
- return: Evas.Object; [[Focus next object]]
+ return: Efl.Canvas.Object; [[Focus next object]]
params {
@in dir: Elm.Focus_Direction; [[Focus direction]]
}
Note: On focus cycle, only will be evaluated children of this container.]]
params {
- @in child: Evas.Object; [[The child to be added in custom chain.]]
- @in relative_child: Evas.Object @optional; [[The relative object to position the child.]]
+ @in child: Efl.Canvas.Object; [[The child to be added in custom chain.]]
+ @in relative_child: Efl.Canvas.Object @optional; [[The relative object to position the child.]]
}
}
part_text_translate {
[['Virtual' function handling sub objects being added.]]
return: bool;
params {
- @in sobj: Evas.Object;
+ @in sobj: Efl.Canvas.Object;
}
}
focus_direction_manager_is {
event {
[['Virtual' function handling input events on the widget.]]
params {
- @in source: Evas.Object;
+ @in source: Efl.Canvas.Object;
@in type: Evas.Callback_Type;
@in event_info: void_ptr;
}
focus_direction @virtual_pure {
[['Virtual' function handling passing focus to sub-objects given a direction, in degrees.]]
params {
- @in base: const(Evas.Object);
+ @in base: const(Efl.Canvas.Object);
@in degree: double;
- @out direction: Evas.Object;
+ @out direction: Efl.Canvas.Object;
@out direction_item: Elm.Widget.Item;
@out weight: double;
}
return: bool;
}
name_find @const {
- return: Evas.Object;
+ return: Efl.Canvas.Object;
params {
@in name: string;
@in recurse: int;
focus_list_direction_get @const {
return: bool;
params {
- @in base: const(Evas.Object);
+ @in base: const(Efl.Canvas.Object);
@in items: const(list<Eo.Base>);
@in list_data_get: list_data_get_func_type;
@in degree: double;
- @out direction: Evas.Object;
+ @out direction: Efl.Canvas.Object;
@out direction_item: Elm.Widget.Item;
@out weight: double;
}
return: bool;
params {
@in dir: Elm.Focus_Direction;
- @out next: Evas.Object;
+ @out next: Efl.Canvas.Object;
@out next_item: Elm.Widget.Item;
}
}
[['Virtual' function handling passing focus to sub-objects.]]
params {
@in dir: Elm.Focus_Direction;
- @out next: Evas.Object;
+ @out next: Efl.Canvas.Object;
@out next_item: Elm.Widget.Item;
}
return: bool;
@in items: const(list<Eo.Base>);
@in list_data_get: list_data_get_func_type;
@in dir: Elm.Focus_Direction;
- @out next: Evas.Object;
+ @out next: Efl.Canvas.Object;
@out next_item: Elm.Widget.Item;
}
}
focus_direction_get @const {
return: bool;
params {
- @in base: const(Evas.Object);
+ @in base: const(Efl.Canvas.Object);
@in degree: double;
- @out direction: Evas.Object;
+ @out direction: Efl.Canvas.Object;
@out direction_item: Elm.Widget.Item;
@out weight: double;
}
[['Virtual' function handling sub objects being removed.]]
return: bool;
params {
- @in sobj: Evas.Object;
+ @in sobj: Efl.Canvas.Object;
}
}
tooltip_add {
Note: On focus cycle, only will be evaluated children of this container.]]
params {
- @in child: Evas.Object; [[The child to be added in custom chain.]]
- @in relative_child: Evas.Object @optional; [[The relative object to position the child.]]
+ @in child: Efl.Canvas.Object; [[The child to be added in custom chain.]]
+ @in relative_child: Efl.Canvas.Object @optional; [[The relative object to position the child.]]
}
}
@property focus_move_policy {
part: string @nullable; [[The content part name (NULL for the default content)]]
}
values {
- content: Evas.Object; [[The content of the object item]]
+ content: Efl.Canvas.Object; [[The content of the object item]]
}
}
@property part_text {
[[Get highlight order
@since 1.8]]
- return: const(list<Evas.Object>);
+ return: const(list<Efl.Canvas.Object>);
}
access_order_set {
[[Set highlight order
@since 1.8]]
params {
- @in objs: own(list<Evas.Object>); [[Order of objects to pass highlight]]
+ @in objs: own(list<Efl.Canvas.Object>); [[Order of objects to pass highlight]]
}
}
widget_get @const {
Note: This returns the widget object itself that an item belongs to.
Note: Every elm_object_item supports this API]]
- return: Evas.Object; [[The widget object]]
+ return: Efl.Canvas.Object; [[The widget object]]
}
del {
[[Delete the given item.]]
params {
part: string; [[The content part name to unset (NULL for the default content)]]
}
- return: Evas.Object;
+ return: Efl.Canvas.Object;
}
part_text_custom_update @protected {
[[Update additional text part content]]
[[Get an accessible object of the object item.
@since 1.8]]
- return: Evas.Object; [[Accessible object of the object item or NULL for any error]]
+ return: Efl.Canvas.Object; [[Accessible object of the object item or NULL for any error]]
}
domain_translatable_part_text_set {
[[Set the text for an object item's part, marking it as translatable.
See: @.track_get
@since 1.8]]
- return: Evas.Object; [[The track object]]
+ return: Efl.Canvas.Object; [[The track object]]
}
untrack {
[[This retrieve the track object of the item.
[[Register object item as an accessible object.
@since 1.8]]
- return: Evas.Object; [[Accessible object of the object item or NULL for any error]]
+ return: Efl.Canvas.Object; [[Accessible object of the object item or NULL for any error]]
}
access_unregister {
[[Unregister accessible object of the object item.
params {
dir: Elm.Focus_Direction; [[Focus direction]]
}
- return: Evas.Object; [[Focus next object]]
+ return: Efl.Canvas.Object; [[Focus next object]]
}
focus_next_object_set {
[[Set the next object with specific focus direction.
@since 1.16]]
params {
- next: Evas.Object @nullable; [[Focus next object]]
+ next: Efl.Canvas.Object @nullable; [[Focus next object]]
dir: Elm.Focus_Direction; [[Focus direction]]
}
}
EAPI Ecore_Win32_Window *elm_win_win32_window_get(const Evas_Object *obj);
/**
- * @brief Get the Ecore_Cocoa_Window of an Evas.Object.
+ * @brief Get the Ecore_Cocoa_Window of an Efl.Canvas.Object.
*
* @return The Ecore_Cocoa_Window of @c obj.
*
# include "config.h"
#endif
-#define EVAS_OBJECT_PROTECTED
+#define EFL_CANVAS_OBJECT_PROTECTED
#include <Evas.h>
#include <Ecore.h>
_emotion_object_eo_base_constructor(Eo *obj, Emotion_Object_Data *pd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, E_OBJ_NAME);
+ efl_canvas_object_type_set(obj, E_OBJ_NAME);
return obj;
}
}
static void
-_ephysics_body_evas_obj_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+_ephysics_body_efl_canvas_object_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
EPhysics_Body *body = (EPhysics_Body *) data;
}
static void
-_ephysics_body_evas_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+_ephysics_body_efl_canvas_object_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
{
EPhysics_Body *body = (EPhysics_Body *) data;
int w, h;
if (body->evas_obj)
{
evas_object_event_callback_del(body->evas_obj, EVAS_CALLBACK_DEL,
- _ephysics_body_evas_obj_del_cb);
+ _ephysics_body_efl_canvas_object_del_cb);
evas_object_event_callback_del(body->evas_obj, EVAS_CALLBACK_RESIZE,
- _ephysics_body_evas_obj_resize_cb);
+ _ephysics_body_efl_canvas_object_resize_cb);
if (body->faces_slices)
evas_object_event_callback_del(body->evas_obj, EVAS_CALLBACK_RESTACK,
}
static void
-_ephysics_body_evas_obj_map_apply(EPhysics_Body *body, Evas_Map *map, Evas_Object *obj, Eina_Bool bfc, Eina_Bool update_cw)
+_ephysics_body_efl_canvas_object_map_apply(EPhysics_Body *body, Evas_Map *map, Evas_Object *obj, Eina_Bool bfc, Eina_Bool update_cw)
{
EPhysics_Camera *camera = ephysics_world_camera_get(body->world);
evas_map_util_quat_rotate(map, quat.x(), -quat.y(), quat.z(), -quat.w(),
bx, by, z);
- _ephysics_body_evas_obj_map_apply(body, map, obj, EINA_TRUE,
+ _ephysics_body_efl_canvas_object_map_apply(body, map, obj, EINA_TRUE,
EINA_FALSE);
}
}
evas_map_util_quat_rotate(map, quat.x(), -quat.y(), quat.z(), -quat.w(),
x, y, z);
- _ephysics_body_evas_obj_map_apply(body, map, obj, EINA_TRUE,
+ _ephysics_body_efl_canvas_object_map_apply(body, map, obj, EINA_TRUE,
EINA_FALSE);
}
}
evas_map_util_quat_rotate(map, quat.x(), -quat.y(), quat.z(), -quat.w(),
bx, by, z);
- _ephysics_body_evas_obj_map_apply(body, map, evas_obj,
+ _ephysics_body_efl_canvas_object_map_apply(body, map, evas_obj,
body->back_face_culling, EINA_TRUE);
}
{
evas_object_map_enable_set(body->evas_obj, EINA_FALSE);
evas_object_event_callback_del(body->evas_obj, EVAS_CALLBACK_DEL,
- _ephysics_body_evas_obj_del_cb);
+ _ephysics_body_efl_canvas_object_del_cb);
evas_object_event_callback_del(body->evas_obj, EVAS_CALLBACK_RESIZE,
- _ephysics_body_evas_obj_resize_cb);
+ _ephysics_body_efl_canvas_object_resize_cb);
if (body->default_face)
{
evas_object_event_callback_del(body->evas_obj,
body->evas_obj = evas_obj;
evas_object_event_callback_add(evas_obj, EVAS_CALLBACK_DEL,
- _ephysics_body_evas_obj_del_cb, body);
+ _ephysics_body_efl_canvas_object_del_cb, body);
if (body->soft_body)
{
_ephysics_body_geometry_set(body, obj_x, obj_y, bz, obj_w, obj_h, bd, rate);
ephysics_world_lock_release(body->world);
evas_object_event_callback_add(body->evas_obj, EVAS_CALLBACK_RESIZE,
- _ephysics_body_evas_obj_resize_cb, body);
+ _ephysics_body_efl_canvas_object_resize_cb, body);
}
EAPI Evas_Object *
if (obj)
{
evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL,
- _ephysics_body_evas_obj_del_cb);
+ _ephysics_body_efl_canvas_object_del_cb);
evas_object_event_callback_del(obj, EVAS_CALLBACK_RESIZE,
- _ephysics_body_evas_obj_resize_cb);
+ _ephysics_body_efl_canvas_object_resize_cb);
evas_object_map_enable_set(obj, EINA_FALSE);
}
_ephysics_body_geometry_set(body, obj_x, obj_y, bz, obj_w, obj_h, bd, rate);
ephysics_world_lock_release(body->world);
evas_object_event_callback_add(evas_obj, EVAS_CALLBACK_RESIZE,
- _ephysics_body_evas_obj_resize_cb, body);
+ _ephysics_body_efl_canvas_object_resize_cb, body);
DBG("Soft sphere's face evas object set.");
}
* An Evas Object handle.
* @ingroup Evas_Object_Group
*/
-typedef Eo Evas_Object;
+typedef Eo Efl_Canvas_Object;
+typedef Efl_Canvas_Object Evas_Object;
/* These defines are used in H files generated by Eolian to avoid
* redefinition of types */
#include "canvas/evas_common_interface.eo.h"
-#include "canvas/evas_object.eo.h"
+#include "canvas/efl_canvas_object.eo.h"
#endif /* EFL_EO_API_SUPPORT */
#ifdef EFL_BETA_API_SUPPORT
EVAS_RENDER_TINT = 8, /** DEPRECATED. d = d*s + d*(1 - sa) + s*(1 - da) */
EVAS_RENDER_TINT_REL = 9, /** DEPRECATED. d = d*(1 - sa + s) */
EVAS_RENDER_MASK = 10, /** DEPRECATED. d = d*sa. For masking support, please
- * use Evas.Object.clip_set or EDC "clip_to" instead.
+ * use Efl.Canvas.Object.clip_set or EDC "clip_to" instead.
*/
EVAS_RENDER_MUL = 11 /** DEPRECATED. d = d*s */
} Evas_Render_Op;
EAPI Eina_Bool evas_object_static_clip_get(const Evas_Object *obj);
#include "canvas/evas_common_interface.eo.legacy.h"
-#include "canvas/evas_object.eo.legacy.h"
+#include "canvas/efl_canvas_object.eo.legacy.h"
/**
* @}
-class Efl.Canvas.Group (Evas.Object)
+class Efl.Canvas.Group (Efl.Canvas.Object)
{
[[A group object is a container of other canvas objects. Its children
move along their parent, are often clipped with a common clipper.
legacy: null;
}
values {
- clip: Evas.Object;
+ clip: Efl.Canvas.Object;
}
}
@property group_color {
See also @.group_member_del.]]
params {
- @in sub_obj: Evas.Object @nonull; [[The member object.]]
+ @in sub_obj: Efl.Canvas.Object @nonull; [[The member object.]]
}
legacy: null;
}
See also @.group_member_add for more details.]]
params {
- @in sub_obj: Evas.Object; [[the member object.]]
+ @in sub_obj: Efl.Canvas.Object; [[the member object.]]
}
legacy: null;
}
class.constructor;
class.destructor;
Eo.Base.constructor;
- Evas.Object.paragraph_direction.set;
- Evas.Object.paragraph_direction.get;
+ Efl.Canvas.Object.paragraph_direction.set;
+ Efl.Canvas.Object.paragraph_direction.get;
}
}
Eina_Bool
_evas_image_mmap_set(Eo *eo_obj, const Eina_File *f, const char *key)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
Evas_Image_Load_Opts lo;
Eina_Bool
_evas_image_file_set(Eo *eo_obj, const char *file, const char *key)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
Evas_Image_Load_Opts lo;
const char *file2;
}
// FIXME: if already busy preloading, then dont request again until
// preload done
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (cancel)
{
if (o->preloading)
void
_evas_image_load_async_start(Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
void
_evas_image_load_async_cancel(Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
void
_evas_image_load_dpi_set(Eo *eo_obj, double dpi)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (dpi == o->load_opts->dpi) return;
void
_evas_image_load_size_set(Eo *eo_obj, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if ((o->load_opts->w == w) && (o->load_opts->h == h)) return;
void
_evas_image_load_scale_down_set(Eo *eo_obj, int scale_down)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (o->load_opts->scale_down_by == scale_down) return;
void
_evas_image_load_region_set(Eo *eo_obj, int x, int y, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if ((o->load_opts->region.x == x) && (o->load_opts->region.y == y) &&
void
_evas_image_load_orientation_set(Eo *eo_obj, Eina_Bool enable)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (o->load_opts->orientation == !!enable) return;
Eina_Bool
_evas_image_load_region_support_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
return ENFN->image_can_region_get(ENDT, o->engine_data);
Eina_Bool
_evas_image_animated_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_animated_get)
int
_evas_image_animated_frame_count_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_animated_frame_count_get ||
!evas_object_image_animated_get(eo_obj))
return -1;
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
return ENFN->image_animated_frame_count_get(ENDT, o->engine_data);
}
Efl_Image_Animated_Loop_Hint
_evas_image_animated_loop_type_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_animated_loop_type_get ||
int
_evas_image_animated_loop_count_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_animated_loop_count_get ||
double
_evas_image_animated_frame_duration_get(const Eo *eo_obj, int start_frame, int frame_num)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
int frame_count = 0;
Eina_Bool
_evas_image_animated_frame_set(Eo *eo_obj, int frame_index)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
int frame_count = 0;
void *pixels, int w, int h, int stride,
Efl_Gfx_Colorspace cspace)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
return _image_pixels_set(obj, o, pixels, w, h, stride, cspace, EINA_FALSE);
const void *pixels, int w, int h, int stride,
Efl_Gfx_Colorspace cspace)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
return _image_pixels_set(obj, o, (void *) pixels, w, h, stride, cspace, EINA_TRUE);
EOLIAN static void *
_efl_canvas_image_efl_gfx_buffer_buffer_data_get(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!o->buffer_data_set || !o->engine_data || !ENFN->image_data_direct)
int x, int y, int w, int h,
Efl_Gfx_Colorspace cspace, int *stride)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
int len = 0, s = 0, width = 0, height = 0;
void *data = NULL;
_efl_canvas_image_efl_gfx_buffer_buffer_unmap(Eo *eo_obj, void *_pd EINA_UNUSED,
void *data, int length)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_data_unmap || !o->engine_data)
-abstract Efl.Canvas.Image.Internal (Evas.Object, Efl.Canvas.Filter.Internal,
+abstract Efl.Canvas.Image.Internal (Efl.Canvas.Object, Efl.Canvas.Filter.Internal,
Efl.Image, Efl.Gfx.Buffer,
Efl.Gfx.Fill, Efl.Gfx.View,
Efl.Orientation, Efl.Flipable,
import evas_types;
import efl_text_types;
-abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx, Efl.Gfx.Stack,
- Efl.Animator, Efl.Input.Interface, Efl.Gfx.Size.Hint)
+abstract Efl.Canvas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx,
+ Efl.Gfx.Stack, Efl.Animator, Efl.Input.Interface,
+ Efl.Gfx.Size.Hint)
{
legacy_prefix: evas_object;
- eo_prefix: evas_obj;
- event_prefix: evas_object;
data: Evas_Object_Protected_Data;
methods {
legacy_ctor @protected @beta {
*/
}
values {
- clip: Evas.Object @nonull; [[The object to clip $obj by.]]
+ clip: Efl.Canvas.Object @nonull; [[The object to clip $obj by.]]
}
}
@property repeat_events {
See also @.clip and @.clip_unset.
]]
legacy: null;
- return: iterator<Evas.Object> @warn_unused; [[An iterator over the
+ return: iterator<Efl.Canvas.Object> @warn_unused; [[An iterator over the
list of objects clipped by $obj.]]
}
}
legacy: evas_object_smart_parent_get;
}
values {
- parent: Evas.Object; [[The parent smart object of $obj or $null.]]
+ parent: Efl.Canvas.Object; [[The parent smart object of $obj or $null.]]
}
}
/* FIXME: is this really necessary? */
-class Efl.Canvas.Polygon (Evas.Object)
+class Efl.Canvas.Polygon (Efl.Canvas.Object)
{
[[Low-level polygon object]]
Eina_Bool
_evas_image_proxy_source_set(Eo *eo_obj, Evas_Object *eo_src)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (obj->delete_me && eo_src)
{
}
if (eo_src)
{
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
if (src->delete_me)
{
WRN("Setting object %p to deleted image source %p", eo_src, eo_obj);
_evas_image_proxy_source_clip_set(Eo *eo_obj, Eina_Bool source_clip)
{
Evas_Object_Protected_Data *src_obj;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
source_clip = !!source_clip;
if (!o->cur->source) return;
- src_obj = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ src_obj = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
evas_object_change(o->cur->source, src_obj);
}
void
_evas_image_proxy_source_events_set(Eo *eo_obj, Eina_Bool source_events)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
source_events = !!source_events;
Eina_Bool
_evas_image_proxy_source_events_get(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
return obj->proxy->src_events;
}
if (!o->cur->source) return;
- cur_source = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ cur_source = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, cur_source->proxy, Evas_Object_Proxy_Data, proxy_source_write)
{
void
_evas_image_proxy_set(Evas_Object *eo_proxy, Evas_Object *eo_src)
{
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *proxy = eo_data_scope_get(eo_proxy, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *proxy = eo_data_scope_get(eo_proxy, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_proxy, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
_evas_image_file_set(eo_proxy, NULL, NULL);
static inline void *
_proxy_image_get(Evas_Image_Data *o)
{
- Evas_Object_Protected_Data *source = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *source = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *source_img = NULL;
if (!source)
int x, int y, int w, int h,
Efl_Gfx_Colorspace cspace, int *stride)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
int len = 0, s = 0, width = 0, height = 0;
void *image, *data = NULL;
_efl_canvas_proxy_efl_gfx_buffer_buffer_unmap(Eo *eo_obj, void *_pd EINA_UNUSED,
void *data, int length)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!ENFN->image_data_unmap || !o->engine_data)
o->proxyerror = 1;
}
- proxy = eo_data_scope_get(eo_proxy, EVAS_OBJECT_CLASS);
+ proxy = eo_data_scope_get(eo_proxy, EFL_CANVAS_OBJECT_CLASS);
func = proxy->layer->evas->engine.func;
func->context_color_set(output, context, 0, 0, 0, 255);
func->context_multiplier_unset(output, context);
The proxy object will mirror the rendering contents of a given
source object in its drawing region, without affecting that
- source in any way. The source must be another valid @Evas.Object.
+ source in any way. The source must be another valid @Efl.Canvas.Object.
Other effects may be applied to the proxy, such as a map (see
- @Evas.Object.map) to create a reflection of the original object
+ @Efl.Canvas.Object.map) to create a reflection of the original object
(for example).
Any existing source object will be removed after this call.
}
get {}
values {
- src: Evas.Object @nonull; [[Source object to use for the proxy.]]
+ src: Efl.Canvas.Object @nonull; [[Source object to use for the proxy.]]
}
}
@property source_clip {
-class Efl.Canvas.Rectangle (Evas.Object)
+class Efl.Canvas.Rectangle (Efl.Canvas.Object)
{
implements {
Eo.Base.constructor;
EOLIAN static void
_efl_canvas_scene3d_scene3d_set(Eo *eo_obj, void *pd EINA_UNUSED, Evas_Canvas3D_Scene *scene)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
Evas_Image_Load_Opts lo;
void
_evas_image_3d_set(Evas_Object *eo_obj, Evas_Canvas3D_Scene *scene)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
Evas_Canvas3D_Scene_Data *pd_scene = eo_data_scope_get(scene,
EVAS_CANVAS3D_SCENE_CLASS);
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
if (!eo_obj) return NULL;
- evas_obj_pass_events_set(eo_obj, EINA_TRUE);
+ efl_canvas_object_pass_events_set(eo_obj, EINA_TRUE);
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
EINA_COW_STATE_WRITE_BEGIN(obj, sw, cur)
sw->snapshot = EINA_TRUE;
EINA_COW_STATE_WRITE_END(obj, sw, cur);
Evas_Object_Protected_Data *obj;
eo = eo_constructor(eo_super(eo, MY_CLASS));
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return NULL;
if (!ENFN->image_native_init(ENDT, EVAS_NATIVE_SURFACE_TBM))
{
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_TBM);
eo_data_unref(eo, pd->base);
Evas_Object_Protected_Data *obj;
eo = eo_constructor(eo_super(eo, MY_CLASS));
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return NULL;
if (!ENFN->image_native_init(ENDT, EVAS_NATIVE_SURFACE_WL))
{
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_WL);
eo_data_unref(eo, pd->base);
Evas_Object_Protected_Data *obj;
eo = eo_constructor(eo_super(eo, MY_CLASS));
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return NULL;
if (!ENFN->image_native_init(ENDT, EVAS_NATIVE_SURFACE_X11))
{
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
ENFN->image_native_shutdown(ENDT, EVAS_NATIVE_SURFACE_X11);
eo_data_unref(eo, pd->base);
struct Efl.Canvas.Text.Style;
-class Efl.Canvas.Text (Evas.Object, Efl.Text)
+class Efl.Canvas.Text (Efl.Canvas.Object, Efl.Text)
{
legacy_prefix: evas_object_textblock;
methods {
@since 1.15
]]
params {
- @in eo_obs: Evas.Object;
+ @in eo_obs: Efl.Canvas.Object;
}
return: bool; [[$true on success, $false otherwise.]]
}
@since 1.15
]]
params {
- @in eo_obs: Evas.Object;
+ @in eo_obs: Efl.Canvas.Object;
}
return: bool; [[$true on success, $false otherwise.]]
}
Eo.Base.constructor;
Eo.Base.destructor;
Eo.Base.dbg_info_get;
- Evas.Object.paragraph_direction.set;
- Evas.Object.paragraph_direction.get;
+ Efl.Canvas.Object.paragraph_direction.set;
+ Efl.Canvas.Object.paragraph_direction.get;
Efl.Text.text.set;
Efl.Text.text.get;
}
legacy: null;
}
values {
- tb: const(Evas.Object); [[The text object]] /* XXX: It should be textblock only. */
+ tb: const(Efl.Canvas.Object); [[The text object]] /* XXX: It should be textblock only. */
}
}
@property position {
}
internal_remove {
[[No description supplied by the EAPI.]]
- return: Evas.Object;
+ return: Efl.Canvas.Object;
legacy: null;
params {
- @in child: Evas.Object;
+ @in child: Efl.Canvas.Object;
}
}
layout_flow_vertical {
return: Evas_Object_Box_Option *; [[A box option bound to the recently added box item or
$null, on errors]]
params {
- @in child: Evas.Object @nonull; [[A child Evas object to be made a member of $o.]]
- @in reference: const(Evas.Object) @nonull; [[The child object to place this new one after.]]
+ @in child: Efl.Canvas.Object @nonull; [[A child Evas object to be made a member of $o.]]
+ @in reference: const(Efl.Canvas.Object) @nonull; [[The child object to place this new one after.]]
}
}
remove_all {
[[Get an iterator to walk the list of children of a given box object.
Note: Do not remove or delete objects while walking the list.]]
- return: free(own(iterator<Evas.Object>), eina_iterator_free)
+ return: free(own(iterator<Efl.Canvas.Object>), eina_iterator_free)
@warn_unused; [[An iterator on $o's child objects, on success, or $null, on errors.]]
}
add_to {
This is a helper function that has the same effect of putting a new
box object into $parent by use of evas_object_smart_member_add.]]
- return: Evas.Object @warn_unused; [[$null on error, a pointer to a new box object on
+ return: Efl.Canvas.Object @warn_unused; [[$null on error, a pointer to a new box object on
success.]]
}
append {
return: Evas_Object_Box_Option *; [[A box option bound to the recently added box item or
$null, on errors.]]
params {
- @in child: Evas.Object @nonull; [[A child Evas object to be made a member of $o.]]
+ @in child: Efl.Canvas.Object @nonull; [[A child Evas object to be made a member of $o.]]
}
}
option_property_id_get @const {
return: Evas_Object_Box_Option *; [[A box option bound to the recently added box item or
$null, on errors.]]
params {
- @in child: Evas.Object @nonull; [[A child Evas object to be made a member of $o.]]
+ @in child: Efl.Canvas.Object @nonull; [[A child Evas object to be made a member of $o.]]
}
}
accessor_new @const {
list of children of a given box object.
Note: Do not remove or delete objects while walking the list.]]
- return: free(own(accessor<Evas.Object>), eina_accessor_free)
+ return: free(own(accessor<Efl.Canvas.Object>), eina_accessor_free)
@warn_unused; [[An accessor on $o's child objects, on success, or $null,
on errors.]]
}
legacy: null;
return: Evas_Object_Box_Option *;
params {
- @in child: Evas.Object;
+ @in child: Efl.Canvas.Object;
}
}
option_property_vset {
internal_remove_at {
[[No description supplied by the EAPI.]]
legacy: null;
- return: Evas.Object;
+ return: Efl.Canvas.Object;
params {
@in pos: uint;
}
legacy: null;
return: Evas_Object_Box_Option *;
params {
- @in child: Evas.Object;
+ @in child: Efl.Canvas.Object;
@in pos: uint;
}
}
return: Evas_Object_Box_Option *; [[A box option bound to the recently added box item or
$null, on errors.]]
params {
- @in child: Evas.Object @nonull; [[A child Evas object to be made a member of $o.]]
- @in reference: const(Evas.Object) @nonull; [[The child object to place this new one before.]]
+ @in child: Efl.Canvas.Object @nonull; [[A child Evas object to be made a member of $o.]]
+ @in reference: const(Efl.Canvas.Object) @nonull; [[The child object to place this new one before.]]
}
}
option_property_name_get @const {
legacy: null;
return: Evas_Object_Box_Option *;
params {
- @in child: Evas.Object;
- @in reference: const(Evas.Object);
+ @in child: Efl.Canvas.Object;
+ @in reference: const(Efl.Canvas.Object);
}
}
layout_homogeneous_horizontal {
legacy: null;
return: Evas_Object_Box_Option*;
params {
- @in child: Evas.Object;
+ @in child: Efl.Canvas.Object;
}
}
layout_homogeneous_max_size_vertical {
legacy: null;
return: Evas_Object_Box_Option *;
params {
- @in child: Evas.Object;
- @in reference: const(Evas.Object);
+ @in child: Efl.Canvas.Object;
+ @in reference: const(Efl.Canvas.Object);
}
}
insert_at {
return: Evas_Object_Box_Option *; [[A box option bound to the recently added box item or
$null, on errors.]]
params {
- @in child: Evas.Object @nonull; [[A child Evas object to be made a member of $o.]]
+ @in child: Efl.Canvas.Object @nonull; [[A child Evas object to be made a member of $o.]]
@in pos: uint; [[The numeric position (starting from $0) to place the
new child object at.]]
}
legacy: null;
return: Evas_Object_Box_Option*;
params {
- @in child: Evas.Object;
+ @in child: Efl.Canvas.Object;
}
}
remove {
return: bool; [[$true on success, $false otherwise.]]
params {
- @in child: Evas.Object @nonull; [[The handle to the child object to be removed.]]
+ @in child: Efl.Canvas.Object @nonull; [[The handle to the child object to be removed.]]
}
}
layout_stack {
-#define EVAS_OBJECT_BETA
+#define EFL_CANVAS_OBJECT_BETA
#define EVAS_CANVAS_BETA
#include "evas_common_private.h"
}
DEFINE_EVAS_CALLBACKS(EVAS_CALLBACK_LAST,
- EVAS_OBJECT_EVENT_MOUSE_IN,
- EVAS_OBJECT_EVENT_MOUSE_OUT,
- EVAS_OBJECT_EVENT_MOUSE_DOWN,
- EVAS_OBJECT_EVENT_MOUSE_UP,
- EVAS_OBJECT_EVENT_MOUSE_MOVE,
- EVAS_OBJECT_EVENT_MOUSE_WHEEL,
- EVAS_OBJECT_EVENT_MULTI_DOWN,
- EVAS_OBJECT_EVENT_MULTI_UP,
- EVAS_OBJECT_EVENT_MULTI_MOVE,
- EVAS_OBJECT_EVENT_FREE,
- EVAS_OBJECT_EVENT_KEY_DOWN,
- EVAS_OBJECT_EVENT_KEY_UP,
- EVAS_OBJECT_EVENT_FOCUS_IN,
- EVAS_OBJECT_EVENT_FOCUS_OUT,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_IN,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_OUT,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_DOWN,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_UP,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_MOVE,
+ EFL_CANVAS_OBJECT_EVENT_MOUSE_WHEEL,
+ EFL_CANVAS_OBJECT_EVENT_MULTI_DOWN,
+ EFL_CANVAS_OBJECT_EVENT_MULTI_UP,
+ EFL_CANVAS_OBJECT_EVENT_MULTI_MOVE,
+ EFL_CANVAS_OBJECT_EVENT_FREE,
+ EFL_CANVAS_OBJECT_EVENT_KEY_DOWN,
+ EFL_CANVAS_OBJECT_EVENT_KEY_UP,
+ EFL_CANVAS_OBJECT_EVENT_FOCUS_IN,
+ EFL_CANVAS_OBJECT_EVENT_FOCUS_OUT,
EFL_GFX_EVENT_SHOW,
EFL_GFX_EVENT_HIDE,
EFL_GFX_EVENT_MOVE,
EFL_GFX_EVENT_RESIZE,
EFL_GFX_EVENT_RESTACK,
- EVAS_OBJECT_EVENT_DEL,
- EVAS_OBJECT_EVENT_HOLD,
+ EFL_CANVAS_OBJECT_EVENT_DEL,
+ EFL_CANVAS_OBJECT_EVENT_HOLD,
EFL_GFX_EVENT_CHANGE_SIZE_HINTS,
EFL_IMAGE_EVENT_PRELOAD,
EFL_CANVAS_EVENT_FOCUS_IN,
{
_eo_evas_object_cb_info *info;
Eina_Inlist *itr;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if (!obj->callbacks) return;
if (pevflags) *pevflags = efl_event_flags_get(eo_event_info);
}
- /* legacy callbacks - relying on Evas.Object events */
+ /* legacy callbacks - relying on Efl.Canvas.Object events */
eo_event_callback_call(eo_obj, _legacy_evas_callback_table(type), event_info);
if (type == EVAS_CALLBACK_MOUSE_DOWN)
if ((obj->smart.parent) && (type != EVAS_CALLBACK_FREE) &&
(type <= EVAS_CALLBACK_KEY_UP))
{
- Evas_Object_Protected_Data *smart_parent = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart_parent = eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
evas_object_event_callback_call(obj->smart.parent, smart_parent, type, event_info, event_id, eo_event_desc, eo_event_info);
}
}
EAPI void
evas_object_event_callback_priority_add(Evas_Object *eo_obj, Evas_Callback_Type type, Evas_Callback_Priority priority, Evas_Object_Event_Cb func, const void *data)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return NULL;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return NULL;
if (!func) return NULL;
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return NULL;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return NULL;
if (!func) return NULL;
In this example the $event_info is exactly a pointer to that
focused rectangle. See the full @ref Example_Evas_Events "example".
*/
- return: Evas.Object @warn_unused; [[The object that has focus
+ return: Efl.Canvas.Object @warn_unused; [[The object that has focus
or $null if there is not one.]]
}
}
\@ref evas_object_layer_set, \@ref evas_object_below_get,
\@ref evas_object_above_get.
]]
- return: Evas.Object @warn_unused; [[A pointer to the highest object
+ return: Efl.Canvas.Object @warn_unused; [[A pointer to the highest object
on it (if any) or $null otherwise.]]
}
}
See also \@ref evas_object_layer_get, \@ref evas_object_layer_set,
\@ref evas_object_below_get, \@ref evas_object_below_set.
]]
- return: Evas.Object @warn_unused; [[
+ return: Efl.Canvas.Object @warn_unused; [[
A pointer to the lowest object on it, if any, or $null
otherwise.
]]
It will not append to the list pass events as hidden objects.
Call eina_list_free on the returned list after usage.
]]
- return: list<Evas.Object> @warn_unused;
+ return: list<Efl.Canvas.Object> @warn_unused;
params {
- @in stop: Evas.Object; [[An Evas Object where to stop searching.]]
+ @in stop: Efl.Canvas.Object; [[An Evas Object where to stop searching.]]
@in x: int; [[The horizontal coordinate of the position.]]
@in y: int; [[The vertical coordinate of the position.]]
}
objects, acting only on the ones at the "top level", with
regard to object parenting.
]]
- return: list<Evas.Object> @warn_unused; [[
+ return: list<Efl.Canvas.Object> @warn_unused; [[
The list of Evas objects that are over the given position in $e.
]]
params {
objects, acting only on the ones at the "top level", with
regard to object parenting.
]]
- return: Evas.Object @warn_unused; [[The Evas object that is over all other objects at the given position.]]
+ return: Efl.Canvas.Object @warn_unused; [[The Evas object that is over all other objects at the given position.]]
params {
@in x: Evas.Coord; [[The horizontal coordinate of the position.]]
@in y: Evas.Coord; [[The vertical coordinate of the position.]]
]]
}
objects_in_rectangle_get @const {
- return: list<Evas.Object> @warn_unused;
+ return: list<Efl.Canvas.Object> @warn_unused;
params {
@in x: Evas.Coord;
@in y: Evas.Coord;
name is returned is undefined, so only use this if you can
ensure the object name is unique.
]]
- return: Evas.Object @warn_unused; [[
+ return: Efl.Canvas.Object @warn_unused; [[
If successful, the Evas object with the given name. Otherwise,
$null.
]]
objects, acting only on the ones at the "top level", with
regard to object parenting.
]]
- return: Evas.Object @warn_unused; [[
+ return: Efl.Canvas.Object @warn_unused; [[
The Evas object that is over all other objects at the given
rectangular region.
]]
EINA_LIST_FOREACH(pd->images, l, eo)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
evas_object_change(eo, obj);
}
}
static inline void
_texture_proxy_unset(Evas_Canvas3D_Texture_Data *texture)
{
- Evas_Object_Protected_Data *src = eo_data_scope_get(texture->source, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(texture->source, EFL_CANVAS_OBJECT_CLASS);
EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, src->proxy, Evas_Object_Proxy_Data, proxy_src);
{
// TODO: replace this function by evas_render_proxy_subrender (as appropriate)
- source = eo_data_scope_get(pd->source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(pd->source, EFL_CANVAS_OBJECT_CLASS);
is_image = eo_isa(pd->source, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
Eo *evas = NULL;
evas = evas_common_evas_get(obj);
Evas_Public_Data *e = eo_data_scope_get(evas, EVAS_CANVAS_CLASS);
- Evas_Object_Protected_Data *src = eo_data_scope_get(pd->source, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(pd->source, EFL_CANVAS_OBJECT_CLASS);
if (pd->engine_data == NULL)
{
return;
}
- src = eo_data_scope_get(source, EVAS_OBJECT_CLASS);
+ src = eo_data_scope_get(source, EFL_CANVAS_OBJECT_CLASS);
if (src->delete_me)
{
if (pd->source == NULL)
return;
- src_obj = eo_data_scope_get(pd->source, EVAS_OBJECT_CLASS);
+ src_obj = eo_data_scope_get(pd->source, EFL_CANVAS_OBJECT_CLASS);
if (src_obj->proxy->src_invisible == !visible)
return;
if (pd->source == NULL)
return EINA_FALSE;
- src_obj = eo_data_scope_get(pd->source, EVAS_OBJECT_CLASS);
+ src_obj = eo_data_scope_get(pd->source, EFL_CANVAS_OBJECT_CLASS);
return !src_obj->proxy->src_invisible;
}
]]
params {
- @in source: Evas.Object; [[Source evas object to be used as
+ @in source: Efl.Canvas.Object; [[Source evas object to be used as
the texture data.]]
}
}
if (obj->smart.parent)
{
Evas_Object_Protected_Data *smart_parent_obj =
- eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
evas_object_child_map_across_mark
(eo_obj, obj, smart_parent_obj->map->cur.map_parent, 0, NULL);
}
}
static void
-_evas_object_clip_mask_unset(Evas_Object_Protected_Data *obj)
+_efl_canvas_object_clip_mask_unset(Evas_Object_Protected_Data *obj)
{
if (!obj || !obj->mask->is_mask) return;
if (obj->clip.clipees) return;
static void _clipper_del_cb(void *data, const Eo_Event *event);
EOLIAN void
-_evas_object_clip_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object *eo_clip)
+_efl_canvas_object_clip_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object *eo_clip)
{
Evas_Object_Protected_Data *clip;
Evas_Public_Data *e;
evas_object_async_block(obj);
- clip = eo_data_scope_get(eo_clip, EVAS_OBJECT_CLASS);
+ clip = eo_data_scope_get(eo_clip, EFL_CANVAS_OBJECT_CLASS);
if (obj->cur->clipper && obj->cur->clipper->object == eo_clip) return;
if (eo_obj == eo_clip)
{
}
}
- _evas_object_clip_mask_unset(obj->cur->clipper);
+ _efl_canvas_object_clip_mask_unset(obj->cur->clipper);
}
evas_object_change(obj->cur->clipper->object, obj->cur->clipper);
evas_object_change(eo_obj, obj);
}
EOLIAN Evas_Object *
-_evas_object_clip_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_clip_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if (obj->cur->clipper)
return obj->cur->clipper->object;
}
EOLIAN void
-_evas_object_clip_unset(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_clip_unset(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
if (!obj->cur->clipper) return;
evas_object_async_block(obj);
}
}
- _evas_object_clip_mask_unset(obj->cur->clipper);
+ _efl_canvas_object_clip_mask_unset(obj->cur->clipper);
}
evas_object_change(obj->cur->clipper->object, obj->cur->clipper);
_clipper_del_cb(void *data, const Eo_Event *event)
{
Evas_Object *eo_obj = data;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
- _evas_object_clip_unset(eo_obj, obj);
+ _efl_canvas_object_clip_unset(eo_obj, obj);
if (obj->prev->clipper && (obj->prev->clipper->object == event->object))
{
// not removing cb since it's the del cb... it can't be called again!
}
void
-_evas_object_clip_prev_reset(Evas_Object_Protected_Data *obj, Eina_Bool cur_prev)
+_efl_canvas_object_clip_prev_reset(Evas_Object_Protected_Data *obj, Eina_Bool cur_prev)
{
if (obj->prev->clipper)
{
}
EOLIAN Eina_Iterator *
-_evas_object_clipees_get(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_clipees_get(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
Clipee_Iterator *it;
}
EOLIAN Eina_Bool
-_evas_object_clipees_has(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_clipees_has(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return (obj->clip.clipees ? EINA_TRUE : EINA_FALSE);
}
EOLIAN void
-_evas_object_no_render_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool enable)
+_efl_canvas_object_no_render_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool enable)
{
obj->no_render = enable;
if (obj->is_smart)
}
EOLIAN Eina_Bool
-_evas_object_no_render_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_no_render_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->no_render;
}
{
if (obj->smart.parent)
{
- Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
_evas_event_havemap_adjust(obj->smart.parent, smart_parent_obj, x, y, mouse_grabbed);
}
Evas_Event_Mouse_Down *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->canvas;
Evas_Object_Protected_Data *child;
EINA_LIST_FOREACH(src->proxy->src_event_in, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if ((child->pointer_mode == EVAS_OBJECT_POINTER_MODE_AUTOGRAB) ||
(child->pointer_mode == EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN))
{
copy = evas_event_list_copy(src->proxy->src_event_in);
EINA_LIST_FOREACH(copy, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
ev->canvas = point;
_evas_event_havemap_adjust(eo_child, child, &ev->canvas.x,
&ev->canvas.y,
Evas_Event_Mouse_Move *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->cur.canvas;
Efl_Event_Pointer *pe = NULL;
Eina_List *copy = evas_event_list_copy(src->proxy->src_event_in);
EINA_LIST_FOREACH(copy, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if ((evas_object_clippers_is_visible(eo_child, child) ||
child->mouse_grabbed) &&
{
eo_child = outs->data;
outs = eina_list_remove(outs, eo_child);
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if ((child->mouse_grabbed == 0) && (!e->delete_me))
{
if (child->mouse_in) continue;
EINA_LIST_FOREACH(copy, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
ev->cur.canvas = point;
int event_id2 = _evas_event_counter;
EINA_LIST_FOREACH(ins, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if (!eina_list_data_find(src->proxy->src_event_in, eo_child))
{
if (!child->mouse_in)
Evas_Event_Mouse_Up *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(copy, l, eo_child)
{
if (src->delete_me) break;
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if (((child->pointer_mode == EVAS_OBJECT_POINTER_MODE_AUTOGRAB) ||
(child->pointer_mode == EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN)) ||
(child->mouse_grabbed > 0))
static void
_evas_event_source_hold_events(Evas_Object *eo_obj, Evas *eo_e EINA_UNUSED, void *ev, int event_id)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
if (obj->layer->evas->is_frozen) return;
EINA_LIST_FOREACH(src->proxy->src_event_in, l, child_eo)
{
if (src->delete_me) return;
- child = eo_data_scope_get(child_eo, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(child_eo, EFL_CANVAS_OBJECT_CLASS);
evas_object_event_callback_call(child_eo, child, EVAS_CALLBACK_HOLD, ev,
event_id, NULL, NULL);
if (src->layer->evas->delete_me) break;
Evas_Event_Mouse_Wheel *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(copy, l, eo_child)
{
if (src->delete_me) return;
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
ev->canvas = point;
_evas_event_havemap_adjust(eo_child, child,
&ev->canvas.x,
Evas_Event_Multi_Down *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Precision_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(src->proxy->src_event_in, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if (child->pointer_mode != EVAS_OBJECT_POINTER_MODE_NOGRAB)
{
child->mouse_grabbed += (addgrab + 1);
&ev->canvas.x,
&ev->canvas.y,
child->mouse_grabbed);
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
EV_CALL(eo_child, child, EVAS_CALLBACK_MULTI_DOWN, ev, event_id, pe, parent_pe);
if (e->delete_me) break;
}
Evas_Event_Multi_Up *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Precision_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(copy, l, eo_child)
{
ev->canvas = point;
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if (((child->pointer_mode == EVAS_OBJECT_POINTER_MODE_AUTOGRAB) ||
(child->pointer_mode == EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN)) ||
(child->mouse_grabbed > 0))
Evas_Event_Multi_Move *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Precision_Point canvas = ev->cur.canvas;
Efl_Event_Pointer *pe = NULL;
Eina_List *copy = evas_event_list_copy(src->proxy->src_event_in);
EINA_LIST_FOREACH(copy, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
if (((evas_object_clippers_is_visible(eo_child, child)) ||
((child->mouse_grabbed) &&
(!evas_event_passes_through(eo_child, child)) &&
&ev->cur.canvas.x,
&ev->cur.canvas.y,
child->mouse_grabbed);
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
EV_CALL(eo_child, child, EVAS_CALLBACK_MULTI_MOVE, ev, event_id, pe, parent_pe);
if (e->delete_me || e->is_frozen) break;
}
Eina_List *copy = evas_event_list_copy(src->proxy->src_event_in);
EINA_LIST_FOREACH(copy, l, eo_child)
{
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
ev->cur.canvas = point;
if (evas_object_is_in_output_rect(eo_child, child,
&ev->cur.canvas.x,
&ev->cur.canvas.y,
child->mouse_grabbed);
- child = eo_data_scope_get(eo_child, EVAS_OBJECT_CLASS);
+ child = eo_data_scope_get(eo_child, EFL_CANVAS_OBJECT_CLASS);
EV_CALL(eo_child, child, EVAS_CALLBACK_MULTI_MOVE, ev, event_id, pe, parent_pe);
if (e->delete_me || e->is_frozen) break;
}
Evas_Event_Mouse_In *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(ins, l, eo_child)
{
Evas_Object_Protected_Data *child = eo_data_scope_get(eo_child,
- EVAS_OBJECT_CLASS);
+ EFL_CANVAS_OBJECT_CLASS);
if (!eina_list_data_find(src->proxy->src_event_in, eo_child))
{
if(child->mouse_in) continue;
Evas_Event_Mouse_Out *ev, int event_id,
Efl_Event_Pointer *parent_pe)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object *eo_src = _evas_object_image_source_get(eo_obj);
- Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *src = eo_data_scope_get(eo_src, EFL_CANVAS_OBJECT_CLASS);
Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
Evas_Coord_Point canvas = ev->canvas;
Efl_Event_Pointer *pe = NULL;
EINA_LIST_FOREACH(copy, l, eo_child)
{
Evas_Object_Protected_Data *child = eo_data_scope_get(eo_child,
- EVAS_OBJECT_CLASS);
+ EFL_CANVAS_OBJECT_CLASS);
if (!child->mouse_in) continue;
child->mouse_in = 0;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((obj->pointer_mode == EVAS_OBJECT_POINTER_MODE_AUTOGRAB) ||
(obj->pointer_mode == EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN))
{
}
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->delete_me) continue;
ev.canvas.x = e->pointer.x;
ev.canvas.y = e->pointer.y;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, ll, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!eina_list_data_find(ins, eo_obj)) || (!e->pointer.inside))
{
if (!obj->mouse_in) continue;
EINA_LIST_FOREACH(ins, l, eo_obj_itr)
{
- Evas_Object_Protected_Data *obj_itr = eo_data_scope_get(eo_obj_itr, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj_itr = eo_data_scope_get(eo_obj_itr, EFL_CANVAS_OBJECT_CLASS);
if (!eina_list_data_find(e->pointer.object.in, eo_obj_itr))
{
if (obj_itr->mouse_in) continue;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (((obj->pointer_mode == EVAS_OBJECT_POINTER_MODE_AUTOGRAB) ||
(obj->pointer_mode == EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN)) &&
(obj->mouse_grabbed > 0))
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!evas_event_freezes_through(eo_obj, obj))
{
ev.canvas.x = e->pointer.x;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!e->is_frozen) &&
(evas_object_clippers_is_visible(eo_obj, obj) ||
obj->mouse_grabbed) &&
Evas_Object *eo_obj;
eo_obj = outs->data;
outs = eina_list_remove(outs, eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((obj->mouse_grabbed == 0) && (!e->delete_me))
{
if (!obj->mouse_in) continue;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) continue;
/* if its under the pointer and its visible and its in the new */
/* go thru our current list of ins */
EINA_LIST_FOREACH(ins, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* if its not in the old list of ins send an enter event */
if (!eina_list_data_find(e->pointer.object.in, eo_obj))
{
eo_below_obj = evas_object_below_get(nogrep_obj);
if (eo_below_obj)
{
- Evas_Object_Protected_Data *below_obj = eo_data_scope_get(eo_below_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *below_obj = eo_data_scope_get(eo_below_obj, EFL_CANVAS_OBJECT_CLASS);
ins = _evas_event_object_list_raw_in_get(eo_e, NULL,
EINA_INLIST_GET(below_obj), NULL,
e->pointer.x, e->pointer.y,
EINA_LIST_FOREACH(lst, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* if its under the pointer and its visible and its in the new */
/* in list */
// FIXME: i don't think we need this
/* go thru our current list of ins */
EINA_LIST_FOREACH(newin, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* if its not in the old list of ins send an enter event */
if (!eina_list_data_find(e->pointer.object.in, eo_obj))
{
ins = evas_event_objects_event_list(eo_e, NULL, e->pointer.x, e->pointer.y);
EINA_LIST_FOREACH(ins, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!eina_list_data_find(e->pointer.object.in, eo_obj))
{
if (obj->mouse_in) continue;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj->mouse_in) continue;
obj->mouse_in = 0;
if (!obj->delete_me)
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->pointer_mode != EVAS_OBJECT_POINTER_MODE_NOGRAB)
{
obj->mouse_grabbed += addgrab + 1;
}
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
ev.canvas.x = x;
ev.canvas.y = y;
ev.canvas.xsub = fx;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
ev.canvas.x = x;
ev.canvas.y = y;
ev.canvas.xsub = fx;
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((evas_object_clippers_is_visible(eo_obj, obj) ||
obj->mouse_grabbed) &&
(!evas_event_passes_through(eo_obj, obj)) &&
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* if its under the pointer and its visible and its in the new */
/* in list */
// FIXME: i don't think we need this
{
if (!(e->modifiers.mask & g->not_modifiers))
{
- Evas_Object_Protected_Data *object_obj = eo_data_scope_get(g->object, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *object_obj = eo_data_scope_get(g->object, EFL_CANVAS_OBJECT_CLASS);
if (!e->is_frozen &&
!evas_event_freezes_through(g->object, object_obj))
{
l = eina_list_next(l);
if (g->delete_me)
{
- Evas_Object_Protected_Data *g_object_obj = eo_data_scope_get(g->object, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *g_object_obj = eo_data_scope_get(g->object, EFL_CANVAS_OBJECT_CLASS);
evas_key_grab_free(g->object, g_object_obj, g->keyname,
g->modifiers, g->not_modifiers);
}
if (!ke) EV_DEL(eo_event_info);
if ((e->focused) && (!exclusive))
{
- Evas_Object_Protected_Data *focused_obj = eo_data_scope_get(e->focused, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *focused_obj = eo_data_scope_get(e->focused, EFL_CANVAS_OBJECT_CLASS);
if (!e->is_frozen && !evas_event_freezes_through(e->focused, focused_obj))
{
EV_CALL(e->focused, focused_obj, EVAS_CALLBACK_KEY_DOWN,
(!(e->modifiers.mask & g->not_modifiers)) &&
(!strcmp(keyname, g->keyname)))
{
- Evas_Object_Protected_Data *object_obj = eo_data_scope_get(g->object, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *object_obj = eo_data_scope_get(g->object, EFL_CANVAS_OBJECT_CLASS);
if (!e->is_frozen &&
!evas_event_freezes_through(g->object, object_obj))
{
if (gr->delete_me)
{
Evas_Object_Protected_Data *gr_object_obj =
- eo_data_scope_get(gr->object, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(gr->object, EFL_CANVAS_OBJECT_CLASS);
evas_key_grab_free(gr->object, gr_object_obj, gr->keyname,
gr->modifiers, gr->not_modifiers);
}
}
if ((e->focused) && (!exclusive))
{
- Evas_Object_Protected_Data *focused_obj = eo_data_scope_get(e->focused, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *focused_obj = eo_data_scope_get(e->focused, EFL_CANVAS_OBJECT_CLASS);
if (!e->is_frozen && !evas_event_freezes_through(e->focused, focused_obj))
{
evas_object_event_callback_call
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ( !evas_event_freezes_through(eo_obj, obj))
{
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HOLD,
EINA_LIST_FOREACH(copy, l, eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!evas_event_freezes_through(eo_obj, obj))
{
evas_object_event_callback_call(eo_obj, obj,
}
EOLIAN void
-_evas_object_freeze_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool freeze)
+_efl_canvas_object_freeze_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool freeze)
{
freeze = !!freeze;
if (obj->freeze_events == freeze) return;
}
EOLIAN Eina_Bool
-_evas_object_freeze_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_freeze_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->freeze_events;
}
EOLIAN void
-_evas_object_pass_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool pass)
+_efl_canvas_object_pass_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool pass)
{
pass = !!pass;
if (obj->pass_events == pass) return;
}
EOLIAN Eina_Bool
-_evas_object_pass_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_pass_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->pass_events;
}
EOLIAN void
-_evas_object_repeat_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool repeat)
+_efl_canvas_object_repeat_events_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool repeat)
{
repeat = !!repeat;
if (obj->repeat_events == repeat) return;
}
EOLIAN Eina_Bool
-_evas_object_repeat_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_repeat_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->repeat_events;
}
EOLIAN void
-_evas_object_propagate_events_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool prop)
+_efl_canvas_object_propagate_events_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool prop)
{
obj->no_propagate = !prop;
}
EOLIAN Eina_Bool
-_evas_object_propagate_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_propagate_events_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return !(obj->no_propagate);
}
EOLIAN void
-_evas_object_pointer_mode_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object_Pointer_Mode setting)
+_efl_canvas_object_pointer_mode_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object_Pointer_Mode setting)
{
int addgrab;
Evas_Object *cobj;
/* only change objects past it */
EINA_LIST_FOREACH(l->next, l, cobj)
{
- cobj_data = eo_data_scope_get(cobj, EVAS_OBJECT_CLASS);
+ cobj_data = eo_data_scope_get(cobj, EFL_CANVAS_OBJECT_CLASS);
if (!cobj_data->mouse_grabbed) continue;
cobj_data->mouse_grabbed -= addgrab;
cobj_data->layer->evas->pointer.mouse_grabbed -= addgrab;
}
EOLIAN Evas_Object_Pointer_Mode
-_evas_object_pointer_mode_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_pointer_mode_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->pointer_mode;
}
_render_post_cb(void *data, const Eo_Event *event EINA_UNUSED)
{
Eo *eo_obj = data;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Data *pd = eo_data_scope_get(eo_obj, MY_CLASS);
Eina_List *post_data;
Evas_Filter_Post_Render_Data *task;
_filter_cb(Evas_Filter_Context *ctx, void *data, Eina_Bool success)
{
Eo *eo_obj = data;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Data *pd = eo_data_scope_get(eo_obj, MY_CLASS);
Evas_Filter_Post_Render_Data *post_data;
Evas_Object_Protected_Data *proxy, *source;
Evas_Filter_Data *pd;
- proxy = eo_data_scope_get(pb->eo_proxy, EVAS_OBJECT_CLASS);
- source = eo_data_scope_get(pb->eo_source, EVAS_OBJECT_CLASS);
+ proxy = eo_data_scope_get(pb->eo_proxy, EFL_CANVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(pb->eo_source, EFL_CANVAS_OBJECT_CLASS);
if (source)
{
iter = eina_hash_iterator_data_new(pd->data->sources);
EINA_ITERATOR_FOREACH(iter, pb)
{
- source = eo_data_scope_get(pb->eo_source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(pb->eo_source, EFL_CANVAS_OBJECT_CLASS);
if (source->changed)
{
redraw = EINA_TRUE;
_efl_canvas_filter_internal_efl_gfx_filter_filter_program_set(Eo *eo_obj, Evas_Filter_Data *pd,
const char *code, const char *name)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Program *pgm = NULL;
Evas_Object_Filter_Data *fcow;
Eina_Bool alpha;
_efl_canvas_filter_internal_efl_gfx_filter_filter_source_set(Eo *eo_obj, Evas_Filter_Data *pd,
const char *name, Efl_Gfx *eo_source)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Proxy_Binding *pb, *pb_old = NULL;
Evas_Object_Protected_Data *source = NULL;
Evas_Object_Filter_Data *fcow = NULL;
if (eo_source)
- source = eo_data_scope_get(eo_source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(eo_source, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (!name)
const char *next_state, double next_val,
double pos)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if ((cur_state != pd->data->state.cur.name) || (cur_val != pd->data->state.cur.value) ||
EOLIAN static void
_efl_canvas_filter_internal_eo_base_destructor(Eo *eo_obj, Evas_Filter_Data *pd)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Data_Binding *db;
Eina_Inlist *il;
/* public calls */
EOLIAN void
-_evas_object_key_focus_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool focus)
+_efl_canvas_object_key_focus_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool focus)
{
int event_id = 0;
}
EOLIAN Eina_Bool
-_evas_object_key_focus_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_key_focus_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->focused;
}
void
evas_font_object_rehint(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->is_smart)
{
EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(eo_obj), obj)
list, but these removals won't be reflected on it.
@since 1.1]]
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
accessor_new @const {
Note: Do not remove or delete objects while walking the list.
@since 1.1]]
- return: free(own(accessor<Evas.Object>), eina_accessor_free)
+ return: free(own(accessor<Efl.Canvas.Object>), eina_accessor_free)
@warn_unused;
}
clear {
Note: Do not remove or delete objects while walking the list.
@since 1.1]]
- return: free(own(iterator<Evas.Object>), eina_iterator_free)
+ return: free(own(iterator<Efl.Canvas.Object>), eina_iterator_free)
@warn_unused;
}
add_to {
@since 1.1]]
- return: Evas.Object @warn_unused;
+ return: Efl.Canvas.Object @warn_unused;
}
unpack {
[[Remove child from grid.
return: bool; [[1 on success, 0 on failure.]]
params {
- @in child: Evas.Object @nonull;
+ @in child: Efl.Canvas.Object @nonull;
}
}
pack_get @const {
@since 1.1]]
return: bool; [[1 on success, 0 on failure.]]
params {
- @in child: Evas.Object; [[The grid child to query for coordinates.]]
+ @in child: Efl.Canvas.Object; [[The grid child to query for coordinates.]]
@out x: int; [[The pointer to where the x coordinate will be returned.]]
@out y: int; [[The pointer to where the y coordinate will be returned.]]
@out w: int; [[The pointer to where the width will be returned.]]
return: bool; [[1 on success, 0 on failure.]]
params {
- @in child: Evas.Object @nonull; [[The child object to add.]]
+ @in child: Efl.Canvas.Object @nonull; [[The child object to add.]]
@in x: int; [[The virtual x coordinate of the child.]]
@in y: int; [[The virtual y coordinate of the child.]]
@in w: int; [[The virtual width of the child.]]
-#define EVAS_OBJECT_BETA
+#define EFL_CANVAS_OBJECT_BETA
#include "evas_image_private.h"
#include "evas_image.eo.h"
EINA_SAFETY_ON_FALSE_RETURN_VAL(eo_isa(eo_e, EVAS_CANVAS_CLASS), NULL);
return eo_add(EVAS_IMAGE_CLASS, eo_e,
efl_gfx_fill_auto_set(eo_self, EINA_FALSE),
- evas_obj_legacy_ctor(eo_self));
+ efl_canvas_object_legacy_ctor(eo_self));
}
EAPI Evas_Object *
{
EINA_SAFETY_ON_FALSE_RETURN_VAL(eo_isa(eo_e, EVAS_CANVAS_CLASS), NULL);
return eo_add(EVAS_IMAGE_CLASS, eo_e,
- evas_obj_legacy_ctor(eo_self));
+ efl_canvas_object_legacy_ctor(eo_self));
}
EAPI void
{
EVAS_IMAGE_API(eo);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
if (obj->cur->snapshot == s) return;
{
EVAS_IMAGE_API(eo, EINA_FALSE);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
return obj->cur->snapshot;
}
EAPI void
evas_object_image_pixels_get_callback_set(Eo *eo_obj, Evas_Object_Image_Pixels_Get_Cb func, void *data)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
EAPI void
evas_object_image_pixels_dirty_set(Eo *eo_obj, Eina_Bool dirty)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
EAPI void
evas_object_image_data_set(Eo *eo_obj, void *data)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
void *p_data;
Eina_Bool resize_call = EINA_FALSE;
if (!o->engine_data) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (for_writing) evas_object_async_block(obj);
if (for_writing) evas_render_rendering_wait(obj->layer->evas);
EAPI void
evas_object_image_data_copy_set(Eo *eo_obj, void *data)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!data) return;
{
EVAS_IMAGE_API(eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
int stride = 0;
{
EVAS_IMAGE_API(eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
{
EVAS_IMAGE_LEGACY_API(eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
{
EVAS_IMAGE_LEGACY_API(eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
evas_object_async_block(obj);
EVAS_IMAGE_LEGACY_API(eo);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Protected_Data *src_obj;
Evas_Image_Data *o;
if (!o->cur->source) return;
visible = !!visible;
- src_obj = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ src_obj = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
if (src_obj->proxy->src_invisible == !visible) return;
evas_object_async_block(obj);
o = eo_data_scope_get(eo, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
if (!o->cur->source) visible = EINA_FALSE;
- src_obj = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ src_obj = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
if (src_obj) visible = !src_obj->proxy->src_invisible;
else visible = EINA_FALSE;
{
EVAS_IMAGE_LEGACY_API(eo_obj, NULL);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o;
void *engine_data;
DATA32 *data;
{
EVAS_IMAGE_LEGACY_API(eo_obj);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o;
evas_object_async_block(obj);
{
EVAS_IMAGE_LEGACY_API(eo_obj, EINA_FALSE);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o;
static int warned = 0;
*/
#define EFL_CANVAS_FILTER_INTERNAL_PROTECTED
-#define EVAS_OBJECT_PROTECTED
+#define EFL_CANVAS_OBJECT_PROTECTED
#include "evas_common_private.h"
g = evas_key_grab_find(eo_obj, obj, keyname, modifiers, not_modifiers);
if (!g) return;
- Evas_Object_Protected_Data *g_object = eo_data_scope_get(g->object, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *g_object = eo_data_scope_get(g->object, EFL_CANVAS_OBJECT_CLASS);
g_object->grabs = eina_list_remove(g_object->grabs, g);
obj->layer->evas->grabs = eina_list_remove(obj->layer->evas->grabs, g);
if (g->keyname) free(g->keyname);
/* public calls */
EOLIAN Eina_Bool
-_evas_object_key_grab(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers, Eina_Bool exclusive)
+_efl_canvas_object_key_grab(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers, Eina_Bool exclusive)
{
/* MEM OK */
Evas_Key_Grab *g;
}
EOLIAN void
-_evas_object_key_ungrab(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers)
+_efl_canvas_object_key_ungrab(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *keyname, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers)
{
/* MEM OK */
Evas_Key_Grab *g;
if (!keyname) return;
g = evas_key_grab_find(eo_obj, obj, keyname, modifiers, not_modifiers);
if (!g) return;
- Evas_Object_Protected_Data *g_object = eo_data_scope_get(g->object, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *g_object = eo_data_scope_get(g->object, EFL_CANVAS_OBJECT_CLASS);
if (g_object->layer->evas->walking_grabs)
{
if (!g->delete_me)
static void
_evas_object_layer_set_child(Evas_Object *eo_obj, Evas_Object *par, short l)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *par_obj = eo_data_scope_get(par, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *par_obj = eo_data_scope_get(par, EFL_CANVAS_OBJECT_CLASS);
if (obj->delete_me) return;
if (obj->cur->layer == l) return;
}
EOLIAN void
-_evas_object_efl_gfx_stack_layer_set(Eo *eo_obj,
+_efl_canvas_object_efl_gfx_stack_layer_set(Eo *eo_obj,
Evas_Object_Protected_Data *obj,
short l)
{
}
EOLIAN short
-_evas_object_efl_gfx_stack_layer_get(Eo *eo_obj EINA_UNUSED,
+_efl_canvas_object_efl_gfx_stack_layer_get(Eo *eo_obj EINA_UNUSED,
Evas_Object_Protected_Data *obj)
{
if (obj->smart.parent)
{
- Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
return smart_parent_obj->cur->layer;
}
return obj->cur->layer;
import evas_types;
-class Evas.Line (Evas.Object)
+class Evas.Line (Efl.Canvas.Object)
{
legacy_prefix: evas_object_line;
eo_prefix: evas_obj_line;
{
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_change(eo_obj, obj);
#define CHECK(TYPE, STRUCT, REGEN) \
if (eo_isa(eo_obj, TYPE))\
_evas_map_calc_geom_change(Evas_Object *eo_obj)
{
int is, was = 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
evas_object_change(eo_obj, obj);
evas_object_clip_dirty(eo_obj, obj);
const Evas_Map_Point *p, *p_end;
Eina_Bool ch = EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if (!obj->map->cur.map) return;
if (obj->map->prev.map)
Evas_Coord diff_x, diff_y;
int i, count;
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if ((!obj->map->cur.map->move_sync.enabled) ||
{
if (eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((obj) && (obj->map->spans))
{
obj->layer->evas->engine.func->image_map_clean(obj->layer->evas->engine.data.output, obj->map->spans);
const Evas_Object_Protected_Data *o;
if (!eo_parent) return EINA_FALSE;
- Evas_Object_Protected_Data *parent = eo_data_scope_get(eo_parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *parent = eo_data_scope_get(eo_parent, EFL_CANVAS_OBJECT_CLASS);
if (!parent) return EINA_FALSE;
list = evas_object_smart_members_get_direct(parent->smart.parent);
EINA_INLIST_FOREACH(list, o)
}
EOLIAN void
-_evas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool enabled)
+_efl_canvas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool enabled)
{
Eina_Bool pchange = EINA_FALSE;
Evas_Object_Protected_Data *parents = NULL;
for (eo_parents = obj->smart.parent; eo_parents; eo_parents = parents->smart.parent)
{
- parents = eo_data_scope_get(eo_parents, EVAS_OBJECT_CLASS);
+ parents = eo_data_scope_get(eo_parents, EFL_CANVAS_OBJECT_CLASS);
if (!parents) break;
parents->child_has_map = EINA_TRUE;
}
}
EOLIAN Eina_Bool
-_evas_object_map_enable_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_map_enable_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->map->cur.usemap;
}
EOLIAN void
-_evas_object_map_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const Evas_Map *map)
+_efl_canvas_object_map_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const Evas_Map *map)
{
evas_object_async_block(obj);
if ((!map) || (map->count < 4))
}
EOLIAN Evas_Map *
-_evas_object_map_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_map_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
evas_object_async_block(obj);
return obj->map->cur.map;
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if (m->count != 4)
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if (m->count != 4)
int imagew, int imageh,
int uvw, int uvh)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
const Evas_Map_Point *p, *p_end;
RGBA_Map_Point *pts, *pt;
EAPI void
evas_object_name_set(Evas_Object *eo_obj, const char *name)
{
- Evas_Object_Protected_Data *obj = eo_isa(eo_obj, EVAS_OBJECT_CLASS) ?
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS) : NULL;
+ Evas_Object_Protected_Data *obj = eo_isa(eo_obj, EFL_CANVAS_OBJECT_CLASS) ?
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS) : NULL;
if (!obj) return;
if (obj->name)
{
EAPI const char *
evas_object_name_get(const Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_isa(eo_obj, EVAS_OBJECT_CLASS) ?
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS) : NULL;
+ Evas_Object_Protected_Data *obj = eo_isa(eo_obj, EFL_CANVAS_OBJECT_CLASS) ?
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS) : NULL;
if (!obj) return NULL;
return obj->name;
}
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
evas_object_smart_callbacks_descriptions_set(obj, _signals);
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
EOLIAN static Eo *
_efl_canvas_image_internal_eo_base_constructor(Eo *eo_obj, Evas_Image_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Colorspace cspace;
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
void
_evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data *o, Evas_Image_Orient orient)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int iw, ih;
if (o->cur->orient == orient) return;
EOLIAN static void
_efl_canvas_image_internal_efl_image_border_set(Eo *eo_obj, Evas_Image_Data *o, int l, int r, int t, int b)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (l < 0) l = 0;
if (r < 0) r = 0;
EOLIAN static void
_efl_canvas_image_internal_efl_image_border_center_fill_set(Eo *eo_obj, Evas_Image_Data *o, Efl_Gfx_Border_Fill_Mode _fill)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Border_Fill_Mode fill = (Evas_Border_Fill_Mode) _fill;
if (fill == o->cur->border.fill) return;
EOLIAN static void
_efl_canvas_image_internal_efl_gfx_fill_fill_auto_set(Eo *eo_obj, Evas_Image_Data* o, Eina_Bool setting)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
setting = !!setting;
o->filled_set = 1;
if (o->filled == setting) return;
EOLIAN static void
_efl_canvas_image_internal_efl_image_border_scale_set(Eo *eo_obj, Evas_Image_Data *o, double scale)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (scale == o->cur->border.scale) return;
evas_object_async_block(obj);
void
_evas_image_fill_set(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (w == 0) return;
if (h == 0) return;
Evas_Object_Protected_Data *source = NULL;
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (o->cur->source)
- source = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
if (o->cur->scene)
{
EOLIAN static void
_efl_canvas_image_internal_efl_gfx_buffer_buffer_update_add(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Eina_Rectangle *r;
int cnt;
EOLIAN static void
_efl_canvas_image_internal_efl_gfx_buffer_alpha_set(Eo *eo_obj, Evas_Image_Data *o, Eina_Bool has_alpha)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if ((o->preloading) && (o->engine_data))
EOLIAN static void
_efl_canvas_image_internal_efl_image_smooth_scale_set(Eo *eo_obj, Evas_Image_Data *o, Eina_Bool smooth_scale)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (((smooth_scale) && (o->cur->smooth_scale)) ||
int imagew, imageh;
void *pixels;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *source = (o->cur->source ? eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS) : NULL);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *source = (o->cur->source ? eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS) : NULL);
evas_object_async_block(obj);
_evas_image_native_surface_set(Eo *eo_obj, Evas_Native_Surface *surf)
{
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
evas_object_event_callback_del_full
(eo_obj, EVAS_CALLBACK_DEL, _on_image_native_surface_del, NULL);
Evas_Native_Surface *
_evas_image_native_surface_get(const Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
Evas_Native_Surface *surf = NULL;
EOLIAN static void
_efl_canvas_image_internal_efl_image_scale_hint_set(Eo *eo_obj, Evas_Image_Data *o, Efl_Image_Scale_Hint hint)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (o->scale_hint == hint) return;
o->scale_hint = hint;
EOLIAN static void
_efl_canvas_image_internal_efl_image_content_hint_set(Eo *eo_obj, Evas_Image_Data *o, Efl_Image_Content_Hint hint)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (o->content_hint == hint) return;
o->content_hint = hint;
static void
evas_object_image_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
EOLIAN static void
_efl_canvas_image_internal_eo_base_destructor(Eo *eo_obj, Evas_Image_Data *o EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->legacy)
evas_object_image_video_surface_set(eo_obj, NULL);
EOLIAN static void
_efl_canvas_image_internal_efl_canvas_filter_internal_filter_dirty(Eo *eo_obj, Evas_Image_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
o->changed = 1;
evas_object_change(eo_obj, obj);
int l, int r EINA_UNUSED, int t, int b EINA_UNUSED,
Eina_Bool do_async)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Filter_Context *filter = _filter;
void *surface, *output;
Eina_Bool input_stolen;
Evas_Object_Protected_Data *source =
(o->cur->source ?
- eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS):
+ eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS):
NULL);
if (source && (source->type == o_type))
oi = eo_data_scope_get(o->cur->source, MY_CLASS);
/* Proxy: Do it early */
if (o->cur->source)
{
- Evas_Object_Protected_Data *source = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *source = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
if (source->proxy->redraw || source->changed)
{
/* XXX: Do I need to sort out the map here? */
// FIXME: use proxy
if (o->cur->source)
{
- Evas_Object_Protected_Data *cur_source = eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *cur_source = eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS);
EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
{
state_write->opaque = evas_object_is_opaque(o->cur->source, cur_source);
*/
Evas_Object_Protected_Data *source =
(o->cur->source ?
- eo_data_scope_get(o->cur->source, EVAS_OBJECT_CLASS):
+ eo_data_scope_get(o->cur->source, EFL_CANVAS_OBJECT_CLASS):
NULL);
if (o->cur->scene)
void
_evas_object_image_preloading_check(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (ENFN->image_load_error_get)
o->load_error = ENFN->image_load_error_get(ENDT, o->engine_data);
void
_evas_object_image_video_overlay_show(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (obj->cur->cache.clip.x != obj->prev->cache.clip.x ||
void
_evas_object_image_video_overlay_hide(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (o->video_visible || o->created)
void
_evas_object_image_video_overlay_do(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Image_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
Evas_Public_Data *e = obj->layer->evas;
void
evas_object_inform_call_show(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_SHOW, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_hide(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HIDE, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_resize(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_RESIZE, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_restack(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_RESTACK, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_changed_size_hints(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_image_preloaded(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
EINA_SAFETY_ON_NULL_RETURN(obj);
if (!_evas_object_image_preloading_get(eo_obj)) return;
void
evas_object_inform_call_image_unloaded(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_UNLOADED, NULL, _evas_event_counter, NULL, NULL);
void
evas_object_inform_call_image_resize(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_RESIZE, NULL, _evas_event_counter, NULL, NULL);
_evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas);
static void
evas_object_intercept_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj->interceptors)
obj->interceptors = evas_mem_calloc(sizeof(Evas_Intercept_Func));
}
static void
evas_object_intercept_deinit(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj->interceptors) return;
if ((obj->interceptors->show.func) ||
(obj->interceptors->hide.func) ||
void
evas_object_intercept_cleanup(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->interceptors) free(obj->interceptors);
}
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ); \
return; \
MAGIC_CHECK_END(); \
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); \
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); \
if (!func) return; \
evas_object_intercept_init(eo_obj); \
if (!obj->interceptors) return; \
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ); \
return NULL; \
MAGIC_CHECK_END(); \
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); \
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); \
if (!func) return NULL; \
if (!obj->interceptors) return NULL; \
obj->interceptors->Lower_Type.func = NULL; \
return;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((x1 == (obj->cur->geometry.x + o->cur.x1)) &&
(y1 == (obj->cur->geometry.y + o->cur.y1)) &&
const Evas_Line_Data *o = _pd;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (x1) *x1 = obj->cur->geometry.x + o->cur.x1;
if (y1) *y1 = obj->cur->geometry.y + o->cur.y1;
if (x2) *x2 = obj->cur->geometry.x + o->cur.x2;
static void
evas_object_line_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
-#define EVAS_OBJECT_PROTECTED
-#define EVAS_OBJECT_BETA
+#define EFL_CANVAS_OBJECT_PROTECTED
+#define EFL_CANVAS_OBJECT_BETA
#define EFL_GFX_SIZE_HINT_PROTECTED
#include "evas_common_private.h"
EVAS_MEMPOOL(_mp_sh);
-#define MY_CLASS EVAS_OBJECT_CLASS
+#define MY_CLASS EFL_CANVAS_OBJECT_CLASS
#define MY_CLASS_NAME "Evas_Object"
{ EO_EVENT_CALLBACK_DEL, _check_event_catcher_del });
EOLIAN static Eo *
-_evas_object_eo_base_constructor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_eo_base_constructor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
Eo *parent = NULL;
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
- evas_obj_type_set(eo_obj, MY_CLASS_NAME);
+ efl_canvas_object_type_set(eo_obj, MY_CLASS_NAME);
eo_manual_free_set(eo_obj, EINA_TRUE);
parent = eo_parent_get(eo_obj);
map_write->prev = map_write->cur;
EINA_COW_WRITE_END(evas_object_map_cow, obj->map, map_write);
}
- _evas_object_clip_prev_reset(obj, EINA_TRUE);
+ _efl_canvas_object_clip_prev_reset(obj, EINA_TRUE);
eina_cow_memcpy(evas_object_state_cow, (const Eina_Cow_Data **) &obj->prev, obj->cur);
}
}
EOLIAN static void
-_evas_object_eo_base_destructor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_eo_base_destructor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return;
}
if (obj->cur->clipper) evas_object_clip_unset(eo_obj);
- _evas_object_clip_prev_reset(obj, EINA_FALSE);
+ _efl_canvas_object_clip_prev_reset(obj, EINA_FALSE);
evas_object_map_set(eo_obj, NULL);
if (obj->is_smart) evas_object_smart_del(eo_obj);
}
EOLIAN static void
-_evas_object_efl_gfx_geometry_set(Eo *obj, Evas_Object_Protected_Data *pd EINA_UNUSED,
- int x, int y, int w, int h)
+_efl_canvas_object_efl_gfx_geometry_set(Eo *obj, Evas_Object_Protected_Data *pd EINA_UNUSED,
+ int x, int y, int w, int h)
{
efl_gfx_position_set(obj, x, y);
efl_gfx_size_set(obj, w, h);
}
EOLIAN static void
-_evas_object_efl_gfx_position_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
- Evas_Coord x, Evas_Coord y)
+_efl_canvas_object_efl_gfx_position_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
+ Evas_Coord x, Evas_Coord y)
{
Eina_Bool is, was = EINA_FALSE;
if ((obj->cur->geometry.x == x) && (obj->cur->geometry.y == y)) return;
Evas_Map *map;
- map = (Evas_Map *) evas_obj_map_get(eo_obj);
+ map = (Evas_Map *) efl_canvas_object_map_get(eo_obj);
if (map && map->move_sync.enabled)
{
Evas_Coord diff_x = x - obj->cur->geometry.x;
}
EOLIAN static void
-_evas_object_efl_gfx_size_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
- Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
+ Evas_Coord w, Evas_Coord h)
{
Eina_Bool is, was = EINA_FALSE;
Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
}
EOLIAN void
-_evas_object_efl_gfx_geometry_get(Eo *obj, Evas_Object_Protected_Data *pd EINA_UNUSED,
- int *x, int *y, int *w, int *h)
+_efl_canvas_object_efl_gfx_geometry_get(Eo *obj, Evas_Object_Protected_Data *pd EINA_UNUSED,
+ int *x, int *y, int *w, int *h)
{
efl_gfx_position_get(obj, x, y);
efl_gfx_size_get(obj, w, h);
}
EOLIAN static void
-_evas_object_efl_gfx_position_get(Eo *obj EINA_UNUSED,
- Evas_Object_Protected_Data *pd,
- Evas_Coord *x, Evas_Coord *y)
+_efl_canvas_object_efl_gfx_position_get(Eo *obj EINA_UNUSED,
+ Evas_Object_Protected_Data *pd,
+ Evas_Coord *x, Evas_Coord *y)
{
if ((pd->delete_me) || (!pd->layer))
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_get(Eo *obj EINA_UNUSED,
- Evas_Object_Protected_Data *pd,
- Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_get(Eo *obj EINA_UNUSED,
+ Evas_Object_Protected_Data *pd,
+ Evas_Coord *w, Evas_Coord *h)
{
if (pd->delete_me)
{
}
EOLIAN static Evas_Display_Mode
-_evas_object_size_hint_display_mode_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_size_hint_display_mode_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if (!obj) return EVAS_DISPLAY_MODE_NONE;
if ((!obj->size_hints) || obj->delete_me)
}
EOLIAN static void
-_evas_object_size_hint_display_mode_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Display_Mode dispmode)
+_efl_canvas_object_size_hint_display_mode_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Display_Mode dispmode)
{
if (!obj) return;
if (obj->delete_me) return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_restricted_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_restricted_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_restricted_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_hint_hint_restricted_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_combined_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_combined_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_max_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_max_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_max_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_hint_hint_max_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_request_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_request_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_request_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_hint_hint_request_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_hint_hint_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_aspect_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect *aspect, Evas_Coord *w, Evas_Coord *h)
+_efl_canvas_object_efl_gfx_size_hint_hint_aspect_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect *aspect, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect aspect, Evas_Coord w, Evas_Coord h)
+_efl_canvas_object_efl_gfx_size_hint_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect aspect, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_align_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
+_efl_canvas_object_efl_gfx_size_hint_hint_align_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_align_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
+_efl_canvas_object_efl_gfx_size_hint_hint_align_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_weight_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
+_efl_canvas_object_efl_gfx_size_hint_hint_weight_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, double *x, double *y)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_weight_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
+_efl_canvas_object_efl_gfx_size_hint_hint_weight_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double x, double y)
{
if (obj->delete_me)
return;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_margin_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
+_efl_canvas_object_efl_gfx_size_hint_hint_margin_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_hint_margin_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
+_efl_canvas_object_efl_gfx_size_hint_hint_margin_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
{
if (obj->delete_me)
return;
}
static void
-_evas_object_efl_gfx_visible_set(Eo *eo_obj,
+_efl_canvas_object_efl_gfx_visible_set(Eo *eo_obj,
Evas_Object_Protected_Data *obj,
Eina_Bool visible)
{
}
static Eina_Bool
-_evas_object_efl_gfx_visible_get(Eo *eo_obj EINA_UNUSED,
- Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_visible_get(Eo *eo_obj EINA_UNUSED,
+ Evas_Object_Protected_Data *obj)
{
if (obj->delete_me) return EINA_FALSE;
return obj->cur->visible;
}
EOLIAN static void
-_evas_object_efl_gfx_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
- int r, int g, int b, int a)
+_efl_canvas_object_efl_gfx_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
+ int r, int g, int b, int a)
{
if (obj->delete_me) return;
if (r > 255) r = 255;
}
EOLIAN static Eina_Bool
-_evas_object_efl_gfx_color_part_set(Eo *obj, Evas_Object_Protected_Data *pd,
- const char *part,
- int r, int g, int b, int a)
+_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;
- _evas_object_efl_gfx_color_set(obj, pd, r, g, b, a);
+ _efl_canvas_object_efl_gfx_color_set(obj, pd, r, g, b, a);
return EINA_TRUE;
}
}
EOLIAN static void
-_evas_object_efl_gfx_color_get(Eo *eo_obj EINA_UNUSED,
+_efl_canvas_object_efl_gfx_color_get(Eo *eo_obj EINA_UNUSED,
Evas_Object_Protected_Data *obj,
int *r, int *g, int *b, int *a)
{
}
EOLIAN static Eina_Bool
-_evas_object_efl_gfx_color_part_get(Eo *obj,
- Evas_Object_Protected_Data *pd,
- const char *part,
- int *r, int *g, int *b, int *a)
+_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;
- _evas_object_efl_gfx_color_get(obj, pd, r, g, b, a);
+ _efl_canvas_object_efl_gfx_color_get(obj, pd, r, g, b, a);
return EINA_TRUE;
}
EOLIAN static void
-_evas_object_anti_alias_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool anti_alias)
+_efl_canvas_object_anti_alias_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool anti_alias)
{
if (obj->delete_me) return;
anti_alias = !!anti_alias;
}
EOLIAN static Eina_Bool
-_evas_object_anti_alias_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_anti_alias_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if (obj->delete_me) return EINA_FALSE;
return obj->cur->anti_alias;
}
EOLIAN static void
-_evas_object_scale_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double scale)
+_efl_canvas_object_scale_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, double scale)
{
if (obj->delete_me) return;
if (obj->cur->scale == scale) return;
}
EOLIAN static double
-_evas_object_scale_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_scale_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if (obj->delete_me) return 1.0;
return obj->cur->scale;
}
EOLIAN static void
-_evas_object_render_op_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Render_Op rop)
+_efl_canvas_object_render_op_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Render_Op rop)
{
_render_op_set(obj, _gfx_to_evas_render_op(rop));
}
}
EOLIAN static Efl_Gfx_Render_Op
-_evas_object_render_op_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_render_op_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return _evas_to_gfx_render_op(obj->cur->render_op);
}
EAPI Evas_Render_Op
evas_object_render_op_get(const Evas_Object *eo_obj)
{
- return _gfx_to_evas_render_op(evas_obj_render_op_get(eo_obj));
+ return _gfx_to_evas_render_op(efl_canvas_object_render_op_get(eo_obj));
}
EOLIAN static void
-_evas_object_eo_base_dbg_info_get(Eo *eo_obj, Evas_Object_Protected_Data *obj EINA_UNUSED, Eo_Dbg_Info *root)
+_efl_canvas_object_eo_base_dbg_info_get(Eo *eo_obj, Evas_Object_Protected_Data *obj EINA_UNUSED, Eo_Dbg_Info *root)
{
eo_dbg_info_get(eo_super(eo_obj, MY_CLASS), root);
Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME);
name = eo_name_get(eo_obj); // evas_object_name_get(eo_obj);
efl_gfx_position_get(eo_obj, &x, &y);
efl_gfx_size_get(eo_obj, &w, &h);
- scale = evas_obj_scale_get(eo_obj);
+ scale = efl_canvas_object_scale_get(eo_obj);
efl_gfx_size_hint_restricted_min_get(eo_obj, &minw, &minh);
efl_gfx_size_hint_max_get(eo_obj, &maxw, &maxh);
efl_gfx_size_hint_request_get(eo_obj, &requestw, &requesth);
efl_gfx_size_hint_weight_get(eo_obj, &dblw, &dblh);
efl_gfx_color_get(eo_obj, &r, &g, &b, &a);
focus = evas_object_focus_get(eo_obj);
- m = evas_obj_pointer_mode_get(eo_obj);
- pass_event = evas_obj_pass_events_get(eo_obj);
- repeat_event = evas_obj_repeat_events_get(eo_obj);
- propagate_event = evas_obj_propagate_events_get(eo_obj);
- clipees_has = evas_obj_clipees_has(eo_obj);
+ m = efl_canvas_object_pointer_mode_get(eo_obj);
+ pass_event = efl_canvas_object_pass_events_get(eo_obj);
+ repeat_event = efl_canvas_object_repeat_events_get(eo_obj);
+ propagate_event = efl_canvas_object_propagate_events_get(eo_obj);
+ clipees_has = efl_canvas_object_clipees_has(eo_obj);
EO_DBG_INFO_APPEND(group, "Visibility", EINA_VALUE_TYPE_CHAR, visible);
EO_DBG_INFO_APPEND(group, "Has clipees", EINA_VALUE_TYPE_CHAR, clipees_has);
Evas_Object *clipper = NULL;
- clipper = evas_obj_clip_get(eo_obj);
+ clipper = efl_canvas_object_clip_get(eo_obj);
EO_DBG_INFO_APPEND(group, "Clipper", EINA_VALUE_TYPE_UINT64, (uintptr_t) clipper);
const Evas_Map *map = evas_object_map_get(eo_obj);
}
}
-static Evas *
-_evas_object_evas_common_interface_evas_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+EOLIAN static Evas *
+_efl_canvas_object_evas_common_interface_evas_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if ((obj->delete_me) || (!obj->layer)) return NULL;
return obj->layer->evas->evas;
}
EOLIAN static void
-_evas_object_type_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *type)
+_efl_canvas_object_type_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *type)
{
if (eo_finalized_get(eo_obj))
{
}
EOLIAN static void
-_evas_object_precise_is_inside_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool precise)
+_efl_canvas_object_precise_is_inside_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Eina_Bool precise)
{
evas_object_async_block(obj);
obj->precise_is_inside = precise;
}
EOLIAN static Eina_Bool
-_evas_object_precise_is_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_precise_is_inside_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->precise_is_inside;
}
}
EOLIAN static void
-_evas_object_is_frame_object_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool is_frame)
+_efl_canvas_object_is_frame_object_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool is_frame)
{
Evas_Coord x, y;
}
EOLIAN static Eina_Bool
-_evas_object_is_frame_object_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_is_frame_object_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
return obj->is_frame;
}
EOLIAN static Evas_Object *
-_evas_object_render_parent_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_render_parent_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
{
if (!obj) return NULL;
return obj->smart.parent;
}
EOLIAN static void
-_evas_object_paragraph_direction_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj EINA_UNUSED, Evas_BiDi_Direction dir EINA_UNUSED)
+_efl_canvas_object_paragraph_direction_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj EINA_UNUSED, Evas_BiDi_Direction dir EINA_UNUSED)
{
return;
}
EOLIAN static Evas_BiDi_Direction
-_evas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj EINA_UNUSED)
+_efl_canvas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj EINA_UNUSED)
{
return EVAS_BIDI_DIRECTION_NEUTRAL;
}
EOLIAN static void
-_evas_object_legacy_ctor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_legacy_ctor(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
EINA_SAFETY_ON_FALSE_RETURN(!eo_finalized_get(eo_obj));
obj->legacy = EINA_TRUE;
efl_gfx_size_hint_align_get(obj, x, y);
}
-#include "canvas/evas_object.eo.c"
+#include "canvas/efl_canvas_object.eo.c"
EOLIAN static void
_efl_canvas_polygon_point_add(Eo *eo_obj, Efl_Canvas_Polygon_Data *_pd, Evas_Coord x, Evas_Coord y)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Polygon_Data *o = _pd;
Efl_Canvas_Polygon_Point *p;
Evas_Coord min_x, max_x, min_y, max_y;
EOLIAN static void
_efl_canvas_polygon_points_clear(Eo *eo_obj, Efl_Canvas_Polygon_Data *_pd)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Polygon_Data *o = _pd;
void *list_data;
int is, was;
static void
evas_object_polygon_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
EOLIAN static void
_efl_canvas_polygon_eo_base_destructor(Eo *eo_obj, Efl_Canvas_Polygon_Data *_pd EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_polygon_free(eo_obj, obj, obj->private_data);
eo_destructor(eo_super(eo_obj, MY_CLASS));
static void
evas_object_rectangle_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
_efl_canvas_group_group_member_add(Eo *smart_obj, Evas_Smart_Data *o, Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *smart = eo_data_scope_get(smart_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart = eo_data_scope_get(smart_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart_Data *member_o = NULL;
if (obj->delete_me)
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj) return;
if (!obj->smart.parent) return;
Evas_Object *smart_obj = obj->smart.parent;
EOLIAN static void
_efl_canvas_group_group_member_del(Eo *smart_obj, Evas_Smart_Data *_pd EINA_UNUSED, Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart_Data *member_o;
if (!obj->smart.parent) return;
evas_object_async_block(obj);
- Evas_Object_Protected_Data *smart = eo_data_scope_get(smart_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart = eo_data_scope_get(smart_obj, EFL_CANVAS_OBJECT_CLASS);
if (smart->smart.smart && smart->smart.smart->smart_class->member_del)
smart->smart.smart->smart_class->member_del(smart_obj, eo_obj);
_efl_canvas_group_group_children_iterate(const Eo *eo_obj, Evas_Smart_Data *priv)
{
Evas_Object_Smart_Iterator *it;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!priv->contained) return NULL;
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
evas_object_smart_init(eo_obj);
- evas_obj_type_set(eo_obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(eo_obj, MY_CLASS_NAME_LEGACY);
efl_canvas_group_add(eo_obj);
return eo_obj;
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->add) s->smart_class->add(eo_obj);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->resize) s->smart_class->resize(eo_obj, w, h);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->move) s->smart_class->move(eo_obj, x, y);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->show) s->smart_class->show(eo_obj);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->hide) s->smart_class->hide(eo_obj);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->color_set) s->smart_class->color_set(eo_obj, r, g, b, a);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->clip_set) s->smart_class->clip_set(eo_obj, clip);
}
{
// If this function is reached, so we do nothing except trying to call
// the function of the legacy smart class.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart *s = obj->smart.smart;
if (s && s->smart_class->clip_unset) s->smart_class->clip_unset(eo_obj);
}
EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(eo_obj), obj2)
{
if (cso_clipper != obj2->object)
- evas_obj_no_render_set(obj2->object, hide);
+ efl_canvas_object_no_render_set(obj2->object, hide);
}
}
if (class_descriptions) *class_descriptions = NULL;
if (class_count) *class_count = 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->smart.smart && class_descriptions)
*class_descriptions = obj->smart.smart->callbacks.array;
if (obj->smart.smart && class_count)
return;
}
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (class_description)
*class_description = evas_smart_cb_description_find
(&obj->smart.smart->callbacks, name);
EOLIAN static void
_efl_canvas_group_group_need_recalculate_set(Eo *eo_obj, Evas_Smart_Data *o, Eina_Bool value)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
// XXX: do i need this?
if (!obj || !obj->layer || obj->delete_me) return;
EOLIAN static void
_efl_canvas_group_group_calculate(Eo *eo_obj, Evas_Smart_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (!obj->smart.smart || !obj->smart.smart->smart_class->calculate)
return;
/* move the item to the processed list */
o = EINA_CLIST_ENTRY(elem, Evas_Smart_Data, calc_entry);
eina_clist_remove(&o->calc_entry);
- obj = eo_data_scope_get(o->object, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(o->object, EFL_CANVAS_OBJECT_CLASS);
if (obj->delete_me) continue;
eina_clist_add_tail(&e->calc_done, &o->calc_entry);
EOLIAN static void
_efl_canvas_group_group_change(Eo *eo_obj, Evas_Smart_Data *o EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
evas_object_change(eo_obj, obj);
efl_canvas_group_need_recalculate_set(eo_obj, 1);
Eina_Bool
evas_object_smart_changed_get(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Protected_Data *o2;
Eina_Bool has_map = EINA_FALSE;
void
evas_object_smart_del(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart_Data *sobj;
Evas_Smart *s;
unsigned int i;
void
evas_object_smart_cleanup(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->smart.parent)
evas_object_smart_member_del(eo_obj);
return;
MAGIC_CHECK_END();
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Protected_Data *member;
if (pass_events)
evas_object_smart_member_raise(Evas_Object *eo_member)
{
Evas_Smart_Data *o;
- Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EFL_CANVAS_OBJECT_CLASS);
o = eo_data_scope_get(member->smart.parent, MY_CLASS);
o->contained = eina_inlist_demote(o->contained, EINA_INLIST_GET(member));
}
evas_object_smart_member_lower(Evas_Object *eo_member)
{
Evas_Smart_Data *o;
- Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EFL_CANVAS_OBJECT_CLASS);
o = eo_data_scope_get(member->smart.parent, MY_CLASS);
o->contained = eina_inlist_promote(o->contained, EINA_INLIST_GET(member));
}
evas_object_smart_member_stack_above(Evas_Object *eo_member, Evas_Object *eo_other)
{
Evas_Smart_Data *o;
- Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *other = eo_data_scope_get(eo_other, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *other = eo_data_scope_get(eo_other, EFL_CANVAS_OBJECT_CLASS);
o = eo_data_scope_get(member->smart.parent, MY_CLASS);
o->contained = eina_inlist_remove(o->contained, EINA_INLIST_GET(member));
o->contained = eina_inlist_append_relative(o->contained, EINA_INLIST_GET(member), EINA_INLIST_GET(other));
evas_object_smart_member_stack_below(Evas_Object *eo_member, Evas_Object *eo_other)
{
Evas_Smart_Data *o;
- Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EVAS_OBJECT_CLASS);
- Evas_Object_Protected_Data *other = eo_data_scope_get(eo_other, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *member = eo_data_scope_get(eo_member, EFL_CANVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *other = eo_data_scope_get(eo_other, EFL_CANVAS_OBJECT_CLASS);
o = eo_data_scope_get(member->smart.parent, MY_CLASS);
o->contained = eina_inlist_remove(o->contained, EINA_INLIST_GET(member));
o->contained = eina_inlist_prepend_relative(o->contained, EINA_INLIST_GET(member), EINA_INLIST_GET(other));
static void
evas_object_smart_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
obj->is_smart = EINA_TRUE;
/* set up methods (compulsory) */
obj->func = &object_func;
}
EOLIAN static void
-_efl_canvas_group_evas_object_paragraph_direction_set(Eo *eo_obj, Evas_Smart_Data *o, Evas_BiDi_Direction dir)
+_efl_canvas_group_efl_canvas_object_paragraph_direction_set(Eo *eo_obj, Evas_Smart_Data *o,
+ Evas_BiDi_Direction dir)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Smart_Data *parent;
if ((!(o->inherit_paragraph_direction) && (o->paragraph_direction == dir)) ||
}
EOLIAN static Evas_BiDi_Direction
-_efl_canvas_group_evas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *o)
+_efl_canvas_group_efl_canvas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *o)
{
return o->paragraph_direction;
}
evas_object_resize(cso->clipper, 200000, 200000);
evas_object_pass_events_set(cso->clipper, 1);
evas_object_hide(cso->clipper); /* show when have something clipped to it */
- evas_obj_no_render_set(cso->clipper, 1);
+ efl_canvas_object_no_render_set(cso->clipper, 1);
evas_object_smart_data_set(eo_obj, cso);
}
}
EO_CALLBACKS_ARRAY_DEFINE(evas_object_table_callbacks,
- { EVAS_OBJECT_EVENT_DEL, _on_child_del },
+ { EFL_CANVAS_OBJECT_EVENT_DEL, _on_child_del },
{ EFL_GFX_EVENT_CHANGE_SIZE_HINTS, _on_child_hints_changed }
);
_evas_table_eo_base_constructor(Eo *obj, Evas_Table_Data *class_data EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
- evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
+ efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
return obj;
}
const Evas_Text_Data *o,
size_t pos, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Text_Item *it;
EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it)
_evas_object_text_last_up_to_pos(const Evas_Object *eo_obj,
const Evas_Text_Data *o, Evas_Coord cx, Evas_Coord cy)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Text_Item *it;
int pos = -1;
const Evas_Text_Data *o, Evas_Coord cx, Evas_Coord cy,
Evas_Coord *rx, Evas_Coord *ry, Evas_Coord *rw, Evas_Coord *rh)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Text_Item *it;
EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it)
EOLIAN static void
_evas_text_efl_text_properties_font_source_set(Eo *eo_obj, Evas_Text_Data *o, const char *font_source)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((o->cur.source) && (font_source) &&
(!strcmp(o->cur.source, font_source)))
return;
EOLIAN static void
_evas_text_efl_text_properties_font_set(Eo *eo_obj, Evas_Text_Data *o, const char *font, Evas_Font_Size size)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Eina_Bool is, was = EINA_FALSE;
Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
Eina_Bool source_invisible = EINA_FALSE;
static void
_evas_object_text_layout(Evas_Object *eo_obj, Evas_Text_Data *o, Eina_Unicode *text)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
EvasBiDiStrIndex *v_to_l = NULL;
Evas_Coord advance = 0, width = 0;
size_t pos, visual_pos;
EOLIAN static void
_evas_text_efl_gfx_size_set(Eo *eo_obj, Evas_Text_Data *o, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur)
EOLIAN static void
_evas_text_ellipsis_set(Eo *eo_obj, Evas_Text_Data *o, double ellipsis)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (o->cur.ellipsis == ellipsis) return;
EOLIAN static void
_evas_text_efl_text_text_set(Eo *eo_obj, Evas_Text_Data *o, const char *_text)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int is, was, len;
Eina_Unicode *text;
EOLIAN static void
_evas_text_bidi_delimiters_set(Eo *eo_obj, Evas_Text_Data *o, const char *delim)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
eina_stringshare_replace(&o->bidi_delimiters, delim);
}
_evas_text_direction_get(Eo *eo_obj, Evas_Text_Data *o)
{
#ifdef BIDI_SUPPORT
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (o->inherit_paragraph_direction)
{
EOLIAN static Evas_Coord
_evas_text_inset_get(Eo *eo_obj, Evas_Text_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Coord inset = 0;
if (!o->font) return inset;
if (!o->items) return inset;
if (!o->font) return ret;
if (!o->items || (pos < 0)) return ret;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Eina_Bool int_ret = _evas_object_text_char_coords_get(eo_obj, o, (size_t) pos,
&x, &y, &w, &h);
rw += rx;
rx = 0;
}
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((rx + rw) > obj->cur->geometry.w) rw = obj->cur->geometry.w - rx;
if (rw < 0) rw = 0;
if (ry < 0)
EOLIAN static void
_evas_text_style_set(Eo *eo_obj, Evas_Text_Data *o, Evas_Text_Style_Type style)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int pl = 0, pr = 0, pt = 0, pb = 0, l = 0, r = 0, t = 0, b = 0;
int w = 0, h = 0;
EOLIAN static void
_evas_text_shadow_color_set(Eo *eo_obj, Evas_Text_Data *o, int r, int g, int b, int a)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((o->cur.shadow.r == r) && (o->cur.shadow.g == g) &&
(o->cur.shadow.b == b) && (o->cur.shadow.a == a))
return;
EOLIAN static void
_evas_text_glow_color_set(Eo *eo_obj, Evas_Text_Data *o, int r, int g, int b, int a)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((o->cur.glow.r == r) && (o->cur.glow.g == g) &&
(o->cur.glow.b == b) && (o->cur.glow.a == a))
return;
EOLIAN static void
_evas_text_glow2_color_set(Eo *eo_obj, Evas_Text_Data *o, int r, int g, int b, int a)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((o->cur.glow2.r == r) && (o->cur.glow2.g == g) &&
(o->cur.glow2.b == b) && (o->cur.glow2.a == a))
return;
EOLIAN static void
_evas_text_outline_color_set(Eo *eo_obj, Evas_Text_Data *o, int r, int g, int b, int a)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((o->cur.outline.r == r) && (o->cur.outline.g == g) &&
(o->cur.outline.b == b) && (o->cur.outline.a == a))
return;
static void
evas_object_text_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
EOLIAN static void
_evas_text_eo_base_destructor(Eo *eo_obj, Evas_Text_Data *o EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_text_free(eo_obj, obj);
eo_destructor(eo_super(eo_obj, MY_CLASS));
}
EOLIAN static void
_evas_text_efl_canvas_filter_internal_filter_dirty(Eo *eo_obj, Evas_Text_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
_evas_object_text_items_clear(o);
o->changed = 1;
void
_evas_object_text_rehint(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
int is, was;
static void
_evas_object_text_recalc(Evas_Object *eo_obj, Eina_Unicode *text)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (!text) text = eina_unicode_strdup(EINA_UNICODE_EMPTY_STRING);
}
EOLIAN static void
-_evas_text_evas_object_paragraph_direction_set(Eo *eo_obj, Evas_Text_Data *o, Evas_BiDi_Direction dir)
+_evas_text_efl_canvas_object_paragraph_direction_set(Eo *eo_obj, Evas_Text_Data *o,
+ Evas_BiDi_Direction dir)
{
#ifdef BIDI_SUPPORT
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!(o->inherit_paragraph_direction) && (o->paragraph_direction == dir)) ||
(o->inherit_paragraph_direction && (dir == EVAS_BIDI_DIRECTION_INHERIT)))
}
EOLIAN static Evas_BiDi_Direction
-_evas_text_evas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED,
- Evas_Text_Data *o)
+_evas_text_efl_canvas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED,
+ Evas_Text_Data *o)
{
return o->paragraph_direction;
}
static void
_format_unref_free(const Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
fmt->ref--;
if (fmt->ref > 0) return;
if (fmt->font.fdesc) evas_font_desc_unref(fmt->font.fdesc);
static Evas_Object_Textblock_Format *
_format_dup(Evas_Object *eo_obj, const Evas_Object_Textblock_Format *fmt)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Textblock_Format *fmt2;
fmt2 = calloc(1, sizeof(Evas_Object_Textblock_Format));
Evas_Object_Textblock_Format *fmt)
{
int ascent, descent;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (fmt->font.font)
{
else
{
Evas_Object_Protected_Data *obj =
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
asc = ENFN->font_max_ascent_get(ENDT,
it->format->font.font);
}
else
{
Evas_Object_Protected_Data *obj =
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
desc = ENFN->font_max_descent_get(ENDT,
it->format->font.font);
}
if (fmt)
{
Evas_Object_Protected_Data *obj =
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
asc = ENFN->font_ascent_get(ENDT, fmt->font.font);
desc = ENFN->font_descent_get(ENDT, fmt->font.font);
}
Evas_Coord *maxascent, Evas_Coord *maxdescent,
Evas_Coord *_y, Evas_Coord *_w, Evas_Coord *_h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* Adjust sizes according to current line height/scale */
Evas_Coord w, h;
const char *p, *s;
c->marginr - c->x - ti->x_adjustment;
if (x < 0)
x = 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
return ENFN->font_last_up_to_pos(ENDT, fmt->font.font,
&ti->text_props, x, 0);
}
int dx = 0, minx = 0, maxx = 0, shx1, shx2;
tw = th = 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
if (fmt->font.font)
ENFN->font_string_size_get(ENDT, fmt->font.font,
&ti->text_props, &tw, &th);
script = evas_common_language_script_type_get(str, script_len);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
while (script_len > 0)
{
Evas_Font_Instance *cur_fi = NULL;
static void
_format_finalize(Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
void *of;
of = fmt->font.font;
if (ellip_ti->parent.format->font.font)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
/* It's only 1 char anyway, we don't need the run end. */
(void) ENFN->font_run_end_get(ENDT,
ellip_ti->parent.format->font.font, &script_fi, &cur_fi,
{
int pos = -1;
Evas_Object_Textblock_Text_Item *ti;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
ti = (it->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? _ITEM_TEXT(it) : NULL;
if (ti && ti->parent.format->font.font)
static void
_layout(const Evas_Object *eo_obj, int w, int h, int *w_ret, int *h_ret)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o = eo_data_ref(eo_obj, MY_CLASS);
Ctxt ctxt, *c;
int style_pad_l = 0, style_pad_r = 0, style_pad_t = 0, style_pad_b = 0;
static void
_relayout(const Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
_layout(eo_obj, obj->cur->geometry.w, obj->cur->geometry.h,
&o->formatted.w, &o->formatted.h);
static inline void
_relayout_if_needed(Evas_Object *eo_obj, const Efl_Canvas_Text_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_textblock_coords_recalc(eo_obj, obj, obj->private_data);
if (!o->formatted.valid)
EOLIAN static Eo *
_efl_canvas_text_eo_base_constructor(Eo *eo_obj, Efl_Canvas_Text_Data *class_data EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o;
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
EINA_LIST_FOREACH(ts->objects, l, eo_obj)
{
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_evas_textblock_invalidate_all(o);
_evas_textblock_changed(o, eo_obj);
EAPI void
evas_object_textblock_style_set(Eo *eo_obj, const Evas_Textblock_Style *ts)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
_textblock_style_generic_set(eo_obj, (Evas_Textblock_Style *) ts, &(o->style));
_efl_canvas_text_style_set(Eo *eo_obj, Efl_Canvas_Text_Data *o, const char *key, const char *style)
{
// FIXME: Make key value behaviour.
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Evas_Textblock_Style *ts;
EAPI Evas_Textblock_Style *
evas_object_textblock_style_get(const Eo *eo_obj EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
return o->style;
evas_object_textblock_style_user_push(Eo *eo_obj, Evas_Textblock_Style *ts)
{
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Evas_Textblock_Style *old_ts = _style_by_key_find(o, _STYLE_USER);
EAPI const Evas_Textblock_Style*
evas_object_textblock_style_user_peek(const Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
Evas_Textblock_Style *ts = _style_by_key_find(o, _STYLE_USER);
EAPI void
evas_object_textblock_style_user_pop(Eo *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
efl_canvas_text_style_set(eo_obj, _STYLE_USER, NULL);
evas_object_textblock_replace_char_set(Efl_Canvas_Text *eo_obj, const char *ch)
{
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (o->repch) eina_stringshare_del(o->repch);
if (ch) o->repch = eina_stringshare_add(ch);
EOLIAN static void
_efl_canvas_text_legacy_newline_set(Eo *eo_obj EINA_UNUSED, Efl_Canvas_Text_Data *o, Eina_Bool mode)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (o->legacy_newline == mode)
return;
evas_object_textblock_valign_set(Efl_Canvas_Text *eo_obj, double align)
{
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (align < 0.0) align = 0.0;
else if (align > 1.0) align = 1.0;
EOLIAN static void
_efl_canvas_text_bidi_delimiters_set(Eo *eo_obj EINA_UNUSED, Efl_Canvas_Text_Data *o, const char *delim)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
eina_stringshare_replace(&o->bidi_delimiters, delim);
}
EAPI void
evas_object_textblock_text_markup_set(Eo *eo_obj, const char *text)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (text == o->markup_text)
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return;
Evas_Object *eo_obj = cur->obj;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_HEAD();
if (text)
Evas_Object_Textblock_Node_Text *n;
Eina_Strbuf *txt = NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
const char *markup;
static void
_obstacle_clear(Eo *eo_obj, Evas_Textblock_Obstacle *obs)
{
- eo_event_callback_del(obs->eo_obs, EVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
+ eo_event_callback_del(obs->eo_obs, EFL_CANVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
}
static void
{
Evas_Textblock_Obstacle *obs;
- if (!eo_isa(eo_obs, EVAS_OBJECT_CLASS))
+ if (!eo_isa(eo_obs, EFL_CANVAS_OBJECT_CLASS))
return EINA_FALSE;
obs = _obstacle_find(obj, eo_obs);
if (obs) return EINA_FALSE;
if (!obs) return EINA_FALSE;
obs->eo_obs = eo_obs;
- eo_event_callback_add(eo_obs, EVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
+ eo_event_callback_add(eo_obs, EFL_CANVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
obj->obstacles = eina_list_append(obj->obstacles, obs);
_obstacle_update(obs, eo_obj);
Evas_Textblock_Obstacle *obs;
Eina_List *i;
- if (!eo_isa(eo_obs, EVAS_OBJECT_CLASS))
+ if (!eo_isa(eo_obs, EFL_CANVAS_OBJECT_CLASS))
return EINA_FALSE;
EINA_LIST_FOREACH(obj->obstacles, i, obs)
if (hyphen_ti->parent.format->font.font)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
/* It's only 1 char anyway, we don't need the run end. */
(void) ENFN->font_run_end_get(ENDT,
hyphen_ti->parent.format->font.font, &script_fi, &cur_fi,
_evas_textblock_cursor_is_format(const Efl_Canvas_Text_Cursor_Data *cur)
{
if ((!cur) || (!cur->node)) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
return (_evas_textblock_cursor_node_format_at_pos_get(cur)) ?
EINA_TRUE : EINA_FALSE;
EAPI const Eina_List *
evas_textblock_node_format_list_get(const Eo *eo_obj, const char *anchor)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (!strcmp(anchor, "a"))
EAPI const Evas_Object_Textblock_Node_Format*
evas_textblock_node_format_first_get(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
return o->format_nodes;
EAPI const Evas_Object_Textblock_Node_Format*
evas_textblock_node_format_last_get(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
return o->format_nodes ? _NODE_FORMAT(EINA_INLIST_GET(o->format_nodes)->last) : NULL;
fmt = n;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
do
EOLIAN static void
_efl_canvas_text_cursor_paragraph_first(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
cur->node = o->text_nodes;
{
Evas_Object_Textblock_Node_Text *node;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
node = o->text_nodes;
_evas_textblock_cursor_paragraph_next(Efl_Canvas_Text_Cursor_Data *cur)
{
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
/* If there is a current text node, return the next text node (if exists)
{
Evas_Object_Textblock_Node_Text *node;
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
/* If the current node is a text node, just get the prev if any,
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
/* If the current node is a format node, just get the next if any,
const Evas_Object_Textblock_Node_Format *node;
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
node = evas_textblock_cursor_format_get(cur_obj);
size_t i;
char *breaks;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
size_t i;
char *breaks;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
const Eina_Unicode *text;
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
_evas_textblock_cursor_paragraph_char_first(Efl_Canvas_Text_Cursor_Data *cur)
{
if (!cur) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
cur->pos = 0;
}
int ind;
if (!cur) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node);
ind = eina_ustrbuf_length_get(cur->node->unicode);
Evas_Object_Textblock_Line *ln = NULL;
Evas_Object_Textblock_Item *it = NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Evas_Object_Textblock_Item *it = NULL;
if (!cur) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
size_t npos = 0;
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, 0);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Evas_Object_Textblock_Node_Text *n;
size_t pos;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
EOLIAN static int
_efl_canvas_text_cursor_compare(const Eo *cur_obj EINA_UNUSED, Efl_Canvas_Text_Cursor_Data *cur, const Efl_Canvas_Text_Cursor *cur2_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Cursor_Data *cur1 = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
Efl_Canvas_Text_Cursor_Data *cur2 = eo_data_scope_get(cur2_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
EOLIAN static Eina_Bool
_efl_canvas_text_cursor_equal(const Eo *cur_obj EINA_UNUSED, Efl_Canvas_Text_Cursor_Data *cur, const Efl_Canvas_Text_Cursor *cur2_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Cursor_Data *cur2 = eo_data_scope_get(cur2_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
return ((cur->node == cur2->node) && (cur->pos == cur2->pos));
static void
_evas_textblock_changed(Efl_Canvas_Text_Data *o, Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
LYDBG("ZZ: invalidate 1 %p\n", eo_obj);
o->formatted.valid = 0;
o->native.valid = 0;
if (!cur) return 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
evas_object_async_block(obj);
orig_text = text = eina_unicode_utf8_to_unicode(_text, &len);
int len;
/*append is essentially prepend without advancing */
if (!cur) return 0;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
len = _cursor_text_append(eo_obj, cur, _text, legacy);
if (len == 0) return 0;
Eina_Bool is_visible;
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if ((!format) || (format[0] == 0)) return EINA_FALSE;
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Eina_Bool is_visible;
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
/* append is essentially prepend without advancing */
is_visible = _evas_textblock_cursor_format_append(cur, format, NULL, EINA_FALSE);
int chr, ind, ppos;
if (!cur || !cur->node) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
n = cur->node;
if (!cur1 || !cur1->node) return;
if (!cur2 || !cur2->node) return;
if (cur1->obj != cur2->obj) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur1->obj, MY_CLASS);
if (evas_textblock_cursor_compare(cur1_obj, cur2_obj) > 0)
{
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur || !cur->node) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (evas_textblock_cursor_format_is_visible_get(cur_obj))
{
if (!cur2 || !cur2->node) return NULL;
if (cur1->obj != cur2->obj) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
eo_obj = cur1->obj;
TB_HEAD_RETURN(NULL);
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(cur1->obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(cur1->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (format == EVAS_TEXTBLOCK_TEXT_MARKUP)
return _evas_textblock_cursor_range_text_markup_get(cur1, cur2);
Efl_Canvas_Text_Cursor_Data cur1, cur2;
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, NULL);
if (cur->node->utf8)
int len;
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, -1);
len = eina_ustrbuf_length_get(cur->node->unicode);
{
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, NULL);
return _evas_textblock_cursor_node_format_at_pos_get(cur);
const Evas_Object_Textblock_Node_Format *fmt)
{
if (!fmt || !cur) return;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
cur->node = fmt->text_node;
cur->pos = _evas_textblock_node_format_pos_get(fmt);
const Eina_Unicode *text;
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_NULL_CHECK(cur->node, EINA_FALSE);
if (!_evas_textblock_cursor_is_format(cur)) return EINA_FALSE;
_efl_canvas_text_cursor_geometry_get(Eo *cur_obj EINA_UNUSED, Efl_Canvas_Text_Cursor_Data *cur, Efl_Canvas_Text_Cursor_Type ctype, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch, Evas_Coord *cx2, Evas_Coord *cy2, Evas_Coord *cw2, Evas_Coord *ch2)
{
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
evas_object_async_block(obj);
int ret = -1;
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
if (pos < 0) pos = 0;
if (ti->parent.format->font.font)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
query_func(ENDT,
ti->parent.format->font.font,
&ti->text_props,
{
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
return _evas_textblock_cursor_char_pen_geometry_common_get(
ENFN->font_char_coords_get, cur_obj, cx, cy, cw, ch);
{
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
return _evas_textblock_cursor_char_pen_geometry_common_get(
ENFN->font_pen_coords_get, cur_obj, cx, cy, cw, ch);
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
{
Evas *eo_e;
Evas_Coord cy, ch;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_HEAD_RETURN(EINA_FALSE);
eo_e = evas_object_evas_get(eo_obj);
Evas_Object_Textblock_Item *it = NULL;
Eina_Bool ret = EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return -1;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
cur = (cur1) ? cur1 : cur2;
if (!cur) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
/* Find the first and last items */
it1 = it2 = NULL;
if (!cur1 || !cur1->node) return NULL;
if (!cur2 || !cur2->node) return NULL;
if (cur1->obj != cur2->obj) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_relayout_if_needed(cur1->obj, o);
if (!cur1 || !cur1->node) return NULL;
if (!cur2 || !cur2->node) return NULL;
if (cur1->obj != cur2->obj) return NULL;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur1->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur1->obj, MY_CLASS);
Evas_Coord x, y, w, h;
if (!cur || !_evas_textblock_cursor_format_is_visible_get(cur)) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
Efl_Canvas_Text_Cursor_Data cur2;
Efl_Canvas_Text_Cursor_Data *cur = eo_data_scope_get(cur_obj, EFL_CANVAS_TEXT_CURSOR_CLASS);
if (!cur) return EINA_FALSE;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_evas_textblock_cursor_init(&cur2, cur->obj);
Evas_Object_Textblock_Line *ln;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
Efl_Canvas_Text_Cursor *cur;
Efl_Canvas_Text_Cursor_Data *co;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
if (o->paragraphs)
EOLIAN static void
_efl_canvas_text_size_formatted_get(Eo *eo_obj, Efl_Canvas_Text_Data *o, Evas_Coord *w, Evas_Coord *h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_relayout_if_needed(eo_obj, o);
EOLIAN static void
_efl_canvas_text_size_native_get(Eo *eo_obj, Efl_Canvas_Text_Data *o, Evas_Coord *w, Evas_Coord *h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if (!o->native.valid)
{
EOLIAN static void
_efl_canvas_text_style_insets_get(Eo *eo_obj, Efl_Canvas_Text_Data *o, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_relayout_if_needed(eo_obj, o);
static void
evas_object_textblock_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o;
static Eina_Bool linebreak_init = EINA_FALSE;
void
_evas_object_textblock_rehint(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Efl_Canvas_Text_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
Evas_Object_Textblock_Paragraph *par;
Evas_Object_Textblock_Line *ln;
}
EOLIAN static void
-_efl_canvas_text_evas_object_paragraph_direction_set(Eo *eo_obj,
- Efl_Canvas_Text_Data *o,
- Evas_BiDi_Direction dir)
+_efl_canvas_text_efl_canvas_object_paragraph_direction_set(Eo *eo_obj,
+ Efl_Canvas_Text_Data *o,
+ Evas_BiDi_Direction dir)
{
#ifdef BIDI_SUPPORT
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!(o->inherit_paragraph_direction) && (o->paragraph_direction == dir)) ||
(o->inherit_paragraph_direction && (dir == EVAS_BIDI_DIRECTION_INHERIT)))
}
EOLIAN static Evas_BiDi_Direction
-_efl_canvas_text_evas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED,
- Efl_Canvas_Text_Data *o)
+_efl_canvas_text_efl_canvas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUSED,
+ Efl_Canvas_Text_Data *o)
{
return o->paragraph_direction;
}
_evas_textblock_cursor_init(&cur2, cur->obj);
_evas_textblock_cursor_copy(&cur2, cur);
- Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
while (*off)
EOLIAN static const char *
_efl_canvas_text_efl_text_text_get(Eo *eo_obj EINA_UNUSED, Efl_Canvas_Text_Data *o)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Evas_Object_Textblock_Node_Text *node;
{
Efl_Canvas_Text_Cursor_Data cur;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
_relayout_if_needed(eo_obj, o);
static void
evas_object_textgrid_init(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
/* set up methods (compulsory) */
obj->func = &object_func;
obj->private_data = eo_data_ref(eo_obj, MY_CLASS);
EOLIAN static void
_evas_textgrid_eo_base_destructor(Eo *eo_obj, Evas_Textgrid_Data *o EINA_UNUSED)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_textgrid_free(eo_obj, obj);
eo_data_unref(eo_obj, obj->private_data);
eo_destructor(eo_super(eo_obj, MY_CLASS));
_evas_textgrid_size_set(Eo *eo_obj, Evas_Textgrid_Data *o, int w, int h)
{
int i;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((h <= 0) || (w <= 0)) return;
EOLIAN static void
_evas_textgrid_efl_text_properties_font_source_set(Eo *eo_obj, Evas_Textgrid_Data *o, const char *font_source)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!font_source) || (!*font_source))
return;
const char *font_name,
Evas_Font_Size font_size)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Eina_Bool is, was = EINA_FALSE;
Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
Eina_Bool source_invisible = EINA_FALSE;
Eina_Array *palette;
Evas_Object_Textgrid_Color *color, *c;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int count, i;
if ((idx < 0) || (idx > 255)) return;
/* FIXME: to do */
if (styles)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
o->changed = 1;
evas_object_change(eo_obj, obj);
}
_evas_textgrid_cellrow_get(const Eo *eo_obj EINA_UNUSED, Evas_Textgrid_Data *o, int y)
{
Evas_Textgrid_Cell *ret;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
if ((y < 0) || (y >= o->cur.h)) ret = NULL;
EOLIAN static void
_evas_textgrid_update_add(Eo *eo_obj, Evas_Textgrid_Data *o, int x, int y, int w, int h)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int i, x2;
RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, o->cur.w, o->cur.h);
Evas_Object_Protected_Data *obj;
Evas *e = evas_object_evas_get(eo_obj);
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (pd->engine_data)
obj->layer->evas->engine.func->ector_free(pd->engine_data);
Eo *
_evas_vg_eo_base_constructor(Eo *eo_obj, Evas_VG_Data *pd)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
static Eina_Bool
_evas_render_is_relevant(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
return ((evas_object_is_visible(eo_obj, obj) && (!obj->cur->have_clipees)) ||
(evas_object_was_visible(eo_obj, obj) && (!obj->prev->have_clipees)));
}
EINA_LIST_FOREACH(obj->proxy->proxies, l, eo_proxy)
{
- proxy = eo_data_scope_get(eo_proxy, EVAS_OBJECT_CLASS);
+ proxy = eo_data_scope_get(eo_proxy, EFL_CANVAS_OBJECT_CLASS);
/* Flag need redraw on proxy too */
EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, proxy->proxy,
Eina_Bool map, hmap, can_map;
int is_active;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
//Need pre render for the children of mapped object.
//But only when they have changed.
if (mapped_parent && (!obj->changed)) return EINA_FALSE;
Evas_Coord xc1, yc1, xc2, yc2;
int i;
Eina_Bool nooverlay;
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
Evas_Object_Protected_Data *tmp = NULL;
Evas_Coord imgw, imgh;
unsigned int caps;
/* Check if any one is the stack make this object mapped */
eo_tmp = eo_obj;
- tmp = eo_data_scope_get(eo_tmp, EVAS_OBJECT_CLASS);
+ tmp = eo_data_scope_get(eo_tmp, EFL_CANVAS_OBJECT_CLASS);
while (tmp && !(_evas_render_has_map(tmp) && !_evas_render_can_map(tmp)))
{
eo_tmp = tmp->smart.parent;
- tmp = eo_data_scope_get(eo_tmp, EVAS_OBJECT_CLASS);
+ tmp = eo_data_scope_get(eo_tmp, EFL_CANVAS_OBJECT_CLASS);
}
if (tmp && _evas_render_has_map(tmp) && !_evas_render_can_map(tmp))
#endif
if (!eo_source) return;
- source = eo_data_scope_get(eo_source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(eo_source, EFL_CANVAS_OBJECT_CLASS);
w = source->cur->geometry.w;
h = source->cur->geometry.h;
Evas_Object_Protected_Data *oo;
eo_oo = obj->object;
- oo = eo_data_scope_get(eo_oo, EVAS_OBJECT_CLASS);
+ oo = eo_data_scope_get(eo_oo, EFL_CANVAS_OBJECT_CLASS);
while (oo->cur->clipper)
{
if ((oo->cur->clipper->map->cur.map_parent
Evas_Object_Protected_Data *smart_parent;
smart_parent = eo_data_scope_get(obj->smart.parent,
- EVAS_OBJECT_CLASS);
+ EFL_CANVAS_OBJECT_CLASS);
evas_object_change(obj->smart.parent, smart_parent);
}
}
void
_evas_render_dump_map_surfaces(Evas_Object *eo_obj)
{
- Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((obj->map->cur.map) && obj->map->surface)
{
obj->layer->evas->engine.func->image_free
return;
MAGIC_CHECK_END();
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if ((!obj->changed) && (obj->delete_me < 2))
{
Evas_Public_Data *e;
}
EOLIAN void
-_evas_object_efl_gfx_stack_raise(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_stack_raise(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
evas_object_async_block(obj);
if (evas_object_intercept_call_raise(eo_obj, obj)) return;
}
EOLIAN void
-_evas_object_efl_gfx_stack_lower(Eo *eo_obj, Evas_Object_Protected_Data *obj)
+_efl_canvas_object_efl_gfx_stack_lower(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{
evas_object_async_block(obj);
if (evas_object_intercept_call_lower(eo_obj, obj)) return;
}
EOLIAN void
-_evas_object_efl_gfx_stack_stack_above(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_above)
+_efl_canvas_object_efl_gfx_stack_stack_above(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_above)
{
evas_object_async_block(obj);
if (!eo_above)
}
if (eo_obj == eo_above) return;
if (evas_object_intercept_call_stack_above(eo_obj, obj, eo_above)) return;
- Evas_Object_Protected_Data *above = eo_data_scope_get(eo_above, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *above = eo_data_scope_get(eo_above, EFL_CANVAS_OBJECT_CLASS);
if ((EINA_INLIST_GET(obj))->prev == EINA_INLIST_GET(above))
{
evas_object_inform_call_restack(eo_obj);
}
EOLIAN void
-_evas_object_efl_gfx_stack_stack_below(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_below)
+_efl_canvas_object_efl_gfx_stack_stack_below(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_below)
{
evas_object_async_block(obj);
if (!eo_below)
}
if (eo_obj == eo_below) return;
if (evas_object_intercept_call_stack_below(eo_obj, obj, eo_below)) return;
- Evas_Object_Protected_Data *below = eo_data_scope_get(eo_below, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *below = eo_data_scope_get(eo_below, EFL_CANVAS_OBJECT_CLASS);
if ((EINA_INLIST_GET(obj))->next == EINA_INLIST_GET(below))
{
evas_object_inform_call_restack(eo_obj);
}
EOLIAN Efl_Gfx_Stack *
-_evas_object_efl_gfx_stack_above_get(Eo *eo_obj EINA_UNUSED,
+_efl_canvas_object_efl_gfx_stack_above_get(Eo *eo_obj EINA_UNUSED,
Evas_Object_Protected_Data *obj)
{
if (obj->smart.parent)
}
EOLIAN Efl_Gfx_Stack *
-_evas_object_efl_gfx_stack_below_get(Eo *eo_obj EINA_UNUSED,
+_efl_canvas_object_efl_gfx_stack_below_get(Eo *eo_obj EINA_UNUSED,
Evas_Object_Protected_Data *obj)
{
if (obj->smart.parent)
It's up to the user to destroy it when it no longer needs it.
It's possible to remove objects from the table when walking this
list, but these removals won't be reflected on it.]]
- return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
+ return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused;
}
}
@property child {
row: ushort;
}
values {
- child: Evas.Object;
+ child: Efl.Canvas.Object;
}
}
clear {
[[Get an accessor to get random access to the list of children for the table.
Note: Do not remove or delete objects while walking the list.]]
- return: free(own(accessor<Evas.Object>), eina_accessor_free)
+ return: free(own(accessor<Efl.Canvas.Object>), eina_accessor_free)
@warn_unused;
}
iterator_new @const {
[[Get an iterator to walk the list of children for the table.
Note: Do not remove or delete objects while walking the list.]]
- return: free(own(iterator<Evas.Object>), eina_iterator_free)
+ return: free(own(iterator<Efl.Canvas.Object>), eina_iterator_free)
@warn_unused;
}
add_to {
[[Create a table that is child of a given element $parent.]]
- return: Evas.Object @warn_unused;
+ return: Efl.Canvas.Object @warn_unused;
}
pack_get @const {
[[Get packing location of a child of table
@since 1.1]]
return: bool; [[$true on success, $false on failure.]]
params {
- @in child: Evas.Object; [[The child object to add.]]
+ @in child: Efl.Canvas.Object; [[The child object to add.]]
@out col: ushort; [[pointer to store relative-horizontal position to place child.]]
@out row: ushort; [[pointer to store relative-vertical position to place child.]]
@out colspan: ushort; [[pointer to store how many relative-horizontal position to use for this child.]]
return: bool; [[$true on success, $false on failure.]]
params {
- @in child: Evas.Object @nonull; [[The child object to add.]]
+ @in child: Efl.Canvas.Object @nonull; [[The child object to add.]]
@in col: ushort; [[relative-horizontal position to place child.]]
@in row: ushort; [[relative-vertical position to place child.]]
@in colspan: ushort; [[how many relative-horizontal position to use for this child.]]
return: bool; [[$true on success, $false on failure.]]
params {
- @in child: Evas.Object @nonull;
+ @in child: Efl.Canvas.Object @nonull;
}
}
count {
-class Evas.Text (Evas.Object, Efl.Text, Efl.Text.Properties, Efl.Canvas.Filter.Internal)
+class Evas.Text (Efl.Canvas.Object, Efl.Text, Efl.Text.Properties, Efl.Canvas.Filter.Internal)
{
legacy_prefix: evas_object_text;
eo_prefix: evas_obj_text;
}
}
char_pos_get @const {
- [[Retrieve position and dimension information of a character within a text @Evas.Object
+ [[Retrieve position and dimension information of a character within a text @Efl.Canvas.Object
This function is used to obtain the X, Y, width and height of the character
- located at $pos within the @Evas.Object $obj. $obj must be a text object
+ located at $pos within the @Efl.Canvas.Object $obj. $obj must be a text object
Any of the $Evas_Coord parameters ($cx, $cy, $cw, $ch) may be $NULL in which case no value will be assigned to that
parameter.]]
Efl.Canvas.Filter.Internal.filter_input_alpha;
Efl.Canvas.Filter.Internal.filter_input_render;
Efl.Canvas.Filter.Internal.filter_dirty;
- Evas.Object.paragraph_direction.set;
- Evas.Object.paragraph_direction.get;
+ Efl.Canvas.Object.paragraph_direction.set;
+ Efl.Canvas.Object.paragraph_direction.get;
}
}
/* XXX: Actual definition is in C. */
struct Evas.Textgrid.Cell;
-class Evas.Textgrid (Evas.Object, Efl.Text.Properties)
+class Evas.Textgrid (Efl.Canvas.Object, Efl.Text.Properties)
{
legacy_prefix: evas_object_textgrid;
eo_prefix: evas_obj_textgrid;
-class Evas.VG (Evas.Object, Efl.Gfx.Fill, Efl.Gfx.View)
+class Evas.VG (Efl.Canvas.Object, Efl.Gfx.Fill, Efl.Gfx.View)
{
legacy_prefix: evas_object_vg;
eo_prefix: evas_obj_vg;
else
{
pd->parent = parent;
- pd->data = parent ? eo_data_scope_get(parent, EVAS_OBJECT_CLASS) : NULL;
+ pd->data = parent ? eo_data_scope_get(parent, EFL_CANVAS_OBJECT_CLASS) : NULL;
}
}
Eina_List *li;
if (!ctx->has_proxies) return;
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
EINA_LIST_FOREACH(ctx->buffers, li, fb)
if (fb->source)
{
// TODO: Lock current object as proxyrendering (see image obj)
- source = eo_data_scope_get(fb->source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(fb->source, EFL_CANVAS_OBJECT_CLASS);
_assert(fb->w == source->cur->geometry.w);
_assert(fb->h == source->cur->geometry.h);
if (source->proxy->surface && !source->proxy->redraw)
Evas_Filter_Proxy_Binding *bind = tup->data;
Evas_Object_Protected_Data *obj;
- obj = eo_data_scope_get(bind->eo_source, EVAS_OBJECT_CLASS);
+ obj = eo_data_scope_get(bind->eo_source, EFL_CANVAS_OBJECT_CLASS);
buf->w = obj->cur->geometry.w;
buf->h = obj->cur->geometry.h;
}
fb->source_name = eina_stringshare_ref(pb->name);
fb->ctx->has_proxies = EINA_TRUE;
- source = eo_data_scope_get(fb->source, EVAS_OBJECT_CLASS);
+ source = eo_data_scope_get(fb->source, EFL_CANVAS_OBJECT_CLASS);
if ((source->cur->geometry.w != buf->w) ||
(source->cur->geometry.h != buf->h))
pgm->changed = EINA_TRUE;
# include <Eet.h>
#endif
-#ifndef EVAS_OBJECT_PROTECTED
-# define EVAS_OBJECT_PROTECTED
+#ifndef EFL_CANVAS_OBJECT_PROTECTED
+# define EFL_CANVAS_OBJECT_PROTECTED
#endif
#include "Evas.h"
if (obj->parent_cache.freeze_events_valid)
return obj->parent_cache.freeze_events;
if (!obj->smart.parent) return 0;
- Evas_Object_Protected_Data *smart_parent_pd = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart_parent_pd = eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
obj->parent_cache.freeze_events =
evas_event_freezes_through(obj->smart.parent, smart_parent_pd);
obj->parent_cache.freeze_events_valid = EINA_TRUE;
if (obj->parent_cache.pass_events_valid)
return obj->parent_cache.pass_events;
if (!obj->smart.parent) return 0;
- Evas_Object_Protected_Data *smart_parent_pd = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ Evas_Object_Protected_Data *smart_parent_pd = eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
obj->parent_cache.pass_events =
evas_event_passes_through(obj->smart.parent, smart_parent_pd);
obj->parent_cache.pass_events_valid = EINA_TRUE;
if (!obj->smart.parent) return 0;
if (obj->mask->is_mask) return 0;
Evas_Object_Protected_Data *smart_parent_pd =
- eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
obj->parent_cache.src_invisible =
evas_object_is_source_invisible(obj->smart.parent, smart_parent_pd);
obj->parent_cache.src_invisible_valid = EINA_TRUE;
if (EINA_LIKELY(obj->smart.parent != NULL))
{
Evas_Object_Protected_Data *parent =
- eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
+ eo_data_scope_get(obj->smart.parent, EFL_CANVAS_OBJECT_CLASS);
if (parent->clip.mask)
{
if (parent->clip.mask != obj->clip.mask)
# include <config.h>
#endif
-#ifndef EVAS_OBJECT_PROTECTED
-# define EVAS_OBJECT_PROTECTED
+#ifndef EFL_CANVAS_OBJECT_PROTECTED
+# define EFL_CANVAS_OBJECT_PROTECTED
#endif
#include "Evas.h"
// helper function for legacy EAPI implementations
#define EVAS_OBJ_GET_OR_RETURN(o, ...) ({ \
- Evas_Object_Protected_Data *_obj = eo_isa(o, EVAS_OBJECT_CLASS) ? \
- eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS) : NULL; \
+ Evas_Object_Protected_Data *_obj = eo_isa(o, EFL_CANVAS_OBJECT_CLASS) ? \
+ eo_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS) : NULL; \
if (!_obj) { MAGIC_CHECK_FAILED(o,0,0) return __VA_ARGS__; } \
_obj; })
/* DEBUG mode: fail, but normally just ERR(). This also returns if NULL. */
#ifdef DEBUG
#define EVAS_OBJECT_LEGACY_API(_eo, ...) \
- do { Evas_Object_Protected_Data *_o = eo_data_scope_get(_eo, EVAS_OBJECT_CLASS); \
+ do { Evas_Object_Protected_Data *_o = eo_data_scope_get(_eo, EFL_CANVAS_OBJECT_CLASS); \
if (EINA_UNLIKELY(!_o)) return __VA_ARGS__; \
if (EINA_UNLIKELY(!_o->legacy)) { \
char buf[1024]; snprintf(buf, sizeof(buf), "Calling legacy API on EO object '%s' is not permitted!", eo_class_name_get(_o->object)); \
} } while (0)
#else
#define EVAS_OBJECT_LEGACY_API(_eo, ...) \
- do { Evas_Object_Protected_Data *_o = eo_data_scope_get(_eo, EVAS_OBJECT_CLASS); \
+ do { Evas_Object_Protected_Data *_o = eo_data_scope_get(_eo, EFL_CANVAS_OBJECT_CLASS); \
if (EINA_UNLIKELY(!_o)) return __VA_ARGS__; \
if (EINA_UNLIKELY(!_o->legacy)) { \
char buf[1024]; snprintf(buf, sizeof(buf), "Calling legacy API on EO object '%s' is not permitted!", eo_class_name_get(_o->object)); \
void _below_get(Eo *obj, void *_pd, va_list *list);
void _smart_move_children_relative(Eo *obj, void *_pd, va_list *list);
void _smart_clipped_clipper_get(Eo *obj, void *_pd, va_list *list);
-void _evas_object_clip_prev_reset(Evas_Object_Protected_Data *obj, Eina_Bool cur_prev);
+void _efl_canvas_object_clip_prev_reset(Evas_Object_Protected_Data *obj, Eina_Bool cur_prev);
void _canvas_event_default_flags_set(Eo *e, void *_pd, va_list *list);
void _canvas_event_default_flags_get(Eo *e, void *_pd, va_list *list);
/* check value of no_render flag as seen from evas land */
sub = edje_object_part_object_get(obj, "mask");
- fail_if(!evas_obj_no_render_get(sub));
+ fail_if(!efl_canvas_object_no_render_get(sub));
/* check that text has a clip (based on description.clip_to) */
sub = edje_object_part_object_get(obj, "text");
- fail_if(!evas_obj_clip_get(sub));
+ fail_if(!efl_canvas_object_clip_get(sub));
/* test description.clip_to override */
sub = edje_object_part_object_get(obj, "noclip");
- clip2 = evas_obj_clip_get(sub);
+ clip2 = efl_canvas_object_clip_get(sub);
fail_if(clip != clip2);
EDJE_TEST_FREE_EVAS();
/* check value of no_render flag as seen from evas land */
sub = edje_object_part_object_get(obj, "mask");
- fail_if(!evas_obj_no_render_get(sub));
+ fail_if(!efl_canvas_object_no_render_get(sub));
/* check no_render inheritance */
sub = edje_object_part_object_get(obj, "mask2");
- fail_if(evas_obj_no_render_get(sub));
+ fail_if(efl_canvas_object_no_render_get(sub));
sub = edje_object_part_object_get(obj, "mask3");
- fail_if(!evas_obj_no_render_get(sub));
+ fail_if(!efl_canvas_object_no_render_get(sub));
/* text part: check filter status */
text = edje_object_part_object_get(obj, "text");
class Class_Simple {
[[Class Desc Simple]]
legacy_prefix: evas_object_simple;
- eo_prefix: evas_obj_simple;
+ eo_prefix: efl_canvas_object_simple;
data: Evas_Simple_Data;
methods {
@property a @beta {
Eina_Bool _class_simple_a_set(Eo *obj, Evas_Simple_Data *pd, int value);
-EOAPI EO_FUNC_BODYV(evas_obj_simple_a_set, Eina_Bool, EINA_TRUE, EO_FUNC_CALL(value), int value);
+EOAPI EO_FUNC_BODYV(efl_canvas_object_simple_a_set, Eina_Bool, EINA_TRUE, EO_FUNC_CALL(value), int value);
int _class_simple_a_get(Eo *obj, Evas_Simple_Data *pd);
-EOAPI EO_FUNC_BODY_CONST(evas_obj_simple_a_get, int, 100);
+EOAPI EO_FUNC_BODY_CONST(efl_canvas_object_simple_a_get, int, 100);
void _class_simple_b_set(Eo *obj, Evas_Simple_Data *pd);
-EOAPI EO_VOID_FUNC_BODY(evas_obj_simple_b_set);
+EOAPI EO_VOID_FUNC_BODY(efl_canvas_object_simple_b_set);
char * _class_simple_foo(Eo *obj, Evas_Simple_Data *pd, int a, char *b, double *c, int *d);
return _class_simple_foo(obj, pd, a, b, c, d);
}
-EOAPI EO_FUNC_BODYV(evas_obj_simple_foo, char *, NULL, EO_FUNC_CALL(a, b, c, d), int a, char *b, double *c, int *d);
+EOAPI EO_FUNC_BODYV(efl_canvas_object_simple_foo, char *, NULL, EO_FUNC_CALL(a, b, c, d), int a, char *b, double *c, int *d);
int * _class_simple_bar(Eo *obj, Evas_Simple_Data *pd, int x);
-EOAPI EO_FUNC_BODYV(evas_obj_simple_bar, int *, 0, EO_FUNC_CALL(x), int x);
+EOAPI EO_FUNC_BODYV(efl_canvas_object_simple_bar, int *, 0, EO_FUNC_CALL(x), int x);
static const Eo_Op_Description _class_simple_op_desc[] = {
- EO_OP_FUNC(evas_obj_simple_a_set, _class_simple_a_set),
- EO_OP_FUNC(evas_obj_simple_a_get, _class_simple_a_get),
- EO_OP_FUNC(evas_obj_simple_foo, __eolian_class_simple_foo),
+ EO_OP_FUNC(efl_canvas_object_simple_a_set, _class_simple_a_set),
+ EO_OP_FUNC(efl_canvas_object_simple_a_get, _class_simple_a_get),
+ EO_OP_FUNC(efl_canvas_object_simple_foo, __eolian_class_simple_foo),
};
static const Eo_Class_Description _class_simple_class_desc = {
*
* @ingroup Class_Simple
*/
-EOAPI Eina_Bool evas_obj_simple_a_set(Eo *obj, int value);
+EOAPI Eina_Bool efl_canvas_object_simple_a_set(Eo *obj, int value);
#endif
#ifdef CLASS_SIMPLE_BETA
*
* @ingroup Class_Simple
*/
-EOAPI int evas_obj_simple_a_get(const Eo *obj);
+EOAPI int efl_canvas_object_simple_a_get(const Eo *obj);
#endif
-EOAPI void evas_obj_simple_b_set(Eo *obj);
+EOAPI void efl_canvas_object_simple_b_set(Eo *obj);
#ifdef CLASS_SIMPLE_BETA
/**
*
* @ingroup Class_Simple
*/
-EOAPI char *evas_obj_simple_foo(Eo *obj, int a, char *b, double *c, int *d);
+EOAPI char *efl_canvas_object_simple_foo(Eo *obj, int a, char *b, double *c, int *d);
#endif
-EOAPI int *evas_obj_simple_bar(Eo *obj, int x);
+EOAPI int *efl_canvas_object_simple_bar(Eo *obj, int x);
#endif
fail_if(eolian_class_type_get(class) != EOLIAN_CLASS_REGULAR);
fail_if(eolian_class_inherits_get(class) != NULL);
fail_if(strcmp(eolian_class_legacy_prefix_get(class), "evas_object_simple"));
- fail_if(strcmp(eolian_class_eo_prefix_get(class), "evas_obj_simple"));
+ fail_if(strcmp(eolian_class_eo_prefix_get(class), "efl_canvas_object_simple"));
fail_if(strcmp(eolian_class_data_type_get(class), "Evas_Simple_Data"));
/* c get func */
}
fail_if(i != 1);
- it = evas_obj_clipees_get(mask);
+ it = efl_canvas_object_clipees_get(mask);
i = 0;
EINA_ITERATOR_FOREACH(it, o)
{