Blur_Layer::Blur_Layer():
Layer_Composite(1.0,Color::BLEND_STRAIGHT),
size(0.1,0.1),
- type(Blur::FASTGAUSSIAN)
+ type(Blur::FASTGAUSSIAN),
+ size_static(false),
+ type_static(true)
{
}
return Layer_Composite::get_param(param);
}
+bool
+Blur_Layer::set_param_static(const String ¶m, const bool x)
+{
+
+ SET_STATIC(size, x)
+ SET_STATIC(type, x)
+
+ return Layer_Composite::set_param_static(param, x);
+}
+
+bool
+Blur_Layer::get_param_static(const String ¶m)const
+{
+
+ GET_STATIC(size)
+ GET_STATIC(type)
+
+ return Layer_Composite::get_param_static(param);
+}
+
+
Color
Blur_Layer::get_color(Context context, const Point &pos)const
{
synfig::Point size;
int type;
+ bool size_static;
+ bool type_static;
+
public:
Blur_Layer();
virtual ValueBase get_param(const String & param)const;
+ virtual bool set_param_static(const String ¶m, const bool x);
+ virtual bool get_param_static(const String ¶m) const;
+
virtual Color get_color(Context context, const Point &pos)const;
virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;