Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_main.c 


Log Message:


the basics of dragables work. signals are generated properly. there's calls
to set/get dragable size relative to its confie and is value relative to its
cofine, query what directiosn a dragable can be dragged. you shoudl be able
to do scrollbars - except scroll arrows internally in edje making the
scrollbar move.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_main.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- edje_main.c 9 Aug 2003 03:32:21 -0000       1.27
+++ edje_main.c 15 Aug 2003 13:35:25 -0000      1.28
@@ -448,6 +448,13 @@
 cb (void *data, Evas_Object *o, const char *sig, const char *src)
 {
 //   printf("CALLBACK for %p %p \"%s\" \"%s\"\n", data, o, sig, src);
+   if (!strcmp(sig, "drag"))
+     {
+       double x, y;
+       
+       edje_object_part_drag_value_get(o, src, &x, &y);
+       printf("Drag %3.3f %3.3f\n", x, y);
+     }
 }
 
 void
@@ -680,6 +687,9 @@
    edje_object_file_set(o, file, name);
 //   edje_object_signal_callback_add(o, "do_it", "the_source", cb, NULL);
 //   edje_object_signal_callback_add(o, "mouse,*", "logo", cb, NULL);
+//   edje_object_signal_callback_add(o, "*", "*", cb, NULL);
+//   edje_object_part_drag_size_set(o, "dragable", 0.01, 0.5);
+//   edje_object_part_drag_value_set(o, "dragable", 0.5, 0.5);
    evas_object_move(o, 10 + 10, 10 + 20);
    evas_object_show(o);
    edje_object_size_min_get(o, &(de->minw), &(de->minh));




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to