gegl r2269 - in trunk: . gegl/property-types



Author: ok
Date: Thu May  1 08:43:57 2008
New Revision: 2269
URL: http://svn.gnome.org/viewvc/gegl?rev=2269&view=rev

Log:
* gegl/property-types/gegl-color.[ch]: (gegl_color_float4): added
utility accessor function (might be removed again).


Modified:
   trunk/ChangeLog
   trunk/gegl/property-types/gegl-color.c
   trunk/gegl/property-types/gegl-color.h

Modified: trunk/gegl/property-types/gegl-color.c
==============================================================================
--- trunk/gegl/property-types/gegl-color.c	(original)
+++ trunk/gegl/property-types/gegl-color.c	Thu May  1 08:43:57 2008
@@ -249,6 +249,15 @@
   return FALSE;
 }
 
+const gfloat *
+gegl_color_float4 (GeglColor *self)
+{
+  GeglColorPrivate *priv;
+  /*g_return_val_if_fail (GEGL_IS_COLOR (self), NULL);*/
+  priv = GEGL_COLOR_GET_PRIVATE (self);
+  return &priv->rgba_color[0];
+}
+
 void
 gegl_color_get_rgba (GeglColor *self,
                      gfloat    *r,

Modified: trunk/gegl/property-types/gegl-color.h
==============================================================================
--- trunk/gegl/property-types/gegl-color.h	(original)
+++ trunk/gegl/property-types/gegl-color.h	Thu May  1 08:43:57 2008
@@ -58,6 +58,7 @@
                                                 gfloat       b,
                                                 gfloat       a);
 
+const gfloat*gegl_color_float4                 (GeglColor *color);
 
 #define GEGL_TYPE_PARAM_COLOR           (gegl_param_color_get_type ())
 #define GEGL_IS_PARAM_SPEC_COLOR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GEGL_TYPE_PARAM_COLOR))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]