bool Action::ValueNodeLinkDisconnect::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="parent_value_node" && param.get_type()==Param::TYPE_VALUENODE) { parent_value_node=LinkableValueNode::Handle::cast_dynamic(param.get_value_node()); return static_cast<bool>(parent_value_node); } if(name=="index" && param.get_type()==Param::TYPE_INTEGER) { index=param.get_integer(); return true; } if(name=="time" && param.get_type()==Param::TYPE_TIME) { time=param.get_time(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::LayerMove::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="layer" && param.get_type()==Param::TYPE_LAYER) { layer=param.get_layer(); return true; } if(name=="new_index" && param.get_type()==Param::TYPE_INTEGER) { new_index=param.get_integer(); return true; } if(name=="dest_canvas" && param.get_type()==Param::TYPE_CANVAS) { dest_canvas=param.get_canvas(); return true; } return Action::CanvasSpecific::set_param(name,param); }