Wt
4.11.1
|
An abstract paint device for rendering using native vector graphics. More...
#include <Wt/WVectorImage.h>
Public Member Functions | |
virtual std::string | rendered ()=0 |
Internal method. | |
Public Member Functions inherited from Wt::WPaintDevice | |
virtual | ~WPaintDevice () |
Destructor. More... | |
virtual WFlags< PaintDeviceFeatureFlag > | features () const =0 |
Returns device features. | |
virtual WLength | width () const =0 |
Returns the device width. More... | |
virtual WLength | height () const =0 |
Returns the device height. More... | |
virtual void | setChanged (WFlags< PainterChangeFlag > flags)=0 |
Indicates changes in painter state. More... | |
virtual void | drawArc (const WRectF &rect, double startAngle, double spanAngle)=0 |
Draws an arc. More... | |
virtual void | drawImage (const WRectF &rect, const std::string &imageUri, int imgWidth, int imgHeight, const WRectF &sourceRect)=0 |
Draws an image. More... | |
virtual void | drawLine (double x1, double y1, double x2, double y2)=0 |
Draws a line. More... | |
virtual void | drawPath (const WPainterPath &path)=0 |
Draws a path. More... | |
virtual void | drawRect (const WRectF &rectangle)=0 |
Draws a rectangle. More... | |
virtual void | drawText (const WRectF &rect, WFlags< AlignmentFlag > alignmentFlags, TextFlag textFlag, const WString &text, const WPointF *clipPoint)=0 |
Draws text. More... | |
virtual WTextItem | measureText (const WString &text, double maxWidth=-1, bool wordWrap=false)=0 |
Measures rendered text size. More... | |
virtual WFontMetrics | fontMetrics ()=0 |
Returns font metrics. More... | |
virtual void | init ()=0 |
Initializes the device for painting. More... | |
virtual void | done ()=0 |
Finishes painting on the device. More... | |
virtual bool | paintActive () const =0 |
Returns whether painting is active. More... | |
Additional Inherited Members | |
Public Types inherited from Wt::WPaintDevice | |
typedef PaintDeviceFeatureFlag | FeatureFlag |
Typedef for enum Wt::PaintDeviceFeatureFlag. | |
Protected Member Functions inherited from Wt::WPaintDevice | |
virtual WPainter * | painter () const =0 |
Returns the painter that is currently painting on the device. More... | |
virtual void | setPainter (WPainter *painter)=0 |
Sets the painter. | |
An abstract paint device for rendering using native vector graphics.