Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests
Modified Files:
ewl_text.c
Log Message:
- add option to make text wrap as word, char or none
- add wrap to the test case
- NOTE wrap doesn't seem to be working correctly at the moment
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_text.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_text.c 6 Sep 2006 17:11:07 -0000 1.15
+++ ewl_text.c 6 Sep 2006 17:47:45 -0000 1.16
@@ -194,6 +194,15 @@
ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_RIGHT);
ewl_text_text_append(EWL_TEXT(o), "Align Right.\n");
+ ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_LEFT);
+ ewl_text_wrap_set(EWL_TEXT(o), EWL_TEXT_WRAP_WORD);
+ ewl_text_text_append(EWL_TEXT(o), "This is a long line of text that
should "
+ "be wrapped on a word boundary,
hopefully.\n");
+
+ ewl_text_wrap_set(EWL_TEXT(o), EWL_TEXT_WRAP_CHAR);
+ ewl_text_text_append(EWL_TEXT(o), "This is a long line of text that
should "
+ "be wrapped on a character boundary,
hopefully.\n");
+
#if 0
printf("-- DUMP --\n");
ewl_text_tree_dump((EWL_TEXT(o))->formatting, "");
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs