scalar(1),
editable(false),
radius_(false),
- tangent_(false)
+ tangent_(false),
+ hover_(false)
{ duck_count++; _DuckCounter::counter++; }
Duck::Duck(const synfig::Point &point):
bool editable;
bool radius_;
bool tangent_;
+ bool hover_;
synfig::TransformStack transform_stack_;
//! \writeme
bool get_tangent()const { return tangent_; }
+ //! Sets whether to show the duck as if it is being hovered over
+ void set_hover(bool h) { hover_=h; }
+
+ //! Retrieves whether to show the duck as if it is being hovered over
+ bool get_hover()const { return hover_; }
+
void set_connect_duck(const etl::handle<Duck>& x) { connect_duck=x; }
void set_box_duck(const etl::handle<Duck>& x) { box_duck=x; }
}
bool selected(get_work_area()->duck_is_selected(*iter));
- bool hover(*iter==hover_duck);
+ bool hover(*iter==hover_duck || (*iter)->get_hover());
shadow = selected?Gtk::SHADOW_IN:Gtk::SHADOW_OUT;
point2_duck->set_radius(true);
point2_duck->set_scalar(-1);
point2_duck->set_type(Duck::TYPE_RADIUS);
+ point2_duck->set_hover(true);
get_work_area()->add_duck(point2_duck);
return Smach::RESULT_ACCEPT;