do the right thing when TrackingText::offset is changed

This commit is contained in:
Paul Davis
2014-11-25 20:44:26 +02:00
parent d9cb8a807e
commit 697d8a2732
2 changed files with 10 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ public:
*/
virtual void add_items_at_point (Duple /*point*/, std::vector<Item const *>& items) const;
/** Return true if the item covers @param point, false otherwise.
*
* The point is in window coordinates
*/
virtual bool covers (Duple const &) const;
/** Update _bounding_box and _bounding_box_dirty */

View File

@@ -128,17 +128,23 @@ TrackingText::show_and_track (bool tx, bool ty)
void
TrackingText::set_x_offset (double o)
{
begin_change ();
offset.x = o;
end_change ();
}
void
TrackingText::set_y_offset (double o)
{
begin_change ();
offset.y = o;
end_change ();
}
void
TrackingText::set_offset (Duple const & d)
{
begin_change ();
offset = d;
end_change ();
}