Enlightenment CVS committal

Author  : technikolor
Project : web
Module  : e

Dir     : web/e/data


Modified Files:
        estyle.html 


Log Message:
Filled out the estyle page.

===================================================================
RCS file: /cvsroot/enlightenment/web/e/data/estyle.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- estyle.html 22 Oct 2003 10:53:09 -0000      1.2
+++ estyle.html 22 Oct 2003 11:43:08 -0000      1.3
@@ -5,5 +5,69 @@
 <p>Estyle is an EVAS based text stylization library that makes adding stylized text 
with effects to any EVAS application simple.  The API is small and easy to learn, 
loading text effects from an Estyle EDB file (eg: blurred.style.db) and applying them 
to your EVAS text.</p>
 
 <p>Estyle.db's consist of several key/value pairs describing how the text to be 
rendered should be manuipulated using multiple layers.  Each layer can have a diffrent 
color, alpha channel value, size, offset in both x and y independantly, and stacking 
value.  Manipulating each of these values and becoming creative with stacking each 
layer a number of interesting and unique effects can be added to your text, in a 
simple, reusable manner.</p>
+
+<hr>
+<center><b>A Code Example</b></center>
+
+<div class="code">
+<pre>
+#include &lt;Ecore_Evas.h&gt;
+#include &lt;Ecore.h&gt;
+#include &lt;Estyle.h&gt;
+
+#define WIDTH 400
+#define HEIGHT 200
+
+        Ecore_Evas  *   ee;
+        Evas        *   evas;
+        Evas_Object *   base_rect;
+        Evas_Object *   estyle;
+
+int main(){
+
+        ecore_init();
+
+   ee = ecore_evas_software_x11_new(NULL, 0,  0, 0, WIDTH, HEIGHT);
+        ecore_evas_title_set(ee, "Estyle Viewer");
+        ecore_evas_borderless_set(ee, 0);
+        ecore_evas_show(ee);
+
+
+   evas = ecore_evas_get(ee);
+       evas_font_path_append(evas, "/usr/X11/lib/X11/fonts/TrueType/");
+
+
+   base_rect = evas_object_rectangle_add(evas);
+        evas_object_resize(base_rect, (double)WIDTH, (double)HEIGHT);
+        evas_object_color_set(base_rect, 244, 243, 242, 255);
+        evas_object_show(base_rect);
+</pre>
+<font color="red">
+<pre>
+
+   estyle = estyle_new(evas, "my text", "raised");
+        evas_object_color_set(estyle, 255, 0, 0, 255);
+        estyle_set_font(estyle, "CREAMPUF", 64);
+        evas_object_show(estyle);
+</pre>
+</font>
+<pre>
+
+        ecore_main_loop_begin();
+
+        return 0;
+}
+</pre>
+</div>
+
+<p>This code is rendered in the following manner: gcc `ecore-config --cflags --libs` 
`ewd-config --libs --cflags` `estyle-config --libs --cflags` estyle-viewer.c</p>
+
+<p>The result of the above code looks like this:</p>
+<img src="img/estyle-example.png">
+
+<p>The following default Estyles are provided with the library source: bold, outline, 
plain, raised and shadow.  With some tinkering and imagination your estyles can make 
your text look just the way you'd like without having to use pre-rendered images.  The 
best way to learn how to manipulate Estyle DB's is to edit the an included Estyle 
directly and experiment with the effects of diffrent chanegs.  You can edit Estyle 
DB's using an EDB editor (ie: edb_gtk_ed).</p>
+
+<p>Estyle is owned by <a href="team.html">RbdPngn</a>.</p>
 @end@
+
 @bottom@




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to