Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/test


Modified Files:
        selections.c 


Log Message:
Fix multi-line index selection. Add the start of multi-selection overlap
testing.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/selections.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- selections.c        23 Jul 2003 06:46:17 -0000      1.1
+++ selections.c        23 Jul 2003 20:04:39 -0000      1.2
@@ -22,7 +22,8 @@
 
 int main(int argc, const char **argv)
 {
-       Etox_Selection *selected;
+       Etox_Selection *selected1;
+       Etox_Selection *selected2;
 
        ecore_init();
        ecore_app_args_set(argc, argv);
@@ -30,7 +31,7 @@
        if (!ecore_evas_init())
                return -1;
 
-       ee= ecore_evas_software_x11_new(NULL, 0, 0, 0, 200, 200);
+       ee= ecore_evas_software_x11_new(NULL, 0, 0, 0, 500, 200);
        if (!ee)
                return 1;
 
@@ -45,28 +46,42 @@
 
        evas_object_image_file_set(bg, IM "bg.png", NULL);
        evas_object_move(bg, 0, 0);
-       evas_object_resize(bg, 200, 200);
-       evas_object_image_fill_set(bg, 0, 0, 200, 200);
+       evas_object_resize(bg, 500, 200);
+       evas_object_image_fill_set(bg, 0, 0, 500, 200);
        evas_object_show(bg);
 
        /* Create message etox */
-       etox = etox_new_all(evas, 10, 10, 190 , 190, 255, ETOX_ALIGN_LEFT);
+       etox = etox_new_all(evas, 10, 10, 480, 180, 255, ETOX_ALIGN_LEFT);
        etox_context_set_align(etox, ETOX_ALIGN_LEFT);
        etox_context_set_font(etox, "sinon", 14);
-       etox_context_set_color(etox, 255, 0, 0, 255);
+       etox_context_set_color(etox, 0, 255, 0, 255);
+       etox_context_set_style(etox, "shadow");
        /* etox_context_set_soft_wrap(etox, 1); */
        etox_set_text(etox, msg);
        etox_set_alpha(etox, 255);
        etox_set_layer(etox, 1000);
        etox_show(etox);
 
-       selected = etox_select_index(etox, 0, 10);
-       printf("Selected %p\n", selected);
-       if (selected) {
-               printf("Selected from %p to %p\n", selected->start.bit,
-                               selected->end.bit);
-               etox_selection_set_font(selected, "morpheus", 20);
+       selected1 = etox_select_index(etox, 9, 60);
+       printf("Selected %p\n", selected1);
+       if (selected1) {
+               printf("Selected from %p to %p\n", selected1->start.bit,
+                               selected1->end.bit);
+               etox_selection_set_font(selected1, "morpheus", 20);
+               etox_selection_set_style(selected1, "outline");
+               etox_selection_set_color(selected1, 255, 0, 0, 255);
        }
+
+       /*
+       selected2 = etox_select_index(etox, 9, 15);
+       printf("Selected %p\n", selected2);
+       if (selected2) {
+               printf("Selected from %p to %p\n", selected2->start.bit,
+                               selected2->end.bit);
+               etox_selection_set_style(selected2, "shadow");
+               etox_selection_set_color(selected2, 0, 0, 255, 255);
+       }
+       */
 
        ecore_main_loop_begin();
 




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