rock_widget_collection  0.1
RectangleItem.h
Go to the documentation of this file.
1 /*
2  * File: RectangleItem.h
3  * Author: blueck
4  *
5  * Created on 29. Juni 2010, 10:34
6  */
7 
8 #include "FillItem.h"
9 
10 #ifndef RECTANGLEITEM_H
11 #define RECTANGLEITEM_H
12 
16 class RectangleItem : public FillItem
17 {
18 public:
28  RectangleItem(int posX, int posY, int groupNr, const QColor &color, int width, int height);
29 
33  virtual ~RectangleItem(){};
34 
39  int getWidth(){return width;};
40 
45  int getHeight(){return height;};
46 
52 
57  void setWidth(int width) {this->width = width;};
58 
63  void setHeight(int height) {this->height = height;};
64 
68  void draw(QPainter* painter, QRectF &source, QRectF &target);
69 protected:
71  int width;
73  int height;
74 
75 };
76 
77 #endif /* RECTANGLEITEM_H */
78 
DrawType
Definition: DrawItem.h:19
int posY
Definition: DrawItem.h:182
int posX
Definition: DrawItem.h:180
void setHeight(int height)
Definition: RectangleItem.h:63
RectangleItem(int posX, int posY, int groupNr, const QColor &color, int width, int height)
virtual ~RectangleItem()
Definition: RectangleItem.h:33
void setWidth(int width)
Definition: RectangleItem.h:57
int groupNr
Definition: DrawItem.h:169
QColor color
Definition: DrawItem.h:184
void draw(QPainter *painter, QRectF &source, QRectF &target)
DrawType getType()
Definition: RectangleItem.h:51