initial commit of hand merging, plus getting "ancient" waf script to work correctly
[ardour.git] / libs / canvas / poly_line.cc
1 #include "pbd/xml++.h"
2 #include "canvas/poly_line.h"
3
4 using namespace ArdourCanvas;
5
6 PolyLine::PolyLine (Group* parent)
7         : Item (parent)
8         , PolyItem (parent)
9 {
10
11 }
12
13 void
14 PolyLine::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
15 {
16         if (_outline) {
17                 setup_outline_context (context);
18                 render_path (area, context);
19                 context->stroke ();
20         }
21 }
22
23
24 XMLNode *
25 PolyLine::get_state () const
26 {
27         XMLNode* node = new XMLNode ("PolyLine");
28         add_poly_item_state (node);
29         add_outline_state (node);
30         return node;
31 }
32
33 void
34 PolyLine::set_state (XMLNode const * node)
35 {
36         set_poly_item_state (node);
37         set_outline_state (node);
38 }