Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/data/include
Modified Files:
edje.inc
Log Message:
busy adding some MEAT to edje's embryo script support. just added
"persistent" variables - ie tied to each instance of an edje object and you
can save/load via get_int() set_int() get_float() set_float(), get_str(),
get_strlen() and set_str(). the values are fetched/stored wherever you do
these calls. you need a public variable declaration to indicate you want to
use a global var, and use this variable handle as the variable index - edje
will init it for you.
e_logo.edc has some examples...
:)
this solves being able to keep state like if a check button is enabled or
disabled etc. etc. etc.
then i guess its onto the rest of the calls...
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/data/include/edje.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edje.inc 28 Mar 2004 05:26:17 -0000 1.1
+++ edje.inc 30 Mar 2004 10:30:35 -0000 1.2
@@ -1,3 +1,12 @@
-native tst();
-native emit(sig[], src[]);
-
+/* edje exported calls */
+native get_int (id);
+native set_int (id, val);
+native Float:get_float (id);
+native set_float (id, Float:val);
+native get_strlen(id);
+native get_str (id, dst[], maxlen);
+native set_str (id, str[]);
+
+native tst();
+native emit(sig[], src[]);
+
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs