summaryrefslogtreecommitdiffstats
path: root/src/sp-stop.h
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-03-08 01:31:49 +0000
committerJon A. Cruz <jon@joncruz.org>2010-03-08 01:31:49 +0000
commite0a60a7ea64f3576bac00b84c440769c7221e1c3 (patch)
treec47840592712bb1b5fd80c5892912dc403cc30a5 /src/sp-stop.h
parentMove new "NodesShow*" action to be with the existing ones on the toolbar. (diff)
downloadinkscape-e0a60a7ea64f3576bac00b84c440769c7221e1c3.tar.gz
inkscape-e0a60a7ea64f3576bac00b84c440769c7221e1c3.zip
Cleanup of gradients and stops.
(bzr r9163)
Diffstat (limited to 'src/sp-stop.h')
-rw-r--r--src/sp-stop.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/sp-stop.h b/src/sp-stop.h
index 3203d8f74..bf6893db1 100644
--- a/src/sp-stop.h
+++ b/src/sp-stop.h
@@ -9,14 +9,23 @@
*/
#include <glib/gtypes.h>
-//#include <glib-object.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
@@ -32,6 +41,10 @@ struct SPStop : public SPObject {
/// \todo fixme: Implement SPSVGNumber or something similar.
gfloat opacity;
+
+
+ SPStop* getNextStop();
+ SPStop* getPrevStop();
};
/// The SPStop vtable.