diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
commit | aaea166135ace01709f7e0be64f40be80f4107ec (patch) | |
tree | 0e794ef7a723e4aaf909b841a6816e405b4ceca1 /libs/canvas/poly_line.cc | |
parent | 1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff) |
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'libs/canvas/poly_line.cc')
-rw-r--r-- | libs/canvas/poly_line.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libs/canvas/poly_line.cc b/libs/canvas/poly_line.cc new file mode 100644 index 0000000000..e48082817d --- /dev/null +++ b/libs/canvas/poly_line.cc @@ -0,0 +1,38 @@ +#include "pbd/xml++.h" +#include "canvas/poly_line.h" + +using namespace ArdourCanvas; + +PolyLine::PolyLine (Group* parent) + : Item (parent) + , PolyItem (parent) +{ + +} + +void +PolyLine::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const +{ + if (_outline) { + setup_outline_context (context); + render_path (area, context); + context->stroke (); + } +} + + +XMLNode * +PolyLine::get_state () const +{ + XMLNode* node = new XMLNode ("PolyLine"); + add_poly_item_state (node); + add_outline_state (node); + return node; +} + +void +PolyLine::set_state (XMLNode const * node) +{ + set_poly_item_state (node); + set_outline_state (node); +} |