forked from enlightenment/efl
Eolian: Integration of Edje and Edje Edit
This commit is contained in:
parent
a9d38e6df7
commit
2be615916a
|
@ -6,7 +6,9 @@ BUILT_SOURCES =
|
|||
|
||||
EOLIAN_FLAGS = \
|
||||
-I$(srcdir)/lib/eo \
|
||||
-I$(srcdir)/lib/evas/canvas
|
||||
-I$(srcdir)/lib/evas/canvas \
|
||||
-I$(srcdir)/lib/edje
|
||||
|
||||
|
||||
DIST_SUBDIRS =
|
||||
SUBDIRS =
|
||||
|
|
|
@ -1,6 +1,21 @@
|
|||
|
||||
### Library
|
||||
|
||||
BUILT_SOURCES += \
|
||||
lib/edje/edje.eo.c \
|
||||
lib/edje/edje.eo.h \
|
||||
lib/edje/edje_edit.eo.c \
|
||||
lib/edje/edje_edit.eo.h
|
||||
|
||||
|
||||
edjeeolianfilesdir = $(datadir)/eolian/include/edje-@VMAJ@
|
||||
edjeeolianfiles_DATA = \
|
||||
lib/edje/edje.eo \
|
||||
lib/edje/edje_edit.eo
|
||||
|
||||
EXTRA_DIST += \
|
||||
${edjeeolianfiles_DATA}
|
||||
|
||||
lib_LTLIBRARIES += lib/edje/libedje.la
|
||||
|
||||
EDJE_COMMON_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
||||
|
@ -22,6 +37,10 @@ lib/edje/Edje_Eo.h \
|
|||
lib/edje/Edje_Legacy.h \
|
||||
lib/edje/Edje_Edit.h
|
||||
|
||||
nodist_installed_edjemainheaders_DATA = \
|
||||
lib/edje/edje.eo.h \
|
||||
lib/edje/edje_edit.eo.h
|
||||
|
||||
lib_edje_libedje_la_SOURCES = \
|
||||
lib/edje/edje_private.h \
|
||||
lib/edje/edje_container.h \
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "edje.eo.h"
|
||||
#if 0
|
||||
#define EDJE_OBJ_CLASS edje_object_class_get()
|
||||
|
||||
const Eo_Class *edje_object_class_get(void) EINA_CONST;
|
||||
|
@ -297,7 +299,7 @@ enum
|
|||
*
|
||||
* @see edje_object_part_text_input_panel_variation_get
|
||||
*/
|
||||
#define edje_obj_part_text_input_panel_variation_get(part, ret) EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_GET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(int *, ret)
|
||||
#define edje_obj_part_text_input_panel_layout_variation_get(part, ret) EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_GET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(int *, ret)
|
||||
|
||||
/**
|
||||
* @def edje_obj_part_text_input_panel_variation_set
|
||||
|
@ -310,7 +312,7 @@ enum
|
|||
*
|
||||
* @see edje_object_part_text_input_panel_variation_get
|
||||
*/
|
||||
#define edje_obj_part_text_input_panel_variation_set(part, variation) EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(int, variation)
|
||||
#define edje_obj_part_text_input_panel_layout_variation_set(part, variation) EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(int, variation)
|
||||
|
||||
/**
|
||||
* @def edje_obj_part_text_autocapital_type_set
|
||||
|
@ -2278,10 +2280,15 @@ enum
|
|||
*/
|
||||
#define edje_obj_signal_emit(emission, source) EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIGNAL_EMIT), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source)
|
||||
|
||||
#endif
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
#include "edje_edit.eo.h"
|
||||
#if 0
|
||||
|
||||
#define EDJE_EDIT_CLASS edje_edit_class_get()
|
||||
|
||||
const Eo_Class *edje_edit_class_get(void) EINA_CONST;
|
||||
|
||||
#endif
|
|
@ -188,7 +188,7 @@ EAPI void edje_object_update_hints_set(Evas_Object *obj, Eina_Bool update);
|
|||
* @param obj A handle to an Edje object.
|
||||
* @return @c true if does, @c false if it doesn't.
|
||||
*/
|
||||
EAPI Eina_Bool edje_object_update_hints_get(Evas_Object *obj);
|
||||
EAPI Eina_Bool edje_object_update_hints_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* @brief Get the maximum size specified -- as an EDC property -- for a
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -635,17 +635,17 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
|
|||
void
|
||||
_edje_recalc(Edje *ed)
|
||||
{
|
||||
if ((ed->freeze > 0) || (_edje_freeze_val > 0))
|
||||
if ((ed->freeze > 0) || (_edje_util_freeze_val > 0))
|
||||
{
|
||||
ed->recalc = EINA_TRUE;
|
||||
if (!ed->calc_only)
|
||||
{
|
||||
if (_edje_freeze_val > 0)
|
||||
if (_edje_util_freeze_val > 0)
|
||||
{
|
||||
if (!ed->freeze_calc)
|
||||
{
|
||||
_edje_freeze_calc_count++;
|
||||
_edje_freeze_calc_list = eina_list_append(_edje_freeze_calc_list, ed);
|
||||
_edje_util_freeze_calc_count++;
|
||||
_edje_util_freeze_calc_list = eina_list_append(_edje_util_freeze_calc_list, ed);
|
||||
ed->freeze_calc = EINA_TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ _edje_mouse_down_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc
|
|||
ignored = rp->part->ignore_flags & ev->event_flags;
|
||||
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
|
||||
if ((!ev->event_flags) || (!ignored))
|
||||
{
|
||||
|
@ -154,7 +154,7 @@ _edje_mouse_down_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc
|
|||
rp->still_in = EINA_TRUE;
|
||||
}
|
||||
// _edje_recalc_do(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
|
||||
return EO_CALLBACK_CONTINUE;
|
||||
|
@ -178,7 +178,7 @@ _edje_mouse_up_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc E
|
|||
ignored = rp->part->ignore_flags & ev->event_flags;
|
||||
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
|
||||
if ((!ev->event_flags) || (!ignored))
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ _edje_mouse_up_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc E
|
|||
rp->still_in = EINA_FALSE;
|
||||
|
||||
// _edje_recalc_do(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
|
||||
return EO_CALLBACK_CONTINUE;
|
||||
|
@ -285,7 +285,7 @@ _edje_mouse_move_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc
|
|||
rp->still_in = EINA_TRUE;
|
||||
}
|
||||
}
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
if (rp->drag)
|
||||
{
|
||||
if (rp->drag->down.count > 0)
|
||||
|
@ -328,7 +328,7 @@ _edje_mouse_move_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc
|
|||
}
|
||||
}
|
||||
_edje_unref(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
|
||||
return EO_CALLBACK_CONTINUE;
|
||||
}
|
||||
|
@ -376,7 +376,7 @@ _edje_timer_cb(void *data EINA_UNUSED)
|
|||
|
||||
ed = eina_list_data_get(animl);
|
||||
_edje_block(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
animl = eina_list_remove(animl, eina_list_data_get(animl));
|
||||
if ((!ed->paused) && (!ed->delete_me))
|
||||
{
|
||||
|
@ -423,7 +423,7 @@ _edje_timer_cb(void *data EINA_UNUSED)
|
|||
}
|
||||
break_prog:
|
||||
_edje_unblock(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
}
|
||||
if (_edje_anim_count > 0) return ECORE_CALLBACK_RENEW;
|
||||
|
|
|
@ -150,10 +150,9 @@ _edje_edit_data_clean(Edje_Edit *eed)
|
|||
eed->script_need_recompile = EINA_FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_edit_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_edit_evas_smart_del(Eo *obj, Edje_Edit *eed)
|
||||
{
|
||||
Edje_Edit *eed = _pd;
|
||||
_edje_edit_data_clean(eed);
|
||||
|
||||
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
|
||||
|
@ -167,19 +166,16 @@ _edje_edit_program_script_free(Program_Script *ps)
|
|||
free(ps);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_edit_smart_file_set(Eo *obj, void *_pd, va_list *list)
|
||||
EOLIAN static Eina_Bool
|
||||
_edje_edit_edje_file_set(Eo *obj, Edje_Edit *eed, const char *file, const char *group)
|
||||
{
|
||||
const char *file = va_arg(*list, const char *);
|
||||
const char *group= va_arg(*list, const char *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
Edje_Edit *eed = _pd;
|
||||
Eina_Bool ret;
|
||||
Eet_File *ef;
|
||||
char **keys, buf[64];
|
||||
int count, i;
|
||||
int len = strlen("edje/scripts/embryo/source/");
|
||||
|
||||
if (ret) *ret = EINA_FALSE;
|
||||
ret = EINA_FALSE;
|
||||
|
||||
_edje_edit_data_clean(eed);
|
||||
|
||||
|
@ -199,7 +195,7 @@ _edje_edit_smart_file_set(Eo *obj, void *_pd, va_list *list)
|
|||
Eina_Bool int_ret = EINA_FALSE;
|
||||
eo_do_super(obj, MY_CLASS, edje_obj_file_set(file, group, &int_ret));
|
||||
if (!int_ret)
|
||||
return;
|
||||
return ret;
|
||||
|
||||
eed->program_scripts = eina_hash_int32_new((Eina_Free_Cb)_edje_edit_program_script_free);
|
||||
|
||||
|
@ -226,7 +222,9 @@ _edje_edit_smart_file_set(Eo *obj, void *_pd, va_list *list)
|
|||
if (keys) free(keys);
|
||||
eet_close(ef);
|
||||
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
ret = EINA_TRUE;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
EAPI Evas_Object *
|
||||
|
@ -238,21 +236,21 @@ edje_edit_object_add(Evas *evas)
|
|||
return e;
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_edit_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_edit_eo_base_constructor(Eo *obj, Edje_Edit *eed)
|
||||
{
|
||||
Edje_Edit *eed = class_data;
|
||||
eed->base = eo_data_ref(obj, EDJE_OBJ_CLASS);
|
||||
|
||||
eo_do_super(obj, MY_CLASS, eo_constructor());
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_edit_destructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_edit_eo_base_destructor(Eo *obj, Edje_Edit *class_data EINA_UNUSED)
|
||||
{
|
||||
eo_do_super(obj, MY_CLASS, eo_destructor());
|
||||
eo_data_unref(obj, class_data);
|
||||
}
|
||||
|
||||
/* End of Edje_Edit smart stuff */
|
||||
|
||||
static Edje_Part_Description_Common *
|
||||
|
@ -8347,30 +8345,4 @@ edje_edit_print_internal_status(Evas_Object *obj)
|
|||
*/
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_edit_class_constructor(Eo_Class *klass)
|
||||
{
|
||||
const Eo_Op_Func_Description func_desc[] = {
|
||||
EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _edje_edit_constructor),
|
||||
EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _edje_edit_destructor),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _edje_edit_smart_del),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_FILE_SET), _edje_edit_smart_file_set),
|
||||
EO_OP_FUNC_SENTINEL
|
||||
};
|
||||
|
||||
eo_class_funcs_set(klass, func_desc);
|
||||
}
|
||||
|
||||
static const Eo_Class_Description edje_edit_class_desc = {
|
||||
EO_VERSION,
|
||||
"Edje_Edit",
|
||||
EO_CLASS_TYPE_REGULAR,
|
||||
EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
|
||||
NULL,
|
||||
sizeof(Edje_Edit),
|
||||
_edje_edit_class_constructor,
|
||||
NULL
|
||||
};
|
||||
|
||||
EO_DEFINE_CLASS(edje_edit_class_get, &edje_edit_class_desc, EDJE_OBJ_CLASS, NULL);
|
||||
|
||||
#include "edje_edit.eo.c"
|
|
@ -0,0 +1,10 @@
|
|||
class Edje_Edit (Edje)
|
||||
{
|
||||
data: Edje_Edit;
|
||||
implements {
|
||||
Eo_Base::constructor;
|
||||
Eo_Base::destructor;
|
||||
Evas_Smart::del;
|
||||
Edje::file::set;
|
||||
}
|
||||
}
|
|
@ -1493,7 +1493,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
switch (type)
|
||||
{
|
||||
case EDJE_MESSAGE_NONE:
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, NULL);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, NULL);
|
||||
break;
|
||||
case EDJE_MESSAGE_SIGNAL:
|
||||
break;
|
||||
|
@ -1514,7 +1514,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
embryo_data_string_get(ep, cptr, s);
|
||||
emsg = alloca(sizeof(Edje_Message_String));
|
||||
emsg->str = s;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1526,7 +1526,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
ptr = embryo_data_address_get(ep, params[3]);
|
||||
if (ptr) emsg->val = (int)*ptr;
|
||||
else emsg->val = 0;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
break;
|
||||
case EDJE_MESSAGE_FLOAT:
|
||||
|
@ -1543,7 +1543,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
}
|
||||
else
|
||||
emsg->val = 0.0;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
break;
|
||||
case EDJE_MESSAGE_STRING_SET:
|
||||
|
@ -1570,7 +1570,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
emsg->str[i - 3] = s;
|
||||
}
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
break;
|
||||
case EDJE_MESSAGE_INT_SET:
|
||||
|
@ -1586,7 +1586,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
if (ptr) emsg->val[i - 3] = (int)*ptr;
|
||||
else emsg->val[i - 3] = 0;
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
break;
|
||||
case EDJE_MESSAGE_FLOAT_SET:
|
||||
|
@ -1609,7 +1609,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
else
|
||||
emsg->val[i - 3] = 0.0;
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
break;
|
||||
case EDJE_MESSAGE_STRING_INT:
|
||||
|
@ -1632,7 +1632,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
ptr = embryo_data_address_get(ep, params[4]);
|
||||
if (ptr) emsg->val = (int)*ptr;
|
||||
else emsg->val = 0;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1662,7 +1662,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
}
|
||||
else
|
||||
emsg->val = 0.0;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1691,7 +1691,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
if (ptr) emsg->val[i - 4] = (int)*ptr;
|
||||
else emsg->val[i - 4] = 0;
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1727,7 +1727,7 @@ _edje_embryo_fn_send_message(Embryo_Program *ep, Embryo_Cell *params)
|
|||
else
|
||||
emsg->val[i - 4] = 0.0;
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -23,25 +23,12 @@ edje_external_param_type_str(Edje_External_Param_Type type)
|
|||
}
|
||||
}
|
||||
|
||||
EAPI Evas_Object *
|
||||
edje_object_part_external_object_get(const Evas_Object *obj, const char *part)
|
||||
EOLIAN Evas_Object*
|
||||
_edje_part_external_object_get(Eo *obj EINA_UNUSED, Edje *ed, const char *part)
|
||||
{
|
||||
if (!obj) return NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
eo_do((Eo *)obj, edje_obj_part_external_object_get(part, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_part_external_object_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
const char *part = va_arg(*list, const char *);
|
||||
Evas_Object **ret = va_arg(*list, Evas_Object **);
|
||||
Edje *ed = (Edje *)_pd;
|
||||
Edje_Real_Part *rp;
|
||||
*ret = NULL;
|
||||
|
||||
if ((!ed) || (!part)) return;
|
||||
if ((!ed) || (!part)) return NULL;
|
||||
|
||||
/* Need to recalc before providing the object. */
|
||||
_edje_recalc_do(ed);
|
||||
|
@ -50,179 +37,117 @@ _part_external_object_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
if (!rp)
|
||||
{
|
||||
ERR("no part '%s'", part);
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
|
||||
{
|
||||
ERR("cannot get external object of a part '%s' that is not EXTERNAL",
|
||||
rp->part->name);
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
if ((rp->type != EDJE_RP_TYPE_SWALLOW) ||
|
||||
(!rp->typedata.swallow)) return;
|
||||
*ret = rp->typedata.swallow->swallowed_object;
|
||||
(!rp->typedata.swallow)) return NULL;
|
||||
|
||||
return rp->typedata.swallow->swallowed_object;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_part_external_param_set(Evas_Object *obj, const char *part, const Edje_External_Param *param)
|
||||
EOLIAN Eina_Bool
|
||||
_edje_part_external_param_set(Eo *obj, Edje *ed, const char *part, const Edje_External_Param *param)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do(obj, edje_obj_part_external_param_set(part, param, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_part_external_param_set(Eo *obj, void *_pd, va_list *list)
|
||||
{
|
||||
const char *part = va_arg(*list, const char *);
|
||||
const Edje_External_Param *param = va_arg(*list, const Edje_External_Param *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
if (ret) *ret = EINA_FALSE;
|
||||
|
||||
Edje *ed = _pd;
|
||||
Edje_Real_Part *rp;
|
||||
|
||||
if ((!param) || (!param->name)) return;
|
||||
if ((!param) || (!param->name)) return EINA_FALSE;
|
||||
|
||||
if ((!ed) || (!part)) return;
|
||||
if ((!ed) || (!part)) return EINA_FALSE;
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, (char *)part);
|
||||
if (!rp)
|
||||
{
|
||||
ERR("no part '%s'", part);
|
||||
return;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
if (_edje_external_param_set(obj, rp, param))
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
return EINA_TRUE;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_part_external_param_get(const Evas_Object *obj, const char *part, Edje_External_Param *param)
|
||||
EOLIAN Eina_Bool
|
||||
_edje_part_external_param_get(Eo *obj, Edje *ed, const char *part, Edje_External_Param *param)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *)obj, edje_obj_part_external_param_get(part, param, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_part_external_param_get(Eo *obj, void *_pd, va_list *list)
|
||||
{
|
||||
const char *part = va_arg(*list, const char *);
|
||||
Edje_External_Param *param = va_arg(*list, Edje_External_Param *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
*ret = EINA_FALSE;
|
||||
|
||||
Edje *ed = _pd;
|
||||
Edje_Real_Part *rp;
|
||||
|
||||
if ((!param) || (!param->name)) return;
|
||||
if ((!param) || (!param->name)) return EINA_FALSE;
|
||||
|
||||
if ((!ed) || (!part)) return;
|
||||
if ((!ed) || (!part)) return EINA_FALSE;
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, (char *)part);
|
||||
if (!rp)
|
||||
{
|
||||
ERR("no part '%s'", part);
|
||||
return;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
*ret = _edje_external_param_get(obj, rp, param);
|
||||
return _edje_external_param_get(obj, rp, param);
|
||||
}
|
||||
|
||||
|
||||
|
||||
EAPI Evas_Object *
|
||||
edje_object_part_external_content_get(const Evas_Object *obj, const char *part, const char *content)
|
||||
EOLIAN Evas_Object*
|
||||
_edje_part_external_content_get(Eo *obj EINA_UNUSED, Edje *ed, const char *part, const char *content)
|
||||
{
|
||||
if (!obj) return NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
eo_do((Eo *)obj, edje_obj_part_external_content_get(part, content, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_part_external_content_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
const char *part = va_arg(*list, const char *);
|
||||
const char *content = va_arg(*list, const char *);
|
||||
Evas_Object **ret = va_arg(*list, Evas_Object **);
|
||||
*ret = NULL;
|
||||
|
||||
Edje *ed = _pd;
|
||||
Edje_Real_Part *rp;
|
||||
|
||||
if (!content) return;
|
||||
if (!content) return NULL;
|
||||
|
||||
if ((!ed) || (!part)) return;
|
||||
if ((!ed) || (!part)) return NULL;
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, (char *)part);
|
||||
if (!rp)
|
||||
{
|
||||
ERR("no part '%s'", part);
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
if ((rp->type != EDJE_RP_TYPE_SWALLOW) ||
|
||||
(!rp->typedata.swallow)) return;
|
||||
*ret = _edje_external_content_get(rp->typedata.swallow->swallowed_object, content);
|
||||
(!rp->typedata.swallow)) return NULL;
|
||||
|
||||
return _edje_external_content_get(rp->typedata.swallow->swallowed_object, content);
|
||||
}
|
||||
|
||||
EAPI Edje_External_Param_Type
|
||||
edje_object_part_external_param_type_get(const Evas_Object *obj, const char *part, const char *param)
|
||||
EOLIAN Edje_External_Param_Type
|
||||
_edje_part_external_param_type_get(Eo *obj, Edje *ed, const char *part, const char *param)
|
||||
{
|
||||
if (!obj) return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
Edje_External_Param_Type ret = EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
eo_do((Eo *)obj, edje_obj_part_external_param_type_get(part, param, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_part_external_param_type_get(Eo *obj, void *_pd, va_list *list)
|
||||
{
|
||||
const char *part = va_arg(*list, const char *);
|
||||
const char *param = va_arg(*list, const char *);
|
||||
Edje_External_Param_Type *ret = va_arg(*list, Edje_External_Param_Type *);
|
||||
*ret = EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
|
||||
Edje *ed = _pd;
|
||||
Edje_Real_Part *rp;
|
||||
Edje_External_Type *type;
|
||||
Edje_External_Param_Info *info;
|
||||
|
||||
if ((!ed) || (!part)) return;
|
||||
if ((!ed) || (!part)) return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, (char *)part);
|
||||
if (!rp)
|
||||
{
|
||||
ERR("no part '%s'", part);
|
||||
return;
|
||||
return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
}
|
||||
if ((rp->type != EDJE_RP_TYPE_SWALLOW) ||
|
||||
(!rp->typedata.swallow)) return;
|
||||
(!rp->typedata.swallow)) return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
type = evas_object_data_get(rp->typedata.swallow->swallowed_object, "Edje_External_Type");
|
||||
if (!type)
|
||||
{
|
||||
ERR("no external type for object %p", obj);
|
||||
return;
|
||||
return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
}
|
||||
if (!type->parameters_info)
|
||||
{
|
||||
ERR("no parameters information for external type '%s'",
|
||||
type->module_name);
|
||||
return;
|
||||
return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
}
|
||||
for (info = type->parameters_info; info->name; info++)
|
||||
if (strcmp(info->name, param) == 0)
|
||||
{
|
||||
*ret = info->type;
|
||||
return;
|
||||
}
|
||||
if (strcmp(info->name, param) == 0) return info->type;;
|
||||
|
||||
ERR("no parameter '%s' external type '%s'", param, type->module_name);
|
||||
}
|
||||
|
||||
return EDJE_EXTERNAL_PARAM_TYPE_MAX;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_external_type_register(const char *type_name, const Edje_External_Type *type_info)
|
||||
|
|
|
@ -72,58 +72,17 @@ static int _sort_defined_boxes(const void *a, const void *b);
|
|||
|
||||
/************************** API Routines **************************/
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_file_set(Evas_Object *obj, const char *file, const char *group)
|
||||
EOLIAN void
|
||||
_edje_file_get(Eo *obj EINA_UNUSED, Edje *ed, const char **file, const char **group)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
|
||||
eo_do(obj, edje_obj_file_set(file, group, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_mmap_set(Evas_Object *obj, const Eina_File *file, const char *group)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
|
||||
eo_do(obj, edje_obj_mmap_set(file, group, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_object_file_get(const Evas_Object *obj, const char **file, const char **group)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do((Eo *)obj, edje_obj_file_get(file, group));
|
||||
}
|
||||
|
||||
void
|
||||
_file_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
const char **file = va_arg(*list, const char **);
|
||||
const char **group = va_arg(*list, const char **);
|
||||
const Edje *ed = _pd;
|
||||
if (file) *file = ed->path;
|
||||
if (group) *group = ed->group;
|
||||
}
|
||||
|
||||
EAPI Edje_Load_Error
|
||||
edje_object_load_error_get(const Evas_Object *obj)
|
||||
EOLIAN Edje_Load_Error
|
||||
_edje_load_error_get(Eo *obj EINA_UNUSED, Edje *ed)
|
||||
{
|
||||
if (!obj) return EDJE_LOAD_ERROR_NONE;
|
||||
Edje_Load_Error ret = EDJE_LOAD_ERROR_NONE;
|
||||
eo_do((Eo *)obj, edje_obj_load_error_get(&ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_load_error_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Edje_Load_Error *ret = va_arg(*list, Edje_Load_Error *);
|
||||
const Edje *ed = _pd;
|
||||
*ret = ed->load_error;
|
||||
return ed->load_error;
|
||||
}
|
||||
|
||||
EAPI const char *
|
||||
|
@ -798,7 +757,7 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch
|
|||
|
||||
_edje_ref(ed);
|
||||
_edje_block(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
// if (ed->collection->script) _edje_embryo_script_init(ed);
|
||||
_edje_var_init(ed);
|
||||
for (i = 0; i < ed->table_parts_size; i++)
|
||||
|
@ -1097,7 +1056,7 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch
|
|||
edje_object_signal_emit(obj, "edje,state,ltr", "edje");
|
||||
|
||||
_edje_recalc(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unblock(ed);
|
||||
_edje_unref(ed);
|
||||
ed->load_error = EDJE_LOAD_ERROR_NONE;
|
||||
|
@ -1153,7 +1112,7 @@ on_error:
|
|||
eina_list_free(externals);
|
||||
eina_list_free(sources);
|
||||
eina_array_flush(&parts);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unblock(ed);
|
||||
_edje_unref(ed);
|
||||
_edje_file_del(ed);
|
||||
|
@ -1291,9 +1250,9 @@ _edje_file_del(Edje *ed)
|
|||
if (tev) evas_event_freeze(tev);
|
||||
if (ed->freeze_calc)
|
||||
{
|
||||
_edje_freeze_calc_list = eina_list_remove(_edje_freeze_calc_list, ed);
|
||||
_edje_util_freeze_calc_list = eina_list_remove(_edje_util_freeze_calc_list, ed);
|
||||
ed->freeze_calc = EINA_FALSE;
|
||||
_edje_freeze_calc_count--;
|
||||
_edje_util_freeze_calc_count--;
|
||||
}
|
||||
_edje_entry_shutdown(ed);
|
||||
_edje_message_del(ed);
|
||||
|
@ -2004,6 +1963,6 @@ _cb_signal_repeat(void *data, Evas_Object *obj, const char *sig, const char *sou
|
|||
emsg.src = alias ? alias : new_src;
|
||||
emsg.data = NULL;
|
||||
if (ed_parent)
|
||||
_edje_message_send(ed_parent, EDJE_QUEUE_SCRIPT,
|
||||
_edje_util_message_send(ed_parent, EDJE_QUEUE_SCRIPT,
|
||||
EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
}
|
||||
}
|
|
@ -976,7 +976,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
if (!type) return 0;
|
||||
if (!strcmp(type, "none"))
|
||||
{
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_NONE, id, NULL);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_NONE, id, NULL);
|
||||
}
|
||||
else if (!strcmp(type, "sig"))
|
||||
{
|
||||
|
@ -990,7 +990,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
const char *str = luaL_checkstring(L, 3); // Stack usage [-0, +0, v]
|
||||
emsg = alloca(sizeof(Edje_Message_String));
|
||||
emsg->str = (char *)str;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "int"))
|
||||
{
|
||||
|
@ -998,7 +998,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
int val = luaL_checkinteger(L, 3); // Stack usage [-0, +0, v]
|
||||
emsg = alloca(sizeof(Edje_Message_Int));
|
||||
emsg->val = val;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_INT, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_INT, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "float"))
|
||||
{
|
||||
|
@ -1006,7 +1006,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
float val = luaL_checknumber(L, 3); // Stack usage [-0, +0, v]
|
||||
emsg = alloca(sizeof(Edje_Message_Float));
|
||||
emsg->val = val;
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_FLOAT, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_FLOAT, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "strset"))
|
||||
{
|
||||
|
@ -1029,7 +1029,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
lua_pop(L, 1); // Stack usage [-n, +0, -]
|
||||
emsg->str[i - 1] = (char *)str;
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_SET, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_SET, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "intset"))
|
||||
{
|
||||
|
@ -1050,7 +1050,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg->val[i - 1] = lua_tointeger(L, -1); // Stack usage [-0, +0, -]
|
||||
lua_pop(L, 1); // Stack usage [-n, +0, -]
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_INT_SET, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_INT_SET, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "floatset"))
|
||||
{
|
||||
|
@ -1071,7 +1071,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg->val[i - 1] = lua_tonumber(L, -1); // Stack usage [-0, +0, -]
|
||||
lua_pop(L, 1); // Stack usage [-n, +0, -]
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_FLOAT_SET, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_FLOAT_SET, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "strint"))
|
||||
{
|
||||
|
@ -1080,7 +1080,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg = alloca(sizeof(Edje_Message_String_Int));
|
||||
emsg->str = (char *)str;
|
||||
emsg->val = luaL_checkinteger(L, 4); // Stack usage [-0, +0, v]
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_INT, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_INT, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "strfloat"))
|
||||
{
|
||||
|
@ -1089,7 +1089,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg = alloca(sizeof(Edje_Message_String_Float));
|
||||
emsg->str = (char *)str;
|
||||
emsg->val = luaL_checknumber(L, 4); // Stack usage [-0, +0, v]
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_FLOAT, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_FLOAT, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "strintset"))
|
||||
{
|
||||
|
@ -1113,7 +1113,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg->val[i - 1] = lua_tointeger(L, -1); // Stack usage [-0, +0, -]
|
||||
lua_pop(L, 1); // Stack usage [-n, +0, -]
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_INT_SET, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_INT_SET, id, emsg);
|
||||
}
|
||||
else if (!strcmp(type, "strfloatset"))
|
||||
{
|
||||
|
@ -1137,7 +1137,7 @@ _elua_messagesend(lua_State *L) // Stack usage [-2, +2, ev] plus [-2, +2] for e
|
|||
emsg->val[i - 1] = lua_tonumber(L, -1); // Stack usage [-0, +0, -]
|
||||
lua_pop(L, 1); // Stack usage [-n, +0, -]
|
||||
}
|
||||
_edje_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_FLOAT_SET, id, emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_APP, EDJE_MESSAGE_STRING_FLOAT_SET, id, emsg);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -31,58 +31,28 @@ _edje_object_message_popornot_send(Evas_Object *obj, Edje_Message_Type type, int
|
|||
}
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_object_message_send(Evas_Object *obj, Edje_Message_Type type, int id, void *msg)
|
||||
EOLIAN void
|
||||
_edje_message_send(Eo *obj, Edje *_pd EINA_UNUSED, Edje_Message_Type type, int id, void *msg)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_message_send(type, id, msg));
|
||||
}
|
||||
|
||||
void
|
||||
_message_send(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||
{
|
||||
Edje_Message_Type type = va_arg(*list, Edje_Message_Type);
|
||||
int id = va_arg(*list, int);
|
||||
void *msg = va_arg(*list, void *);
|
||||
_edje_object_message_popornot_send(obj, type, id, msg, EINA_FALSE);
|
||||
}
|
||||
|
||||
|
||||
EAPI void
|
||||
edje_object_message_handler_set(Evas_Object *obj, Edje_Message_Handler_Cb func, void *data)
|
||||
EOLIAN void
|
||||
_edje_message_handler_set(Eo *obj EINA_UNUSED, Edje *ed, Edje_Message_Handler_Cb func, void *data)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_message_handler_set(func, data));
|
||||
}
|
||||
|
||||
void
|
||||
_message_handler_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Edje_Message_Handler_Cb func = va_arg(*list, Edje_Message_Handler_Cb);
|
||||
void *data = va_arg(*list, void *);
|
||||
Edje *ed = _pd;
|
||||
_edje_message_cb_set(ed, func, data);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_object_message_signal_process(Evas_Object *obj)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_message_signal_process());
|
||||
}
|
||||
|
||||
void
|
||||
_message_signal_process(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN void
|
||||
_edje_message_signal_process(Eo *obj EINA_UNUSED, Edje *ed)
|
||||
{
|
||||
Eina_List *l, *ln, *tmpq = NULL;
|
||||
Edje *ed;
|
||||
Edje *lookup_ed;
|
||||
Eina_List *lg;
|
||||
Edje_Message *em;
|
||||
Eina_List *groups = NULL;
|
||||
int gotos = 0;
|
||||
|
||||
ed = _pd;
|
||||
if (!ed) return;
|
||||
|
||||
groups = ed->groups;
|
||||
|
@ -548,7 +518,7 @@ _edje_message_propornot_send(Edje *ed, Edje_Queue queue, Edje_Message_Type type,
|
|||
}
|
||||
|
||||
void
|
||||
_edje_message_send(Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id, void *emsg)
|
||||
_edje_util_message_send(Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id, void *emsg)
|
||||
{
|
||||
_edje_message_propornot_send(ed, queue, type, id, emsg, EINA_FALSE);
|
||||
}
|
||||
|
@ -887,4 +857,4 @@ _edje_message_del(Edje *ed)
|
|||
}
|
||||
if (ed->message.num <= 0) return;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1941,9 +1941,9 @@ extern Eina_List *_edje_edjes;
|
|||
|
||||
extern char *_edje_fontset_append;
|
||||
extern FLOAT_T _edje_scale;
|
||||
extern int _edje_freeze_val;
|
||||
extern int _edje_freeze_calc_count;
|
||||
extern Eina_List *_edje_freeze_calc_list;
|
||||
extern int _edje_util_freeze_val;
|
||||
extern int _edje_util_freeze_calc_count;
|
||||
extern Eina_List *_edje_util_freeze_calc_list;
|
||||
|
||||
extern Eina_Bool _edje_password_show_last;
|
||||
extern FLOAT_T _edje_password_show_last_timeout;
|
||||
|
@ -2078,8 +2078,8 @@ void _edje_text_class_members_free(void);
|
|||
void _edje_text_class_hash_free(void);
|
||||
|
||||
Edje *_edje_fetch(const Evas_Object *obj) EINA_PURE;
|
||||
int _edje_freeze(Edje *ed);
|
||||
int _edje_thaw(Edje *ed);
|
||||
int _edje_util_freeze(Edje *ed);
|
||||
int _edje_util_thaw(Edje *ed);
|
||||
int _edje_block(Edje *ed);
|
||||
int _edje_unblock(Edje *ed);
|
||||
int _edje_block_break(Edje *ed);
|
||||
|
@ -2175,7 +2175,7 @@ void _edje_message_cb_set (Edje *ed, void (*func) (void *data,
|
|||
Edje_Message *_edje_message_new (Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id);
|
||||
void _edje_message_free (Edje_Message *em);
|
||||
void _edje_message_propornot_send (Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id, void *emsg, Eina_Bool prop);
|
||||
void _edje_message_send (Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id, void *emsg);
|
||||
void _edje_util_message_send (Edje *ed, Edje_Queue queue, Edje_Message_Type type, int id, void *emsg);
|
||||
void _edje_message_parameters_push (Edje_Message *em);
|
||||
void _edje_message_process (Edje_Message *em);
|
||||
void _edje_message_queue_process (void);
|
||||
|
|
|
@ -51,25 +51,11 @@ edje_object_propagate_callback_add(Evas_Object *obj, void (*func) (void *data, E
|
|||
eina_stringshare_del(src);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data)
|
||||
EOLIAN void
|
||||
_edje_signal_callback_add(Eo *obj EINA_UNUSED, Edje *ed, const char *emission, const char *source, Edje_Signal_Cb func, void *data)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_signal_callback_add(emission, source, (Edje_Signal_Cb)func, data));
|
||||
}
|
||||
|
||||
void
|
||||
_signal_callback_add(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
const char *emission = va_arg(*list, const char *);
|
||||
const char *source = va_arg(*list, const char *);
|
||||
Edje_Signal_Cb func = va_arg(*list, Edje_Signal_Cb);
|
||||
void *data = va_arg(*list, void *);
|
||||
|
||||
Edje *ed = _pd;
|
||||
|
||||
if ((!emission) || (!source) || (!func)) return;
|
||||
ed = _pd;
|
||||
|
||||
if (!ed) return;
|
||||
if (ed->delete_me) return;
|
||||
|
||||
|
@ -96,21 +82,12 @@ edje_object_signal_callback_del(Evas_Object *obj, const char *emission, const ch
|
|||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
_signal_callback_del(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
EOLIAN void*
|
||||
_edje_signal_callback_del(Eo *obj EINA_UNUSED, Edje *ed, const char *emission, const char *source, Edje_Signal_Cb func, void *data)
|
||||
{
|
||||
const char *emission = va_arg(*list, const char *);
|
||||
const char *source = va_arg(*list, const char *);
|
||||
Edje_Signal_Cb func = va_arg(*list, Edje_Signal_Cb);
|
||||
void *data = va_arg(*list, void *);
|
||||
void **ret = va_arg(*list, void **);
|
||||
Edje *ed = _pd;
|
||||
|
||||
if (ret) *ret = NULL;
|
||||
|
||||
if ((!emission) || (!source) || (!func)) return;
|
||||
if (!ed) return;
|
||||
if (ed->delete_me) return;
|
||||
if ((!emission) || (!source) || (!func)) return NULL;
|
||||
if (!ed) return NULL;
|
||||
if (ed->delete_me) return NULL;
|
||||
|
||||
emission = eina_stringshare_add(emission);
|
||||
source = eina_stringshare_add(source);
|
||||
|
@ -121,6 +98,8 @@ _signal_callback_del(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
|
||||
eina_stringshare_del(emission);
|
||||
eina_stringshare_del(source);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
EAPI void *
|
||||
|
@ -132,42 +111,19 @@ edje_object_signal_callback_del_full(Evas_Object *obj, const char *emission, con
|
|||
return ret;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
edje_object_signal_emit(Evas_Object *obj, const char *emission, const char *source)
|
||||
EOLIAN void
|
||||
_edje_signal_emit(Eo *obj EINA_UNUSED, Edje *ed, const char *emission, const char *source)
|
||||
{
|
||||
if (!obj) return;
|
||||
if (!eo_isa(obj, EDJE_OBJ_CLASS)) return;
|
||||
eo_do(obj, edje_obj_signal_emit(emission, source));
|
||||
}
|
||||
|
||||
void
|
||||
_signal_emit(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
const char *emission = va_arg(*list, const char *);
|
||||
const char *source = va_arg(*list, const char *);
|
||||
Edje *ed;
|
||||
|
||||
if ((!emission) || (!source)) return;
|
||||
ed = _pd;
|
||||
if (!ed) return;
|
||||
if (ed->delete_me) return;
|
||||
_edje_emit(ed, (char *)emission, (char *)source);
|
||||
}
|
||||
|
||||
/* FIXDOC: Verify/Expand */
|
||||
EAPI void
|
||||
edje_object_play_set(Evas_Object *obj, Eina_Bool play)
|
||||
EOLIAN void
|
||||
_edje_play_set(Eo *obj EINA_UNUSED, Edje *ed, Eina_Bool play)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_play_set(play));
|
||||
}
|
||||
|
||||
void
|
||||
_play_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Eina_Bool play = va_arg(*list, int);
|
||||
|
||||
Edje *ed = _pd;
|
||||
double t;
|
||||
Eina_List *l;
|
||||
Edje_Running_Program *runp;
|
||||
|
@ -202,41 +158,20 @@ _play_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
}
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_play_get(const Evas_Object *obj)
|
||||
EOLIAN Eina_Bool
|
||||
_edje_play_get(Eo *obj EINA_UNUSED, Edje *ed)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *)obj, edje_obj_play_get(&ret));
|
||||
return ret;
|
||||
}
|
||||
if (!ed) return EINA_FALSE;
|
||||
if (ed->delete_me) return EINA_FALSE;
|
||||
if (ed->paused) return EINA_FALSE;
|
||||
|
||||
void
|
||||
_play_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
const Edje *ed = _pd;
|
||||
*ret = EINA_FALSE;
|
||||
|
||||
if (!ed) return;
|
||||
if (ed->delete_me) return;
|
||||
if (ed->paused) return;
|
||||
*ret = EINA_TRUE;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
/* FIXDOC: Verify/Expand */
|
||||
EAPI void
|
||||
edje_object_animation_set(Evas_Object *obj, Eina_Bool on)
|
||||
EOLIAN void
|
||||
_edje_animation_set(Eo *obj, Edje *ed, Eina_Bool on)
|
||||
{
|
||||
if (!obj) return;
|
||||
eo_do(obj, edje_obj_animation_set(on));
|
||||
}
|
||||
|
||||
void
|
||||
_animation_set(Eo *obj, void *_pd, va_list *list)
|
||||
{
|
||||
Eina_Bool on = va_arg(*list, int);
|
||||
Edje *ed = _pd;
|
||||
Eina_List *l;
|
||||
unsigned int i;
|
||||
|
||||
|
@ -244,7 +179,7 @@ _animation_set(Eo *obj, void *_pd, va_list *list)
|
|||
if (ed->delete_me) return;
|
||||
_edje_block(ed);
|
||||
ed->no_anim = !on;
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
if (!on)
|
||||
{
|
||||
Eina_List *newl = NULL;
|
||||
|
@ -288,31 +223,18 @@ break_prog:
|
|||
edje_object_animation_set(rp->typedata.swallow->swallowed_object, on);
|
||||
}
|
||||
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unblock(ed);
|
||||
}
|
||||
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_object_animation_get(const Evas_Object *obj)
|
||||
EOLIAN Eina_Bool
|
||||
_edje_animation_get(Eo *obj EINA_UNUSED, Edje *ed)
|
||||
{
|
||||
if (!obj) return EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *)obj, edje_obj_animation_get(&ret));
|
||||
return ret;
|
||||
}
|
||||
if (!ed) return EINA_FALSE;
|
||||
if (ed->delete_me) return EINA_FALSE;
|
||||
if (ed->no_anim) return EINA_FALSE;
|
||||
|
||||
void
|
||||
_animation_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
const Edje *ed = _pd;
|
||||
*ret = EINA_FALSE;
|
||||
|
||||
if (!ed) return;
|
||||
if (ed->delete_me) return;
|
||||
if (ed->no_anim) return;
|
||||
*ret = EINA_TRUE;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
/* Private Routines */
|
||||
|
@ -330,7 +252,7 @@ _edje_program_run_iterate(Edje_Running_Program *runp, double tim)
|
|||
if (ed->delete_me) return EINA_FALSE;
|
||||
_edje_block(ed);
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
t = FROM_DOUBLE(tim - runp->start_time);
|
||||
total = runp->program->tween.time;
|
||||
t = DIV(t, total);
|
||||
|
@ -404,7 +326,7 @@ _edje_program_run_iterate(Edje_Running_Program *runp, double tim)
|
|||
}
|
||||
}
|
||||
}
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
if (!ed->walking_actions) free(runp);
|
||||
_edje_unblock(ed);
|
||||
|
@ -412,7 +334,7 @@ _edje_program_run_iterate(Edje_Running_Program *runp, double tim)
|
|||
}
|
||||
break_prog:
|
||||
_edje_recalc(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
_edje_unblock(ed);
|
||||
return EINA_TRUE;
|
||||
|
@ -428,7 +350,7 @@ _edje_program_end(Edje *ed, Edje_Running_Program *runp)
|
|||
|
||||
if (ed->delete_me) return;
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
EINA_LIST_FOREACH(runp->program->targets, l, pt)
|
||||
{
|
||||
Edje_Real_Part *rp;
|
||||
|
@ -468,7 +390,7 @@ _edje_program_end(Edje *ed, Edje_Running_Program *runp)
|
|||
}
|
||||
}
|
||||
// _edje_emit(ed, "program,stop", pname);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
if (free_runp) free(runp);
|
||||
}
|
||||
|
@ -540,7 +462,7 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
|
|||
recursions++;
|
||||
_edje_block(ed);
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
switch (pr->action)
|
||||
{
|
||||
case EDJE_ACTION_TYPE_STATE_SET:
|
||||
|
@ -1003,7 +925,7 @@ low_mem_current:
|
|||
}
|
||||
}
|
||||
break_prog:
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
recursions--;
|
||||
if (recursions == 0) recursion_limit = 0;
|
||||
|
@ -1176,9 +1098,9 @@ end:
|
|||
if (broadcast)
|
||||
edje_object_message_send(ed->obj, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
else
|
||||
_edje_message_send(ed, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
/* old send code - use api now
|
||||
_edje_message_send(ed, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
_edje_util_message_send(ed, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
EINA_LIST_FOREACH(ed->subobjs, l, obj)
|
||||
{
|
||||
Edje *ed2;
|
||||
|
@ -1186,7 +1108,7 @@ end:
|
|||
ed2 = _edje_fetch(obj);
|
||||
if (!ed2) continue;
|
||||
if (ed2->delete_me) continue;
|
||||
_edje_message_send(ed2, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
_edje_util_message_send(ed2, EDJE_QUEUE_SCRIPT, EDJE_MESSAGE_SIGNAL, 0, &emsg);
|
||||
}
|
||||
*/
|
||||
if (emsg.data && (--(emsg.data->ref) == 0))
|
||||
|
@ -1237,7 +1159,7 @@ _edje_emit_handle(Edje *ed, const char *sig, const char *src,
|
|||
// printf("EDJE EMIT: (%p) signal: \"%s\" source: \"%s\"\n", ed, sig, src);
|
||||
_edje_block(ed);
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
|
||||
if (ed->collection && ed->L)
|
||||
_edje_lua2_script_func_signal(ed, sig, src);
|
||||
|
@ -1390,7 +1312,7 @@ _edje_emit_handle(Edje *ed, const char *sig, const char *src,
|
|||
}
|
||||
}
|
||||
break_prog:
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
_edje_unblock(ed);
|
||||
}
|
||||
|
@ -1417,7 +1339,7 @@ _edje_emit_cb(Edje *ed, const char *sig, const char *src, Edje_Message_Signal_Da
|
|||
if (!ed->callbacks || !ed->callbacks->matches) return;
|
||||
|
||||
_edje_ref(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
_edje_block(ed);
|
||||
|
||||
ed->walking_callbacks++;
|
||||
|
@ -1472,7 +1394,7 @@ break_prog:
|
|||
ed->callbacks->matches->matches_count);
|
||||
|
||||
_edje_unblock(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include <Eo.h>
|
||||
|
||||
EAPI Eo_Op EDJE_OBJ_BASE_ID = EO_NOOP;
|
||||
|
||||
#ifdef MY_CLASS
|
||||
# undef MY_CLASS
|
||||
#endif
|
||||
|
@ -26,10 +24,9 @@ edje_object_add(Evas *evas)
|
|||
return e;
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_eo_base_constructor(Eo *obj, Edje *ed)
|
||||
{
|
||||
Edje *ed = class_data;
|
||||
ed->base = eo_data_ref(obj, EVAS_OBJ_SMART_CLIPPED_CLASS);
|
||||
|
||||
eo_do_super(obj, MY_CLASS, eo_constructor());
|
||||
|
@ -37,17 +34,16 @@ _edje_smart_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
|
|||
_edje_lib_ref();
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_destructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_eo_base_destructor(Eo *obj, Edje *class_data EINA_UNUSED)
|
||||
{
|
||||
eo_do_super(obj, MY_CLASS, eo_destructor());
|
||||
eo_data_unref(obj, class_data);
|
||||
}
|
||||
|
||||
static void
|
||||
_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
|
||||
EOLIAN static void
|
||||
_edje_eo_base_dbg_info_get(Eo *eo_obj, Edje *_pd EINA_UNUSED, Eo_Dbg_Info *root)
|
||||
{
|
||||
Eo_Dbg_Info *root = (Eo_Dbg_Info *) va_arg(*list, Eo_Dbg_Info *);
|
||||
eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
|
||||
Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME);
|
||||
|
||||
|
@ -76,10 +72,9 @@ _edje_color_class_free(void *data)
|
|||
|
||||
|
||||
/* Private Routines */
|
||||
static void
|
||||
_edje_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_add(Eo *obj, Edje *ed)
|
||||
{
|
||||
Edje *ed = _pd;
|
||||
Evas *tev = evas_object_evas_get(obj);
|
||||
|
||||
evas_event_freeze(tev);
|
||||
|
@ -119,11 +114,9 @@ _edje_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
evas_event_thaw_eval(tev);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_del(Eo *obj, Edje *ed)
|
||||
{
|
||||
Edje *ed = _pd;
|
||||
|
||||
_edje_block_violate(ed);
|
||||
ed->delete_me = 1;
|
||||
_edje_edjes = eina_list_remove(_edje_edjes, obj);
|
||||
|
@ -145,12 +138,9 @@ _edje_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
_edje_lib_unref();
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_move(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_move(Eo *obj EINA_UNUSED, Edje *ed, Evas_Coord x, Evas_Coord y)
|
||||
{
|
||||
Evas_Coord x = va_arg(*list, Evas_Coord);
|
||||
Evas_Coord y = va_arg(*list, Evas_Coord);
|
||||
Edje *ed = _pd;
|
||||
unsigned int i;
|
||||
|
||||
if ((ed->x == x) && (ed->y == y)) return;
|
||||
|
@ -243,13 +233,9 @@ _edje_limit_get(Edje *ed, Edje_Limit **limits, unsigned int length, Evas_Coord s
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_resize(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_resize(Eo *obj EINA_UNUSED, Edje *ed, Evas_Coord w, Evas_Coord h)
|
||||
{
|
||||
Evas_Coord w = va_arg(*list, Evas_Coord);
|
||||
Evas_Coord h = va_arg(*list, Evas_Coord);
|
||||
Edje *ed = _pd;
|
||||
|
||||
if ((w == ed->w) && (h == ed->h)) return;
|
||||
if (ed->collection)
|
||||
{
|
||||
|
@ -283,11 +269,9 @@ _edje_smart_resize(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
|
|||
_edje_emit(ed, "resize", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_show(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_show(Eo *obj, Edje *ed)
|
||||
{
|
||||
Edje *ed = _pd;
|
||||
|
||||
eo_do_super(obj, MY_CLASS, evas_obj_smart_show());
|
||||
if (evas_object_visible_get(obj)) return;
|
||||
if (_edje_script_only(ed))
|
||||
|
@ -303,11 +287,9 @@ _edje_smart_show(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
_edje_emit(ed, "show", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_hide(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_hide(Eo *obj, Edje *ed)
|
||||
{
|
||||
Edje *ed = _pd;
|
||||
|
||||
eo_do_super(obj, MY_CLASS, evas_obj_smart_hide());
|
||||
if (!evas_object_visible_get(obj)) return;
|
||||
if (_edje_script_only(ed))
|
||||
|
@ -323,23 +305,20 @@ _edje_smart_hide(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
_edje_emit(ed, "hide", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_calculate(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
|
||||
EOLIAN static void
|
||||
_edje_evas_smart_calculate(Eo *obj EINA_UNUSED, Edje *ed)
|
||||
{
|
||||
Edje *ed = _pd;
|
||||
_edje_recalc_do(ed);
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||
EOLIAN static Eina_Bool
|
||||
_edje_file_set(Eo *obj, Edje *_pd EINA_UNUSED, const char *file, const char *group)
|
||||
{
|
||||
const char *file = va_arg(*list, const char *);
|
||||
const char *group = va_arg(*list, const char *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
Eina_Bool ret;
|
||||
Eina_File *f = NULL;
|
||||
Eina_Array *nested;
|
||||
|
||||
if (ret) *ret = EINA_FALSE;
|
||||
ret = EINA_FALSE;
|
||||
|
||||
if (file)
|
||||
{
|
||||
|
@ -350,356 +329,38 @@ _edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
|||
|
||||
ed = _edje_fetch(obj);
|
||||
ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
|
||||
return ;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
nested = eina_array_new(8);
|
||||
|
||||
if (_edje_object_file_set_internal(obj, f, group, NULL, NULL, nested))
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
ret = EINA_TRUE;
|
||||
|
||||
eina_array_free(nested);
|
||||
eina_file_close(f);
|
||||
_edje_object_orientation_inform(obj);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_mmap_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||
EOLIAN static Eina_Bool
|
||||
_edje_mmap_set(Eo *obj, Edje *_pd EINA_UNUSED, const Eina_File *f, const char *group)
|
||||
{
|
||||
const Eina_File *f = va_arg(*list, Eina_File *);
|
||||
const char *group = va_arg(*list, const char *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
Eina_Bool ret;
|
||||
Eina_Array *nested;
|
||||
|
||||
if (ret) *ret = EINA_FALSE;
|
||||
ret = EINA_FALSE;
|
||||
|
||||
nested = eina_array_new(8);
|
||||
|
||||
if (_edje_object_file_set_internal(obj, f, group, NULL, NULL, nested))
|
||||
if (ret) *ret = EINA_TRUE;
|
||||
ret = EINA_TRUE;
|
||||
|
||||
eina_array_free(nested);
|
||||
_edje_object_orientation_inform(obj);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
_edje_smart_class_constructor(Eo_Class *klass)
|
||||
{
|
||||
const Eo_Op_Func_Description func_desc[] = {
|
||||
EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _edje_smart_constructor),
|
||||
EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR), _edje_smart_destructor),
|
||||
EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DBG_INFO_GET), _dbg_info_get),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _edje_smart_add),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _edje_smart_del),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_MOVE), _edje_smart_move),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW), _edje_smart_show),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_HIDE), _edje_smart_hide),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _edje_smart_resize),
|
||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_CALCULATE), _edje_smart_calculate),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SCALE_SET), _scale_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SCALE_GET), _scale_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MIRRORED_GET), _mirrored_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MIRRORED_SET), _mirrored_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_DATA_GET), _data_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_FREEZE), _freeze),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_THAW), _thaw),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_COLOR_CLASS_SET), _color_class_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_COLOR_CLASS_GET), _color_class_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_CLASS_SET), _text_class_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXISTS), _part_exists),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_OBJECT_GET), _part_object_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_GEOMETRY_GET), _part_geometry_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_ITEM_PROVIDER_SET), _item_provider_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_CHANGE_CB_SET), _text_change_cb_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_PUSH), _part_text_style_user_push),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_POP), _part_text_style_user_pop),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_PEEK), _part_text_style_user_peek),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SET), _part_text_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_GET), _part_text_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_ESCAPED_SET), _part_text_escaped_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_UNESCAPED_SET), _part_text_unescaped_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_UNESCAPED_GET), _part_text_unescaped_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECTION_GET), _part_text_selection_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_NONE), _part_text_select_none),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ALL), _part_text_select_all),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INSERT), _part_text_insert),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_APPEND), _part_text_append),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_ANCHOR_LIST_GET), _part_text_anchor_list_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_ANCHOR_GEOMETRY_GET), _part_text_anchor_geometry_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_ITEM_LIST_GET), _part_text_item_list_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_ITEM_GEOMETRY_GET), _part_text_item_geometry_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_GEOMETRY_GET), _part_text_cursor_geometry_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_USER_INSERT), _part_text_user_insert),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ALLOW_SET), _part_text_select_allow_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ABORT), _part_text_select_abort),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_BEGIN), _part_text_select_begin),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_EXTEND), _part_text_select_extend),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_IMF_CONTEXT_GET), _part_text_imf_context_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_NEXT), _part_text_cursor_next),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_PREV), _part_text_cursor_prev),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_UP), _part_text_cursor_up),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_DOWN), _part_text_cursor_down),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_BEGIN_SET), _part_text_cursor_begin_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_END_SET), _part_text_cursor_end_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_COPY), _part_text_cursor_copy),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_LINE_BEGIN_SET), _part_text_cursor_line_begin_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_LINE_END_SET), _part_text_cursor_line_end_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_COORD_SET), _part_text_cursor_coord_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_IS_FORMAT_GET), _part_text_cursor_is_format_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_IS_VISIBLE_FORMAT_GET), _part_text_cursor_is_visible_format_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_CONTENT_GET), _part_text_cursor_content_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_POS_SET), _part_text_cursor_pos_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_POS_GET), _part_text_cursor_pos_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_IMF_CONTEXT_RESET), _part_text_imf_context_reset),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_SET), _part_text_input_panel_layout_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_GET), _part_text_input_panel_layout_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_SET), _part_text_input_panel_layout_variation_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_GET), _part_text_input_panel_layout_variation_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_AUTOCAPITAL_TYPE_SET), _part_text_autocapital_type_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_AUTOCAPITAL_TYPE_GET), _part_text_autocapital_type_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_PREDICTION_ALLOW_SET), _part_text_prediction_allow_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_PREDICTION_ALLOW_GET), _part_text_prediction_allow_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_ENABLED_SET), _part_text_input_panel_enabled_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_ENABLED_GET), _part_text_input_panel_enabled_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW), _part_text_input_panel_show),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_HIDE), _part_text_input_panel_hide),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LANGUAGE_SET), _part_text_input_panel_language_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LANGUAGE_GET), _part_text_input_panel_language_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_IMDATA_SET), _part_text_input_panel_imdata_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_IMDATA_GET), _part_text_input_panel_imdata_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_TYPE_SET), _part_text_input_panel_return_key_type_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_TYPE_GET), _part_text_input_panel_return_key_type_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_DISABLED_SET), _part_text_input_panel_return_key_disabled_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_DISABLED_GET), _part_text_input_panel_return_key_disabled_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW_ON_DEMAND_SET), _part_text_input_panel_show_on_demand_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW_ON_DEMAND_GET), _part_text_input_panel_show_on_demand_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_ADD), _text_insert_filter_callback_add),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_DEL), _text_insert_filter_callback_del),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_DEL_FULL), _text_insert_filter_callback_del_full),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_ADD), _text_markup_filter_callback_add),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_DEL), _text_markup_filter_callback_del),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_DEL_FULL), _text_markup_filter_callback_del_full),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_SWALLOW), _part_swallow),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_UNSWALLOW), _part_unswallow),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_SWALLOW_GET), _part_swallow_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIZE_MIN_GET), _size_min_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIZE_MAX_GET), _size_max_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_CALC_FORCE), _calc_force),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIZE_MIN_CALC), _size_min_calc),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PARTS_EXTENDS_CALC), _parts_extends_calc),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIZE_MIN_RESTRICTED_CALC), _size_min_restricted_calc),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_STATE_GET), _part_state_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_DIR_GET), _part_drag_dir_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_VALUE_SET), _part_drag_value_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_VALUE_GET), _part_drag_value_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_SIZE_SET), _part_drag_size_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_SIZE_GET), _part_drag_size_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_STEP_SET), _part_drag_step_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_STEP_GET), _part_drag_step_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE_SET), _part_drag_page_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE_GET), _part_drag_page_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_STEP), _part_drag_step),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE), _part_drag_page),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_APPEND), _part_box_append),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_PREPEND), _part_box_prepend),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_INSERT_BEFORE), _part_box_insert_before),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_INSERT_AT), _part_box_insert_at),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE), _part_box_remove),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE_AT), _part_box_remove_at),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE_ALL), _part_box_remove_all),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_ACCESS_PART_LIST_GET), _access_part_list_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TABLE_CHILD_GET), _part_table_child_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TABLE_PACK), _part_table_pack),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TABLE_UNPACK), _part_table_unpack),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TABLE_COL_ROW_SIZE_GET), _part_table_col_row_size_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_TABLE_CLEAR), _part_table_clear),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PERSPECTIVE_SET), _perspective_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PERSPECTIVE_GET), _perspective_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PRELOAD), _preload),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_UPDATE_HINTS_SET), _update_hints_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_UPDATE_HINTS_GET), _update_hints_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXTERNAL_OBJECT_GET), _part_external_object_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_SET), _part_external_param_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_GET), _part_external_param_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXTERNAL_CONTENT_GET), _part_external_content_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_TYPE_GET), _part_external_param_type_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_FILE_SET), _edje_smart_file_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MMAP_SET), _edje_smart_mmap_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_FILE_GET), _file_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_LOAD_ERROR_GET), _load_error_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MESSAGE_SEND), _message_send),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MESSAGE_HANDLER_SET), _message_handler_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_MESSAGE_SIGNAL_PROCESS), _message_signal_process),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIGNAL_CALLBACK_ADD), _signal_callback_add),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIGNAL_CALLBACK_DEL), _signal_callback_del),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_SIGNAL_EMIT), _signal_emit),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PLAY_SET), _play_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_PLAY_GET), _play_get),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_ANIMATION_SET), _animation_set),
|
||||
EO_OP_FUNC(EDJE_OBJ_ID(EDJE_OBJ_SUB_ID_ANIMATION_GET), _animation_get),
|
||||
EO_OP_FUNC_SENTINEL
|
||||
};
|
||||
|
||||
eo_class_funcs_set(klass, func_desc);
|
||||
|
||||
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
|
||||
}
|
||||
|
||||
static const Eo_Op_Description op_desc[] = {
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SCALE_SET, "Set the scaling factor for a given Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SCALE_GET, "Get a given Edje object's scaling factor."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MIRRORED_GET, "Get the RTL orientation for this object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MIRRORED_SET, "Set the RTL orientation for this object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_DATA_GET, "Retrive an <b>EDC data field's value</b> from a given Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_FREEZE, "Freezes the Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_THAW, "Thaws the Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_COLOR_CLASS_SET, "Sets the object color class."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_COLOR_CLASS_GET, "Gets the object color class."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_CLASS_SET, "Sets Edje text class."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXISTS, "Check if an Edje part exists in a given Edje object's group"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_OBJECT_GET, "Get a handle to the Evas object implementing a given Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_GEOMETRY_GET, "Retrieve the geometry of a given Edje part, in a given Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_ITEM_PROVIDER_SET, "Set the function that provides item objects for named items in an edje entry text"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_CHANGE_CB_SET, "Set the object text callback."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_PUSH, "Set the style of the"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_POP, "Delete the top style form the user style stack."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_STYLE_USER_PEEK, "Return the text of the object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SET, "Sets the text for an object part"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_GET, "Return the text of the object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_ESCAPED_SET, "Sets the text for an object part, but converts HTML escapes to UTF8"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_UNESCAPED_SET, "Sets the raw (non escaped) text for an object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_UNESCAPED_GET, "Returns the text of the object part, without escaping."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECTION_GET, "Return the selection text of the object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_NONE, "Set the selection to be none."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ALL, "Set the selection to be everything."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INSERT, "Insert text for an object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_APPEND, "Insert text for an object part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_ANCHOR_LIST_GET, "Return a list of char anchor names."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_ANCHOR_GEOMETRY_GET, "Return a list of Evas_Textblock_Rectangle anchor rectangles."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_ITEM_LIST_GET, "Return a list of char item names."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_ITEM_GEOMETRY_GET, "Return item geometry."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_GEOMETRY_GET, "Returns the cursor geometry of the part relative to the edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_USER_INSERT, "This function inserts text as if the user has inserted it."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ALLOW_SET, "Enables selection if the entry is an EXPLICIT selection mode"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_ABORT, "Aborts any selection action on a part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_BEGIN, "Starts selecting at current cursor position"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_SELECT_EXTEND, "Extends the current selection to the current cursor position"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_IMF_CONTEXT_GET, "Get the input method context in entry."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_NEXT, "Advances the cursor to the next cursor position."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_PREV, "Moves the cursor to the previous char"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_UP, "Move the cursor to the char above the current cursor position."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_DOWN, "Moves the cursor to the char below the current cursor position."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_BEGIN_SET, "Moves the cursor to the beginning of the text part"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_END_SET, "Moves the cursor to the end of the text part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_COPY, "Copy the cursor to another cursor."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_LINE_BEGIN_SET, "Move the cursor to the beginning of the line."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_LINE_END_SET, "Move the cursor to the end of the line."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_COORD_SET, "Position the given cursor to a X,Y position."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_IS_FORMAT_GET, "Returns whether the cursor points to a format."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_IS_VISIBLE_FORMAT_GET, "Return true if the cursor points to a visible format"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_CONTENT_GET, "Returns the content (char) at the cursor position."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_POS_SET, "Sets the cursor position to the given value"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_CURSOR_POS_GET, "Retrieves the current position of the cursor"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_IMF_CONTEXT_RESET, "Reset the input method context if needed."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_SET, "Set the layout of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_GET, "Get the layout of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_SET, "Set the variation of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LAYOUT_VARIATION_GET, "Get the variation of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_AUTOCAPITAL_TYPE_SET, "Set the autocapitalization type on the immodule."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_AUTOCAPITAL_TYPE_GET, "Retrieves the autocapitalization type"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_PREDICTION_ALLOW_SET, "Set whether the prediction is allowed or not."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_PREDICTION_ALLOW_GET, "Get whether the prediction is allowed or not."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_ENABLED_SET, "Sets the attribute to show the input panel automatically."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_ENABLED_GET, "Retrieve the attribute to show the input panel automatically."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW, "Show the input panel (virtual keyboard) based on the input panel property such as layout, autocapital types, and so on."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_HIDE, "Hide the input panel (virtual keyboard)."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LANGUAGE_SET, "Set the language mode of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_LANGUAGE_GET, "Get the language mode of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_IMDATA_SET, "Set the input panel-specific data to deliver to the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_IMDATA_GET, "Get the specific data of the current active input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_TYPE_SET, "Set the return key type. This type is used to set string or icon on the return key of the input panel."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_TYPE_GET, "Get the return key type."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_DISABLED_SET, "Set the return key on the input panel to be disabled."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_RETURN_KEY_DISABLED_GET, "Get whether the return key on the input panel should be disabled or not."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW_ON_DEMAND_SET, "Set the attribute to show the input panel in case of only an user's explicit Mouse Up event."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TEXT_INPUT_PANEL_SHOW_ON_DEMAND_GET, "Get the attribute to show the input panel in case of only an user's explicit Mouse Up event."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_ADD, "Add a filter function for newly inserted text."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_DEL, "Delete a function from the filter list."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_INSERT_FILTER_CALLBACK_DEL_FULL, "Delete a function and matching user data from the filter list."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_ADD, "Add a markup filter function for newly inserted text."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_DEL, "Delete a function from the markup filter list."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_TEXT_MARKUP_FILTER_CALLBACK_DEL_FULL, "Delete a function and matching user data from the markup filter list."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_SWALLOW, "Swallows an object into one of the Edje object @c SWALLOW"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_UNSWALLOW, "Unswallow an object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_SWALLOW_GET, "Get the object currently swallowed by a part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIZE_MIN_GET, "Get the minimum size specified -- as an EDC property -- for a"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIZE_MAX_GET, "Get the maximum size specified -- as an EDC property -- for a"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_CALC_FORCE, "Force a Size/Geometry calculation."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIZE_MIN_CALC, "Calculate the minimum required size for a given Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PARTS_EXTENDS_CALC, "Calculate the geometry of the region, relative to a given Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIZE_MIN_RESTRICTED_CALC, "Calculate the minimum required size for a given Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_STATE_GET, "Returns the state of the Edje part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_DIR_GET, "Determine dragable directions."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_VALUE_SET, "Set the dragable object location."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_VALUE_GET, "Get the dragable object location."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_SIZE_SET, "Set the dragable object size."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_SIZE_GET, "Get the dragable object size."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_STEP_SET, "Sets the drag step increment."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_STEP_GET, "Gets the drag step increment values."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE_SET, "Sets the page step increments."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE_GET, "Gets the page step increments."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_STEP, "Steps the dragable x,y steps."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_DRAG_PAGE, "Pages x,y steps."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_APPEND, "Appends an object to the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_PREPEND, "Prepends an object to the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_INSERT_BEFORE, "Adds an object to the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_INSERT_AT, "Inserts an object to the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE, "Removes an object from the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE_AT, "Removes an object from the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_BOX_REMOVE_ALL, "Removes all elements from the box."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_ACCESS_PART_LIST_GET, "Retrieve a list all accessibility part names"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TABLE_CHILD_GET, "Retrieve a child from a table"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TABLE_PACK, "Packs an object into the table."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TABLE_UNPACK, "Removes an object from the table."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TABLE_COL_ROW_SIZE_GET, "Gets the number of columns and rows the table has."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_TABLE_CLEAR, "Removes all object from the table."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PERSPECTIVE_SET, "Set the given perspective object on this Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PERSPECTIVE_GET, "Get the current perspective used on this Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PRELOAD, "Preload the images on the Edje Object in the background."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_UPDATE_HINTS_SET, "Edje will automatically update the size hints on itself."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_UPDATE_HINTS_GET, "Wether or not Edje will update size hints on itself."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXTERNAL_OBJECT_GET, "Get the object created by this external part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_SET, "Set the parameter for the external part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_GET, "Get the parameter for the external part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXTERNAL_CONTENT_GET, "Get an object contained in an part of type EXTERNAL"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PART_EXTERNAL_PARAM_TYPE_GET, "Facility to query the type of the given parameter of the given part."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_FILE_SET, "Sets the @b EDJ file (and group within it) to load an Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MMAP_SET, "Sets the @b EDJ file (and group within it) to load an Edje"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_FILE_GET, "Get the file and group name that a given Edje object is bound to"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_LOAD_ERROR_GET, "Gets the (last) file loading error for a given Edje object"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MESSAGE_SEND, "Send an (Edje) message to a given Edje object"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MESSAGE_HANDLER_SET, "Set an Edje message handler function for a given Edje object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_MESSAGE_SIGNAL_PROCESS, "Process an object's message queue."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIGNAL_CALLBACK_ADD, "Add a callback for an arriving Edje signal, emitted by"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIGNAL_CALLBACK_DEL, "Remove a signal-triggered callback from an object."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_SIGNAL_EMIT, "Send/emit an Edje signal to a given Edje object"),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PLAY_SET, "Set the Edje object to playing or paused states."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_PLAY_GET, "Get the Edje object's state."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_ANIMATION_SET, "Set the object's animation state."),
|
||||
EO_OP_DESCRIPTION(EDJE_OBJ_SUB_ID_ANIMATION_GET, "Get the Edje object's animation state."),
|
||||
EO_OP_DESCRIPTION_SENTINEL
|
||||
};
|
||||
|
||||
static const Eo_Class_Description edje_smart_class_desc = {
|
||||
EO_VERSION,
|
||||
MY_CLASS_NAME,
|
||||
EO_CLASS_TYPE_REGULAR,
|
||||
EO_CLASS_DESCRIPTION_OPS(&EDJE_OBJ_BASE_ID, op_desc, EDJE_OBJ_SUB_ID_LAST),
|
||||
NULL,
|
||||
sizeof(Edje),
|
||||
_edje_smart_class_constructor,
|
||||
NULL
|
||||
};
|
||||
|
||||
EO_DEFINE_CLASS(edje_object_class_get, &edje_smart_class_desc, EVAS_OBJ_SMART_CLIPPED_CLASS, NULL);
|
||||
|
||||
#include "edje.eo.c"
|
File diff suppressed because it is too large
Load Diff
|
@ -77,7 +77,7 @@ _edje_var_anim_cb(void *data EINA_UNUSED)
|
|||
ed = eina_list_data_get(tl);
|
||||
_edje_ref(ed);
|
||||
_edje_block(ed);
|
||||
_edje_freeze(ed);
|
||||
_edje_util_freeze(ed);
|
||||
tl = eina_list_remove(tl, ed);
|
||||
if (!ed->var_pool) continue;
|
||||
tl2 = NULL;
|
||||
|
@ -159,7 +159,7 @@ _edje_var_anim_cb(void *data EINA_UNUSED)
|
|||
if (!ed->var_pool->animators)
|
||||
_edje_anim_list = eina_list_remove(_edje_anim_list, ed);
|
||||
_edje_unblock(ed);
|
||||
_edje_thaw(ed);
|
||||
_edje_util_thaw(ed);
|
||||
_edje_unref(ed);
|
||||
}
|
||||
if (!_edje_anim_list)
|
||||
|
|
Loading…
Reference in New Issue