1 #ifndef __CANVAS_RECTANGLE_H__
2 #define __CANVAS_RECTANGLE_H__
4 #include "canvas/item.h"
5 #include "canvas/types.h"
6 #include "canvas/outline.h"
7 #include "canvas/fill.h"
12 class Rectangle : virtual public Item, public Outline, public Fill
16 Rectangle (Group *, Rect const &);
18 void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
19 void compute_bounding_box () const;
21 Rect const & get () const {
41 void set (Rect const &);
54 void set_outline_what (What);
55 void set_outline_what (int);
58 /** Our rectangle; note that x0 may not always be less than x1
59 * and likewise with y0 and y1.