1 #include <boost/python.hpp>
2 using namespace boost::python;
4 #include "alg/annotation_colors.hpp"
5 #include "alg/glsequence.hpp"
6 #include "alg/sequence.hpp"
8 void export_glsequence()
11 class_<GlSequence>("GlSequence", init<Sequence &, AnnotationColors &>())
12 .def(init<GlSequence &>())
13 .def("draw", &GlSequence::draw)
14 .def("sequence", &GlSequence::sequence,
15 return_internal_reference<>())
16 .add_property("x", &GlSequence::x, &GlSequence::setX)
17 .add_property("y", &GlSequence::y, &GlSequence::setY)
18 .add_property("length", &GlSequence::length)