mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Canvas: add aliases to Canvas::Rect for comprehension
This commit is contained in:
parent
2423994029
commit
e0c58a2736
1 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ struct LIBCANVAS_API Duple
|
|||
Coord x;
|
||||
Coord y;
|
||||
|
||||
/* alias */
|
||||
|
||||
Coord width() const { return x; }
|
||||
Coord height() const { return y; }
|
||||
|
||||
Duple translate (const Duple& t) const throw() {
|
||||
return Duple (canvas_safe_add (x, t.x), canvas_safe_add (y, t.y));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue