QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
QwtStyleSheetRecorder Class Referencefinal

A paint device that records style sheet information for rendering. More...

#include <qwt_stylesheet_recorder.h>

Inheritance diagram for QwtStyleSheetRecorder:
QwtNullPaintDevice

Classes

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

Public Member Functions

 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 Member Functions inherited from 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 Attributes

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

Protected Member Functions

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

Additional Inherited Members

- Public Types inherited from QwtNullPaintDevice
enum  Mode { NormalMode , PolygonPathMode , PathMode }
 Render mode for the paint device. More...
 

Detailed Description

A paint device that records style sheet information for rendering.

Constructor & Destructor Documentation

◆ QwtStyleSheetRecorder()

QwtStyleSheetRecorder::QwtStyleSheetRecorder ( const QSize &  size)
explicit

Constructor with specified size.

Construct a stylesheet recorder with specified size.

Member Function Documentation

◆ drawPath()

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

Draw a painter path.

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [1/2]

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

Draw rectangles with integer coordinates.

Reimplemented from QwtNullPaintDevice.

◆ drawRects() [2/2]

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

Draw rectangles with floating-point coordinates.

Reimplemented from 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.

Implements QwtNullPaintDevice.

◆ updateState()

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

Update the paint engine state.

Reimplemented from QwtNullPaintDevice.


The documentation for this class was generated from the following files: