equal
deleted
inserted
replaced
7 #include <libgnomecanvasmm.h> |
7 #include <libgnomecanvasmm.h> |
8 #include <libgnomecanvasmm/polygon.h> |
8 #include <libgnomecanvasmm/polygon.h> |
9 |
9 |
10 class BrokenEdge : public Gnome::Canvas::Line |
10 class BrokenEdge : public Gnome::Canvas::Line |
11 { |
11 { |
|
12 Gnome::Canvas::Polygon * arrow; |
|
13 Gnome::Art::Point * my_points; |
|
14 |
|
15 ///Indicates whether the button of mouse is pressed or not |
|
16 bool isbutton; |
|
17 |
|
18 ///At this location was the mousebutton pressed. |
|
19 ///It helps to calculate the distance of dragging. |
|
20 double clicked_x, clicked_y; |
|
21 |
|
22 ///event handler for forming edges |
|
23 bool edge_former_event_handler(GdkEvent*); |
12 public: |
24 public: |
13 BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points); |
25 BrokenEdge(Gnome::Canvas::Group &, Gnome::Canvas::Points); |
|
26 ~BrokenEdge(); |
|
27 void set_points(Gnome::Canvas::Points); |
14 }; |
28 }; |
15 |
29 |
16 |
30 |
17 #endif //BROKEN_EDGE_H |
31 #endif //BROKEN_EDGE_H |
18 |
32 |