add Item::redraw() convenience method
This commit is contained in:
parent
c3f1369cfd
commit
ecd29c6d70
@ -56,6 +56,8 @@ public:
|
||||
Item (Group *, Duple);
|
||||
virtual ~Item ();
|
||||
|
||||
void redraw () const;
|
||||
|
||||
/** Render this item to a Cairo context.
|
||||
* @param area Area to draw, in **window** coordinates
|
||||
*
|
||||
|
@ -328,6 +328,14 @@ Item::width () const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
Item::redraw () const
|
||||
{
|
||||
if (_bounding_box && _canvas) {
|
||||
_canvas->request_redraw (item_to_canvas (_bounding_box.get()));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Item::begin_change ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user