diff options
Diffstat (limited to 'libs/canvas/canvas/poly_item.h')
-rw-r--r-- | libs/canvas/canvas/poly_item.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/canvas/canvas/poly_item.h b/libs/canvas/canvas/poly_item.h new file mode 100644 index 0000000000..11b649cfb8 --- /dev/null +++ b/libs/canvas/canvas/poly_item.h @@ -0,0 +1,30 @@ +#ifndef __CANVAS_POLY_ITEM_H__ +#define __CANVAS_POLY_ITEM_H__ + +#include "canvas/item.h" +#include "canvas/outline.h" + +namespace ArdourCanvas { + +class PolyItem : virtual public Item, public Outline +{ +public: + PolyItem (Group *); + + void compute_bounding_box () const; + + void add_poly_item_state (XMLNode *) const; + void set_poly_item_state (XMLNode const *); + + void set (Points const &); + Points const & get () const; + +protected: + void render_path (Rect const &, Cairo::RefPtr<Cairo::Context>) const; + + Points _points; +}; + +} + +#endif |