Classes that provide support for vector graphics painting.
More...
|
enum class | Wt::PenStyle {
Wt::None
, Wt::SolidLine
, Wt::DashLine
, Wt::DotLine
,
Wt::DashDotLine
, Wt::DashDotDotLine
} |
| Enumeration that indicates a pen style. More...
|
|
enum class | Wt::PenCapStyle { Wt::Flat
, Wt::Square
, Wt::Round
} |
| Enumeration that indicates how line end points are rendered. More...
|
|
enum class | Wt::PenJoinStyle { Wt::Miter
, Wt::Bevel
, Wt::Round
} |
| Enumeration that indicates how line joins are rendered. More...
|
|
enum class | Wt::BrushStyle { Wt::None
, Wt::Solid
, Wt::Gradient
} |
| Enumeration that indicates a fill style. More...
|
|
enum class | Wt::GradientStyle { Wt::Linear
, Wt::Radial
} |
| Enumeration that indicates a gradient style. More...
|
|
Classes that provide support for vector graphics painting.
Wt provides a vector graphics painting system, which depending on the browser support, uses one of four different methods to paint the graphics (inline SVG, inline VML, HTML 5 <canvas> or a raster image). Vector graphics has as benefit a lower bandwidth usage compared to raster images, indepedent of the image size. To use the paint system, you need to specialize WPaintedWidget and use a WPainter to paint the contents of the widget inside its WPaintedWidget::paintEvent().
In addition, a PDF backend is included in the library, which can be used to make a PDF version of a painting, or to embed a painting in a PDF document.
◆ BrushStyle
Enumeration that indicates a fill style.
Enumerator |
---|
None | Do not fill.
|
Solid | Fill with a solid color.
|
Gradient | Fill with a color gradient.
|
◆ GradientStyle
Enumeration that indicates a gradient style.
Enumerator |
---|
Linear | Linear gradient.
|
Radial | Radial gradient.
|
◆ PenCapStyle
Enumeration that indicates how line end points are rendered.
Enumerator |
---|
Flat | Flat ends.
|
Square | Square ends (prolongs line with half width)
|
Round | Rounded ends (terminates with a half circle)
|
◆ PenJoinStyle
Enumeration that indicates how line joins are rendered.
Enumerator |
---|
Miter | Pointy joins.
|
Bevel | Squared-off joins.
|
Round | Rounded joins.
|
◆ PenStyle
Enumeration that indicates a pen style.
Enumerator |
---|
None | Do not stroke.
|
SolidLine | Stroke with a solid line.
|
DashLine | Stroked with a dashed line.
|
DotLine | Stroke with a dotted line.
|
DashDotLine | Stroke with a dash dot line.
|
DashDotDotLine | Stroke with a dash dot dot line.
|