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