Getter/Setter as Property with Pyste
Hi, I try to generate Code with Pyste. The wrapped classes have lots of getter and setter functions. The generated code looks like this: .def("borderColor", (void (Magick::Image::*)(const Magick::Color&) )&Magick::Image::borderColor) .def("borderColor", (Magick::Color (Magick::Image::*)() const)&Magick::Image::borderColor) Is there a simple way to tell Pyste to generate an add_property call for 'borderColor' instead of the two functions? regards, Achim
Hi Achim, sorry about the delay, Achim Domma wrote:
Hi,
I try to generate Code with Pyste. The wrapped classes have lots of getter and setter functions. The generated code looks like this:
.def("borderColor", (void (Magick::Image::*)(const Magick::Color&) )&Magick::Image::borderColor) .def("borderColor", (Magick::Color (Magick::Image::*)() const)&Magick::Image::borderColor)
Is there a simple way to tell Pyste to generate an add_property call for 'borderColor' instead of the two functions?
Right now there is no direct support for that, sorry! 8( Regards, Nicodemus.
participants (2)
-
Achim Domma -
Nicodemus