domain_p.h
31 lines
| 666 B
| text/x-c
|
CLexer
/ src / domain_p.h
|
r131 | #ifndef DOMAIN_H_ | ||
#define DOMAIN_H_ | ||||
#include "qchartglobal.h" | ||||
#include <QRect> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class Domain { | ||||
public: | ||||
|
r221 | Domain(qreal minX=0, qreal maxX=0, qreal minY=0, qreal maxY=0); | ||
|
r131 | virtual ~Domain(); | ||
qreal spanX() const; | ||||
qreal spanY() const; | ||||
|
r220 | friend bool operator== (const Domain &domain1, const Domain &domain2); | ||
friend bool operator!= (const Domain &domain1, const Domain &domain2); | ||||
|
r222 | friend QDebug operator<<(QDebug dbg, const Domain &domain); | ||
|
r220 | |||
|
r139 | Domain subDomain(const QRectF& rect, qreal maxWidth, qreal maxHeight) const; | ||
|
r131 | |||
public: | ||||
qreal m_minX; | ||||
qreal m_maxX; | ||||
qreal m_minY; | ||||
qreal m_maxY; | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif | ||||