Enlightenment CVS committal

Author  : dresb
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_cc_handlers.c 


Log Message:
included missing parts of the reference 

===================================================================
RCS file: /cvs/e/e17/libs/edje/src/bin/edje_cc_handlers.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- edje_cc_handlers.c  24 Mar 2008 08:22:00 -0000      1.82
+++ edje_cc_handlers.c  29 Mar 2008 16:13:57 -0000      1.83
@@ -3844,6 +3844,48 @@
    ed->text.elipsis = parse_float_range(0, 0.0, 1.0);
 }
 
+/**
+    @page edcref
+
+    @block
+        text
+    @context
+        part {
+            description {
+                ..
+                gradient {
+                    type:    "linear";
+                    spectrum "spectrumName";
+                    rel1 {
+                        relative: 0.0 0.0;
+                        offset:     0   0;
+                    }
+                    rel2
+                        relative: 1.0 1.0;
+                        offset:    -1  -1;
+                    }
+                }
+                ..
+            }
+        }
+    @description
+        A gradient block is used to display a given "spectrum" inside a 
+        container. The container's shape is a rect but this not mean the
+        gradient is restricted to a rectangular shape.  Gradients can use 
+        "rel1" and "rel2" blocks to layout the initial and final point 
+        relatively inside the container.
+    @endblock
+
+    @property
+        type
+    @parameters
+        [the name of the type]
+    @effect
+        Alters the gradient's rendering algorithm between:
+            @li linear (default)  
+            @li radial
+    @endproperty
+*/
 static void
 st_collections_group_parts_part_description_gradient_type(void)
 {
@@ -3869,6 +3911,18 @@
    ed->gradient.type  = parse_str(0);
 }
 
+/**
+    @page edcref
+
+    @property
+        spectrum
+    @parameters
+        [an existing spectrum name]
+    @effect
+        Causes the gradient to display the colors as defined by a given 
+        "spectrum" in the "spectra" block.
+    @endproperty
+*/
 static void
 st_collections_group_parts_part_description_gradient_spectrum(void)
 {
@@ -3901,6 +3955,19 @@
      }
 }
 
+/**
+    @page edcref
+
+    @property
+        relative
+    @parameters
+        [a relative X coordinate] [a relative Y coordinate]
+    @effect
+        Inside rel1 places the initial point, or first color, of the gradient 
+        relatively to the gradient's container. Inside rel2 places the final 
+        point, or last color.
+    @endproperty
+*/
 static void
 st_collections_group_parts_part_description_gradient_rel1_relative(void)
 {
@@ -3931,6 +3998,19 @@
      }
 }
 
+/**
+    @page edcref
+
+    @property
+        offset
+    @parameters
+        [X axis] [Y axis]
+    @effect
+        Inside rel1 moves the initial point, or first color, of the gradient
+        a fixed number of pixels along either axis. Inside rel2 moves the final
+        point, or last color.
+    @endproperty
+*/
 static void
 st_collections_group_parts_part_description_gradient_rel1_offset(void)
 {



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to