bezier-arrow.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCCV_BEZIER_ARROW_H
00026 #define GCCV_BEZIER_ARROW_H
00027
00028 #include "line-item.h"
00029 #include "structs.h"
00030
00031 namespace gccv {
00032
00033 class BezierArrow: public LineItem {
00034 public:
00035 BezierArrow (Canvas *canvas);
00036 BezierArrow (Group *parent, ItemClient *client = NULL);
00037 virtual ~BezierArrow ();
00038
00039
00040 double Distance (double x, double y, Item **item) const;
00041 void Draw (cairo_t *cr, bool is_vector) const;
00042 void UpdateBounds ();
00043
00044 GCCV_ITEM_POS_PROP (ArrowHeads, Head)
00045 GCCV_ITEM_POS_PROP (double, A)
00046 GCCV_ITEM_POS_PROP (double, B)
00047 GCCV_ITEM_POS_PROP (double, C)
00048
00049 private:
00050 Point m_Controls[4];
00051 };
00052
00053 }
00054
00055
00056 #endif // GCCV_BEZIER_ARROW_H