summaryrefslogtreecommitdiffstats
path: root/src/pen-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pen-context.h')
-rw-r--r--src/pen-context.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/pen-context.h b/src/pen-context.h
index fb5c22371..68a2665e0 100644
--- a/src/pen-context.h
+++ b/src/pen-context.h
@@ -6,12 +6,7 @@
*/
#include "draw-context.h"
-
-namespace Inkscape {
-namespace LivePathEffect {
-class Effect;
-}
-}
+#include "live_effects/effect.h"
#define SP_TYPE_PEN_CONTEXT (sp_pen_context_get_type())
#define SP_PEN_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_PEN_CONTEXT, SPPenContext))
@@ -59,6 +54,12 @@ struct SPPenContextClass : public SPEventContextClass { };
GType sp_pen_context_get_type();
+inline bool sp_pen_context_has_waiting_LPE(SPPenContext *pc) {
+ // note: waiting_LPE_type is defined in SPDrawContext
+ return (pc->waiting_LPE != NULL ||
+ pc->waiting_LPE_type != Inkscape::LivePathEffect::INVALID_LPE);
+}
+
#endif /* !SEEN_PEN_CONTEXT_H */