mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-16 02:16:09 +01:00
add Item::canvas_origin() for convenience
This commit is contained in:
parent
ba8d0e32f7
commit
153befa92c
2 changed files with 7 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ public:
|
|||
}
|
||||
|
||||
Duple window_origin() const;
|
||||
Duple canvas_origin() const;
|
||||
|
||||
ScrollGroup* scroll_parent() const { return _scroll_parent; }
|
||||
|
||||
|
|
|
|||
|
|
@ -82,6 +82,12 @@ Item::~Item ()
|
|||
}
|
||||
}
|
||||
|
||||
Duple
|
||||
Item::canvas_origin () const
|
||||
{
|
||||
return item_to_canvas (Duple (0,0));
|
||||
}
|
||||
|
||||
Duple
|
||||
Item::window_origin () const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue