Painter
More...
#include <faith/pen.h>
Public Types | |
| NoPen | |
| SolidLine | |
| DashLine | |
| DotLine | |
| enum | PenStyle { NoPen, SolidLine, DashLine, DotLine } |
Public Member Functions | |
| Pen (const Color &color, int width=0, PenStyle style=SolidLine) | |
| Pen (const Pen ©) | |
| ~Pen () | |
| Pen (PenStyle style=SolidLine) | |
| Pen & | operator= (const Pen ©) |
| bool | operator== (const Pen &other) const |
| bool | operator!= (const Pen &other) const |
| int | width () const |
| void | setWidth (int width) |
| Color | color () const |
| void | setColor (const Color &color) |
| void | setColor (int r, int g, int b) |
| PenStyle | style () const |
| void | setStyle (PenStyle style) |
Painter
| enum Faith::Pen::PenStyle |
creates a Pen with the given color and width
| Faith::Pen::Pen | ( | const Pen & | copy | ) |
| Faith::Pen::~Pen | ( | ) |
| Faith::Pen::Pen | ( | PenStyle | style = SolidLine |
) |
creates a black width=0 pen of the given style
| bool Faith::Pen::operator!= | ( | const Pen & | other | ) | const [inline] |
| bool Faith::Pen::operator== | ( | const Pen & | other | ) | const |
| void Faith::Pen::setColor | ( | int | r, | |
| int | g, | |||
| int | b | |||
| ) | [inline] |
same as setColor (Color(r,g,b))
| void Faith::Pen::setColor | ( | const Color & | color | ) |
sets the color of the pen
| void Faith::Pen::setStyle | ( | PenStyle | style | ) |
sets the pen style, On windows, a pen width of >=2 will result in pen style being solid
| void Faith::Pen::setWidth | ( | int | width | ) |
sets teh numbers of pixels wide the line is
| int Faith::Pen::width | ( | ) | const |
1.4.7