mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
add new TimeRectangle to ArdourCanvas
This commit is contained in:
parent
90825340c9
commit
56994e785e
2 changed files with 66 additions and 7 deletions
|
|
@ -79,7 +79,11 @@ public:
|
|||
ArdourCanvas::Rectangle::BOTTOM));
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
void render_self (Rect const &, Cairo::RefPtr<Cairo::Context>, Rect) const;
|
||||
Rect get_self_for_render () const;
|
||||
|
||||
private:
|
||||
/** Our rectangle; note that x0 may not always be less than x1
|
||||
* and likewise with y0 and y1.
|
||||
*/
|
||||
|
|
@ -87,6 +91,18 @@ private:
|
|||
What _outline_what;
|
||||
};
|
||||
|
||||
class TimeRectangle : public Rectangle
|
||||
{
|
||||
public:
|
||||
TimeRectangle (Canvas* c) : Rectangle (c) {}
|
||||
TimeRectangle (Canvas* c, Rect const & r) : Rectangle (c, r) {}
|
||||
TimeRectangle (Item* i) : Rectangle (i) {}
|
||||
TimeRectangle (Item* i, Rect const & r) : Rectangle (i, r) {}
|
||||
|
||||
void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
|
||||
void compute_bounding_box () const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue