depth(0),
zoom(0),
time_offset(0),
- extra_reference(false)
+ extra_reference(false),
+ origin_static(false),
+ focus_static(false),
+ canvas_static(false),
+ zoom_static(false),
+ offset_static(false),
+ children_lock_static(true)
{
children_lock=false;
muck_with_time_=true;
Layer::get_times_vfunc(set);
}
+
+
+bool
+Layer_PasteCanvas::set_param_static(const String ¶m, const bool x)
+{
+ SET_STATIC(origin, x)
+ SET_STATIC(focus, x)
+ SET_STATIC(canvas, x)
+ SET_STATIC(zoom, x)
+ SET_STATIC(offset, x)
+ SET_STATIC(children_lock, x)
+
+ return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Layer_PasteCanvas::get_param_static(const String ¶m) const
+{
+ GET_STATIC(origin)
+ GET_STATIC(focus)
+ GET_STATIC(canvas)
+ GET_STATIC(zoom)
+ GET_STATIC(offset)
+ GET_STATIC(children_lock)
+
+ return Layer_Composite::get_param_static(param);
+}
//! signal connection for children. Seems to be used only here
sigc::connection child_changed_connection;
+ bool origin_static;
+ bool focus_static;
+ bool canvas_static;
+ bool zoom_static;
+ bool offset_static;
+ bool children_lock_static;
+
// Nasty hack: Remember whether we called an extra ref() when
// setting the canvas, so we know whether to call an extra unref()
// when finished with the canvas.
virtual bool set_param(const String & param, const synfig::ValueBase &value);
//! Get the value of the specified parameter. \see Layer::get_param
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;
//! Gets the blend color of the Layer in the context at \a pos
virtual Color get_color(Context context, const Point &pos)const;
//! Sets the time of the Paste Canvas Layer and those under it