Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/data/include


Modified Files:
        edje.inc 


Log Message:


ok - examples of how to hook some embryo calls in - help appreciated with the
nice big LIST! :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/data/include/edje.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- edje.inc    30 Mar 2004 10:30:35 -0000      1.2
+++ edje.inc    2 Apr 2004 03:55:37 -0000       1.3
@@ -1,4 +1,31 @@
-/* edje exported calls */
+/* Edje exported calls */
+
+/************************************************/
+/* Basic data storage/retrieval (it's explicit) */
+/************************************************/
+/* Example:
+ * 
+ * In the "global" script section of a group:
+ * 
+ * script {
+ *   public global_value1;
+ *   public global_value2;
+ *   public global_value3;
+ * }
+ * 
+ * In the program script sections, OR in any global functions/routines:
+ * ( several examples of setting/getting values)
+ * 
+ * set_int(global_value1, 7);
+ * set_float(global_value2, 42.0);
+ * set_str(global_value3, "I am a smelly fish!");
+ * new value1 = get_int(global_value1);
+ * new Float:value2 = get_float(global_value2);
+ * new value3[100]; get_str(global_value3, value3, 100);
+ * set_int(global_value1, value1);
+ * set_float(global_value2, value2);
+ * set_str(global_value3, value3);
+ */
 native       get_int   (id);
 native       set_int   (id, val);
 native Float:get_float (id);
@@ -6,7 +33,23 @@
 native       get_strlen(id);
 native       get_str   (id, dst[], maxlen);
 native       set_str   (id, str[]);
-      
-native       tst();
-native       emit(sig[], src[]);
 
+/***********************************************************/
+/* Edje utility calls for dealign with edjes/programs etc. */
+/***********************************************************/
+/* Example:
+ * 
+ * emit("this_thing", "clicked");
+ * emit("state", "playing");
+ * 
+ * set_state(PART:"logo", "glowing", 0.0);
+ * set_state(PART:"button", "default", 0.0);
+ * 
+ * set_tween_state(PART:"button", 0.5, "default", 0.0, "clicked", 0.0);
+ * 
+ * run_program(PROGRAM:"program_name");
+ */
+native       emit           (sig[], src[]);
+native       set_state      (part_id, state[], Float:state_val);
+native       set_tween_state(part_id, Float:tween, state1[], Float:state1_val, 
state2[], Float:state2_val);
+native       run_program    (program_id);




-------------------------------------------------------
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

Reply via email to