forked from enlightenment/efl
add embryo params for proxy src visible/clip
hermet please look at these, they don't seem to work right for some reason
This commit is contained in:
parent
11b43dad4b
commit
4ea0e29c6f
|
@ -225,7 +225,9 @@ enum State_Param
|
|||
STATE_PHYSICS_MOV_FREEDOM_ANG = 54,
|
||||
STATE_PHYSICS_BACK_CULL = 55,
|
||||
STATE_PHYSICS_Z = 56,
|
||||
STATE_PHYSICS_DEPTH = 57
|
||||
STATE_PHYSICS_DEPTH = 57,
|
||||
STATE_PROXY_SRC_VISIBLE = 58,
|
||||
STATE_PROXY_SRC_CLIP = 59
|
||||
};
|
||||
|
||||
native set_state_val(part_id, State_Param:p, ...);
|
||||
|
|
|
@ -2290,6 +2290,30 @@ _edje_embryo_fn_set_state_val(Embryo_Program *ep, Embryo_Cell *params)
|
|||
GETINT(rp->custom->description->persp.focal, params[3]);
|
||||
|
||||
break;
|
||||
case EDJE_STATE_PARAM_PROXY_SRC_CLIP:
|
||||
{
|
||||
Edje_Part_Description_Proxy *proxy;
|
||||
|
||||
if ((rp->part->type != EDJE_PART_TYPE_PROXY)) return 0;
|
||||
CHKPARAM(3);
|
||||
|
||||
proxy = (Edje_Part_Description_Proxy*) rp->custom->description;
|
||||
GETINT(proxy->proxy.source_clip, params[3]);
|
||||
|
||||
break;
|
||||
}
|
||||
case EDJE_STATE_PARAM_PROXY_SRC_VISIBLE:
|
||||
{
|
||||
Edje_Part_Description_Proxy *proxy;
|
||||
|
||||
if ((rp->part->type != EDJE_PART_TYPE_PROXY)) return 0;
|
||||
CHKPARAM(3);
|
||||
|
||||
proxy = (Edje_Part_Description_Proxy*) rp->custom->description;
|
||||
GETINT(proxy->proxy.source_visible, params[3]);
|
||||
|
||||
break;
|
||||
}
|
||||
#ifdef HAVE_EPHYSICS
|
||||
case EDJE_STATE_PARAM_PHYSICS_MASS:
|
||||
CHKPARAM(3);
|
||||
|
@ -2864,6 +2888,30 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, Embryo_Cell *params)
|
|||
SETINT(rp->custom->description->persp.focal, params[3]);
|
||||
|
||||
break;
|
||||
case EDJE_STATE_PARAM_PROXY_SRC_CLIP:
|
||||
{
|
||||
Edje_Part_Description_Proxy *proxy;
|
||||
|
||||
if ((rp->part->type != EDJE_PART_TYPE_PROXY)) return 0;
|
||||
CHKPARAM(3);
|
||||
|
||||
proxy = (Edje_Part_Description_Proxy*) rp->custom->description;
|
||||
SETINT(proxy->proxy.source_clip, params[3]);
|
||||
|
||||
break;
|
||||
}
|
||||
case EDJE_STATE_PARAM_PROXY_SRC_VISIBLE:
|
||||
{
|
||||
Edje_Part_Description_Proxy *proxy;
|
||||
|
||||
if ((rp->part->type != EDJE_PART_TYPE_PROXY)) return 0;
|
||||
CHKPARAM(3);
|
||||
|
||||
proxy = (Edje_Part_Description_Proxy*) rp->custom->description;
|
||||
SETINT(proxy->proxy.source_visible, params[3]);
|
||||
|
||||
break;
|
||||
}
|
||||
#ifdef HAVE_EPHYSICS
|
||||
case EDJE_STATE_PARAM_PHYSICS_MASS:
|
||||
CHKPARAM(3);
|
||||
|
|
|
@ -410,7 +410,9 @@ typedef struct _Edje_Signal_Callback_Custom Edje_Signal_Callback_Custom;
|
|||
#define EDJE_STATE_PARAM_PHYSICS_BACK_CULL 55
|
||||
#define EDJE_STATE_PARAM_PHYSICS_Z 56
|
||||
#define EDJE_STATE_PARAM_PHYSICS_DEPTH 57
|
||||
#define EDJE_STATE_PARAM_LAST 58
|
||||
#define EDJE_STATE_PARAM_PROXY_SRC_VISIBLE 58
|
||||
#define EDJE_STATE_PARAM_PROXY_SRC_CLIP 59
|
||||
#define EDJE_STATE_PARAM_LAST 60
|
||||
|
||||
#define EDJE_ENTRY_EDIT_MODE_NONE 0
|
||||
#define EDJE_ENTRY_EDIT_MODE_SELECTABLE 1
|
||||
|
|
Loading…
Reference in New Issue