Painting system

Classes that provide support for vector graphics. More...

Classes

class  Wt::WBrush
 Class that defines the style for filling areas. More...
class  Wt::WCanvasPaintDevice
 A paint device for rendering using the HTML 5 <canvas> element. More...
class  Wt::WColor
 A class that specifies a color. More...
class  Wt::WFont
 A style class describing a font. More...
class  Wt::WLineF
 Utility class that defines a single line. More...
class  Wt::WPaintDevice
 The abstract base class for a paint device. More...
class  Wt::WPaintedWidget
 A widget that is painted using vector graphics. More...
class  Wt::WPainter
 Helper class for painting on a WPaintDevice. More...
class  Wt::WPainterPath
 A path defining a shape. More...
class  Wt::WPen
 Class that defines the style for pen strokes. More...
class  Wt::WPointF
 Utility class that defines a 2D point. More...
class  Wt::WRectF
 Utility class that defines a rectangle. More...
class  Wt::WShadow
 Class that defines a shadow style. More...
class  Wt::WSvgImage
 A paint device for rendering using Scalable Vector Graphics (SVG). More...
class  Wt::WTransform
 A 2D affine transformation matrix. More...
class  Wt::WVectorImage
 An abstract paint device for rendering using native vector graphics. More...
class  Wt::WVmlImage
 A paint device for rendering using the VML pseudo-standard. More...

Enumerations

enum  Wt::WPen::PenStyle {
  Wt::NoPen, Wt::SolidLine, Wt::DashLine, Wt::DotLine,
  Wt::DashDotLine, Wt::DashDotDotLine
}
 

Enumeration that indicates a pen style.

More...
enum  Wt::WPen::PenCapStyle { Wt::FlatCap, Wt::SquareCap, Wt::RoundCap }
 

Enumeration that indicates how line end points are rendered.

More...
enum  Wt::WPen::PenJoinStyle { Wt::MiterJoin, Wt::BevelJoin, Wt::RoundJoin }
 

Enumeration that indicates how line joins are rendered.

More...
enum  Wt::WBrush::WBrushStyle { Wt::NoBrush = 0, Wt::SolidPattern = 1 }
 

Enumeration that indicates a fill style.

More...

Detailed Description

Classes that provide support for vector graphics.

Wt provides a vector graphics painting system, which depending on the browser support, uses one of three different methods to paint the graphics (inline SVG, inline VML or HTML 5 <canvas> element). 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().

If you want to use inline SVG (which has some benefits since it is widely supported and is the most complete), you will need to enable xhtml support in your configuration file by enabling send-xhtml-mimetype, see 9.2 General application settings (wt_config.xml).


Enumeration Type Documentation

enum PenCapStyle [related, inherited]

Enumeration that indicates how line end points are rendered.

Enumerator:
FlatCap 

Flat ends.

SquareCap 

Square ends (prolongs line with half width).

RoundCap 

Round ends (terminates with a half circle).

enum PenJoinStyle [related, inherited]

Enumeration that indicates how line joins are rendered.

Enumerator:
MiterJoin 

Pointy joins.

BevelJoin 

Squared-off joins.

RoundJoin 

Rounded joins.

enum PenStyle [related, inherited]

Enumeration that indicates a pen style.

Enumerator:
NoPen 

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.

enum WBrushStyle [related, inherited]

Enumeration that indicates a fill style.

Enumerator:
NoBrush 

Do not fill.

SolidPattern 

Fill with a solid color.


Generated on Thu May 13 05:16:09 2010 for Wt by doxygen 1.6.3