画笔设置类 更多...
#include <PenSet.h>
Public 成员函数 | |
| PenSet (const Color &color, int width=1) | |
| 构造函数 | |
| PenSet (const PenSet &other) | |
| 复制构造 | |
| PenSet (PenSet &&other) | |
| 移动构造 | |
| ~PenSet () | |
| CapStyle | getCapStyle () const |
| 获取线帽样式 | |
| Color | getColor () const |
| 获取颜色 | |
| CapStyle | getEndCap () const |
| 获取终止线帽样式 | |
| JoinStyle | getJoinStyle () const |
| 获取接点样式 | |
| LineStyle | getPenStyle () const |
| 获取线型 | |
| int | getPenWidth () const |
| 获取线宽 | |
| CapStyle | getStartCap () const |
| 获取起始线帽样式 | |
| short | getUserPenStyle () const |
| 获取用户自定义线型 | |
| PenSet & | operator= (const PenSet &other) |
| 复制赋值 | |
| PenSet & | operator= (PenSet &&other) |
| 移动赋值 | |
| void | setCapStyle (CapStyle style) |
| 设置线帽样式 | |
| void | setColor (const Color &color) |
| 设置颜色 | |
| void | setEndCap (CapStyle style) |
| 设置终止线帽样式 | |
| void | setJoinStyle (JoinStyle style, float limit=10.0f) |
| 设置接点样式 | |
| void | setLineStyle (LineStyle style) |
| 设置线型 | |
| void | setLineStyle (short style) |
| 设置用户自定义线型 | |
| void | setLineWidth (int width) |
| 设置线宽 | |
| void | setStartCap (CapStyle style) |
| 设置起始线帽样式 | |
友元 | |
| class | Graphics |
画笔设置类
用于设置画笔的各种属性,如线宽、线型、线帽、接点等。
| GFt::PenSet::PenSet | ( | const Color & | color, |
| int | width = 1 ) |
构造函数
| color | 画笔颜色 |
| width | 画笔宽度,默认为1 |
| GFt::PenSet::PenSet | ( | const PenSet & | other | ) |
复制构造
| GFt::PenSet::PenSet | ( | PenSet && | other | ) |
移动构造
| GFt::PenSet::~PenSet | ( | ) |
| CapStyle GFt::PenSet::getCapStyle | ( | ) | const |
| Color GFt::PenSet::getColor | ( | ) | const |
获取颜色
| CapStyle GFt::PenSet::getEndCap | ( | ) | const |
获取终止线帽样式
| JoinStyle GFt::PenSet::getJoinStyle | ( | ) | const |
获取接点样式
| LineStyle GFt::PenSet::getPenStyle | ( | ) | const |
获取线型
| int GFt::PenSet::getPenWidth | ( | ) | const |
获取线宽
| CapStyle GFt::PenSet::getStartCap | ( | ) | const |
获取起始线帽样式
| short GFt::PenSet::getUserPenStyle | ( | ) | const |
| void GFt::PenSet::setCapStyle | ( | CapStyle | style | ) |
设置线帽样式
| style | 线帽样式 |
| void GFt::PenSet::setColor | ( | const Color & | color | ) |
设置颜色
| color | 颜色 |
| void GFt::PenSet::setEndCap | ( | CapStyle | style | ) |
设置终止线帽样式
| style | 终止线帽样式 |
| void GFt::PenSet::setJoinStyle | ( | JoinStyle | style, |
| float | limit = 10.0f ) |
设置接点样式
| style | 接点样式 |
| limit | 接点尖角长度限制值,默认为10.0f |
| void GFt::PenSet::setLineStyle | ( | LineStyle | style | ) |
| void GFt::PenSet::setLineStyle | ( | short | style | ) |
| void GFt::PenSet::setLineWidth | ( | int | width | ) |
设置线宽
| width | 线宽 |
| void GFt::PenSet::setStartCap | ( | CapStyle | style | ) |
设置起始线帽样式
| style | 起始线帽样式 |
|
friend |