Pen
classin packageklyn.gui.windows
public class Pen:
Stroke configuration that can be applied to a `Painter`.
pen = Pen(Color(31, 41, 55, 1.0), 2.0)
pen.setDash([6.0, 3.0])
Properties
| Modifier and Type |
Member |
Description |
| public property |
antialiasing |
Stroke antialiasing flag. |
| public property |
cap |
Line cap: `butt`, `round` or `square`. |
| public property |
dashOffset |
Dash offset. |
| public property |
join |
Line join: `miter`, `round` or `bevel`. |
| public property |
miterLimit |
Miter limit. |
| public property |
paint |
Stroke paint source. |
| public property |
width |
Stroke width. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
Pen |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
clone |
Duplicates the stroke configuration. |
| public |
dash |
Returns the current dash pattern. |
| public |
setDash |
Replaces the current dash pattern. |
| public override |
toString |
No summary. |