1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>
// Includes ====================================================================
#include <Magick++/Drawable.h>
// Using =======================================================================
using namespace boost::python;
// Module ======================================================================
void Export_pyste_src_Coordinate()
{
class_< Magick::Coordinate, boost::noncopyable >("Coordinate", init< >())
.def(init< double, double >())
.def("x", (void (Magick::Coordinate::*)(double) )&Magick::Coordinate::x)
.def("x", (double (Magick::Coordinate::*)() const)&Magick::Coordinate::x)
.def("y", (void (Magick::Coordinate::*)(double) )&Magick::Coordinate::y)
.def("y", (double (Magick::Coordinate::*)() const)&Magick::Coordinate::y)
.def( self >= self )
.def( self <= self )
.def( self > self )
.def( self < self )
.def( self == self )
.def( self != self )
;
}
|