Code

Draw limiting bounding box in geometriy tool
[inkscape.git] / src / color.h
index e9394360900841a8c4199c9d62679fcad763e381..8fcc9443883f1dac2c2cfdd960ffaf7fad707dc3 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <gdk/gdktypes.h>
+#include <string>
 
 /* Useful composition macros */
 
@@ -42,7 +43,7 @@ struct SPColor {
     SPColor( SPColor const& other );
     SPColor( float r, float g, float b );
     SPColor( guint32 value );
-    ~SPColor();
+    virtual ~SPColor();
 
     SPColor& operator= (SPColor const& other);
 
@@ -55,6 +56,8 @@ struct SPColor {
     guint32 toRGBA32( gint alpha ) const;
     guint32 toRGBA32( gdouble alpha ) const;
 
+    std::string toString() const;
+
     SVGICCColor* icc;
     union {
         float c[3];