00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_RECT_H
00011 #define QWT_RECT_H
00012
00013 #include <qrect.h>
00014 #include "qwt_global.h"
00015
00020 class QWT_EXPORT QwtRect : public QRect
00021 {
00022 public:
00023 QwtRect();
00024 QwtRect(const QRect &r);
00025
00026 QRect cutTop(int h , int distTop = 0, int distBottom = 0);
00027 QRect cutBottom(int h, int distTop = 0, int distBottom = 0);
00028 QRect cutLeft(int w, int distLeft = 0, int distRight = 0);
00029 QRect cutRight(int w, int distLeft = 0, int distRight = 0);
00030 const QwtRect &cutMargin(int mLeft, int mRight, int Top, int mBottom);
00031 };
00032
00033 #endif