diff --git a/src/sp-stop.h b/src/sp-stop.h
index 3203d8f7432edeb15eb9d72e9979eca719478dc7..692e67c5b1778eb2aaa3d417c736e6127e689b3a 100644 (file)
--- a/src/sp-stop.h
+++ b/src/sp-stop.h
*/
#include <glib/gtypes.h>
-//#include <glib-object.h>
+#include <glibmm/ustring.h>
#include "sp-object.h"
#include "color.h"
-#include "sp-stop-fns.h"
class SPObjectClass;
class SPColor;
+struct SPStop;
+struct SPStopClass;
+
+#define SP_TYPE_STOP (sp_stop_get_type())
+#define SP_STOP(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_STOP, SPStop))
+#define SP_STOP_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SP_TYPE_STOP, SPStopClass))
+#define SP_IS_STOP(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_STOP))
+#define SP_IS_STOP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), SP_TYPE_STOP))
+
+GType sp_stop_get_type();
+
/** Gradient stop. */
struct SPStop : public SPObject {
/// \todo fixme: Should be SPSVGPercentage
/// \todo fixme: Implement SPSVGNumber or something similar.
gfloat opacity;
+
+
+ static SPColor readStopColor( Glib::ustring const &styleStr, guint32 dfl = 0 );
+
+ SPStop* getNextStop();
+ SPStop* getPrevStop();
+
+ SPColor getEffectiveColor() const;
};
/// The SPStop vtable.
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :