Re: Gnome::Art::Point replacement to Goocanvas





El vie, 29 de mar 2013 a las 5:59 ,Hydexon <cristopher7sosa gmail com> escribió:
Hello!, i'm rewritting the FlowChart component, porting from Gtkmm 2 and GnomeCanvasmm to Gtkmm 3 and Goocanvasmm, and i need to know what are correct replacement the following code:

 virtual Gnome::Art::Point src_connection_point() = 0;
 virtual Gnome::Art::Point dst_connection_point(const Gnome::Art::Point& src) = 0;
 virtual Gnome::Art::Point connection_point_vector(double dx, double dy) = 0;

i see the Goocanvasmm refernce manual and the only similar are Goocanvas::Points.

Thanks.

Needs also a replacement of the Gnome::Canvas::Shape like this in the Connectable.hpp:

/** A handle on a connection line to allow mouse interaction. */
 struct Handle : public Gnome::Canvas::Group {
  explicit Handle(Gnome::Canvas::Group& parent)
   : Gnome::Canv as::Group(parent), shape(NULL), text(NULL) {}
  ~Handle() { delete shape; delete text; }
  Gnome::Canvas::Shape* shape;
  Gnome::Canvas::Text* text;
 }* _handle;

Also i warned because the Bezier Paths doesn't exist in Goocanvas anymore, i think.

I forgot, i'm using goocanvasmm 2.0.

Thanks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]