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
*****************************************************************************/
16
#include "qwt_global.h"
21
//! A class for drawing symbols
22
class QWT_EXPORT QwtSymbol
27
\sa setStyle(), style()
54
QwtSymbol(Style st, const QBrush &bd, const QPen &pn, const QSize &s);
57
bool operator!=(const QwtSymbol &) const;
58
virtual bool operator==(const QwtSymbol &) const;
60
virtual QwtSymbol *clone() const;
62
void setSize(const QSize &s);
63
void setSize(int a, int b = -1);
64
void setBrush(const QBrush& b);
65
void setPen(const QPen &p);
66
void setStyle (Style s);
69
const QBrush& brush() const { return d_brush; }
71
const QPen& pen() const { return d_pen; }
73
const QSize& size() const { return d_size; }
75
Style style() const { return d_style; }
77
void draw(QPainter *p, const QPoint &pt) const;
78
void draw(QPainter *p, int x, int y) const;
79
virtual void draw(QPainter *p, const QRect &r) const;