Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_feBlend_set ( SPObject object,
unsigned int  key,
gchar const *  value 
) [static]

Sets a specific value in the SPFeBlend.

Definition at line 165 of file blend.cpp.

{
    SPFeBlend *feBlend = SP_FEBLEND(object);
    (void)feBlend;

    Inkscape::Filters::FilterBlendMode mode;
    int input;
    switch(key) {
      /*DEAL WITH SETTING ATTRIBUTES HERE*/
        case SP_ATTR_MODE:
            mode = sp_feBlend_readmode(value);
            if (mode != feBlend->blend_mode) {
                feBlend->blend_mode = mode;
                object->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);
            }
            break;
        case SP_ATTR_IN2:
            input = sp_filter_primitive_read_in(feBlend, value);
            if (input != feBlend->in2) {
                feBlend->in2 = input;
                object->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);
            }
            break;
        default:
            if (((SPObjectClass *) feBlend_parent_class)->set)
                ((SPObjectClass *) feBlend_parent_class)->set(object, key, value);
            break;
    }

}


Generated by  Doxygen 1.6.0   Back to index