summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2013-12-10 12:40:42 +0000
committertavmjong-free <tavmjong@free.fr>2013-12-10 12:40:42 +0000
commitcd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe (patch)
tree9835ce4a35ad3ff6d0f9b073f08a3f6aefc463cb /src/sp-item.cpp
parentAdd JessyInk namespace. (diff)
downloadinkscape-cd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe.tar.gz
inkscape-cd9fae530b0cf7e48a7b8cb41ef5efb7e99717fe.zip
New CSS blending modes (outside of filters).
Define WITH_CSSBLEND to try out. Note: The modes are defined in CSS Compositing and Blending Level 1. To do: GUI. Isolate SVG drawing from Inkscape background (i.e. page border). (bzr r12845)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index c6daa853c..5e126f486 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -599,6 +599,8 @@ void SPItem::update(SPCtx* /*ctx*/, guint flags) {
if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
for (SPItemView *v = item->display; v != NULL; v = v->next) {
v->arenaitem->setOpacity(SP_SCALE24_TO_FLOAT(object->style->opacity.value));
+ v->arenaitem->setIsolation( object->style->isolation.value );
+ v->arenaitem->setBlendMode( object->style->blend_mode.value );
v->arenaitem->setVisible(!item->isHidden());
}
}
@@ -1023,6 +1025,9 @@ Inkscape::DrawingItem *SPItem::invoke_show(Inkscape::Drawing &drawing, unsigned
display = sp_item_view_new_prepend(display, this, flags, key, ai);
ai->setTransform(transform);
ai->setOpacity(SP_SCALE24_TO_FLOAT(style->opacity.value));
+ ai->setIsolation( style->isolation.value );
+ ai->setBlendMode( style->blend_mode.value );
+ //ai->setCompositeOperator( style->composite_op.value );
ai->setVisible(!isHidden());
ai->setSensitive(sensitive);
if (clip_ref->getObject()) {