c90149496efe39e4d920a03f313a407c72a616db
[mussa.git] / py / glsequence.cpp
1 #include <boost/python.hpp>
2 using namespace boost::python;
3 #include <boost/shared_ptr.hpp>
4
5 #include "alg/annotation_colors.hpp"
6 #include "alg/glsequence.hpp"
7 #include "alg/sequence.hpp"
8
9 void export_glsequence()
10 {
11   class_<GlSequence>("GlSequence", 
12       init<
13         boost::shared_ptr<Sequence>, 
14         boost::shared_ptr<AnnotationColors> 
15       >())
16     .def(init<GlSequence &>())
17     .def("draw", &GlSequence::draw)
18     .def("sequence", &GlSequence::sequence )
19     .add_property("x", &GlSequence::x, &GlSequence::setX)
20     .add_property("y", &GlSequence::y, &GlSequence::setY)
21     .add_property("size", &GlSequence::size)
22   ;
23 }