QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
QwtStyleSheetRecorder类 参考final

用于记录样式表信息的绘图设备 更多...

#include <qwt_stylesheet_recorder.h>

类 QwtStyleSheetRecorder 继承关系图:
QwtNullPaintDevice

struct  Background
 Background structure containing path, brush, and origin 更多...
 
struct  Border
 Border structure containing path and rectangle information 更多...
 

Public 成员函数

 QwtStyleSheetRecorder (const QSize &size)
 Constructor with specified size
 
virtual void updateState (const QPaintEngineState &state) override
 Update the paint engine state
 
virtual void drawRects (const QRectF *rects, int count) override
 Draw rectangles with floating-point coordinates
 
virtual void drawRects (const QRect *rects, int count) override
 Draw rectangles with integer coordinates
 
virtual void drawPath (const QPainterPath &path) override
 Draw a painter path
 
void setCornerRects (const QPainterPath &path)
 Set corner rectangles from a path
 
- Public 成员函数 继承自 QwtNullPaintDevice
 QwtNullPaintDevice ()
 Constructor
 
virtual ~QwtNullPaintDevice ()
 Destructor
 
void setMode (Mode)
 Set the render mode
 
Mode mode () const
 Get the render mode
 
virtual QPaintEngine * paintEngine () const override
 Return the paint engine
 
virtual int metric (PaintDeviceMetric) const override
 Return metric information for the paint device
 
virtual void drawLines (const QLine *, int)
 Draw lines (integer version)
 
virtual void drawLines (const QLineF *, int)
 Draw lines (floating point version)
 
virtual void drawEllipse (const QRectF &)
 Draw ellipse (floating point version)
 
virtual void drawEllipse (const QRect &)
 Draw ellipse (integer version)
 
virtual void drawPoints (const QPointF *, int)
 Draw points (floating point version)
 
virtual void drawPoints (const QPoint *, int)
 Draw points (integer version)
 
virtual void drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode)
 Draw polygon (floating point version)
 
virtual void drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode)
 Draw polygon (integer version)
 
virtual void drawPixmap (const QRectF &, const QPixmap &, const QRectF &)
 Draw a pixmap
 
virtual void drawTextItem (const QPointF &, const QTextItem &)
 Draw a text item
 
virtual void drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &)
 Draw a tiled pixmap
 
virtual void drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)
 Draw an image
 

Public 属性

QVector< QRectF > clipRects
 Clip rectangles for clipping operations
 
struct QwtStyleSheetRecorder::Border border
 
struct QwtStyleSheetRecorder::Background background
 

Protected 成员函数

virtual QSize sizeMetrics () const override
 Get the size metrics of the device
 

额外继承的成员函数

- Public 类型 继承自 QwtNullPaintDevice
enum  Mode { NormalMode , PolygonPathMode , PathMode }
 绘制设备的渲染模式 更多...
 

详细描述

用于记录样式表信息的绘图设备

构造及析构函数说明

◆ QwtStyleSheetRecorder()

QwtStyleSheetRecorder::QwtStyleSheetRecorder ( const QSize &  size)
explicit

Constructor with specified size

构造指定大小的样式表记录器

成员函数说明

◆ drawPath()

void QwtStyleSheetRecorder::drawPath ( const QPainterPath &  path)
overridevirtual

Draw a painter path

绘制画家路径

重载 QwtNullPaintDevice .

◆ drawRects() [1/2]

void QwtStyleSheetRecorder::drawRects ( const QRect *  rects,
int  count 
)
overridevirtual

Draw rectangles with integer coordinates

绘制整数坐标矩形

重载 QwtNullPaintDevice .

◆ drawRects() [2/2]

void QwtStyleSheetRecorder::drawRects ( const QRectF *  rects,
int  count 
)
overridevirtual

Draw rectangles with floating-point coordinates

绘制浮点坐标矩形

重载 QwtNullPaintDevice .

◆ setCornerRects()

void QwtStyleSheetRecorder::setCornerRects ( const QPainterPath &  path)

Set corner rectangles from a path

从路径设置角落矩形

◆ sizeMetrics()

QSize QwtStyleSheetRecorder::sizeMetrics ( ) const
overrideprotectedvirtual

Get the size metrics of the device

获取设备的尺寸度量

实现了 QwtNullPaintDevice.

◆ updateState()

void QwtStyleSheetRecorder::updateState ( const QPaintEngineState &  state)
overridevirtual

Update the paint engine state

更新绘制引擎状态

重载 QwtNullPaintDevice .


该类的文档由以下文件生成: