1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
14
#include "qwt_global.h"
15
#include "qwt_polygon.h"
18
\brief Some extensions for QRect
21
class QWT_EXPORT QwtRect : public QRect
25
QwtRect(const QRect &r);
27
QwtPolygon clip(const QwtPolygon &) const;
30
enum Edge { Left, Top, Right, Bottom, NEdges };
32
void clipEdge(Edge, const QwtPolygon &, QwtPolygon &) const;
33
bool insideEdge(const QPoint &, Edge edge) const;
34
QPoint intersectEdge(const QPoint &p1,
35
const QPoint &p2, Edge edge) const;