Qt 4.8
Public Functions | Public Variables | List of all members
QPainterState Class Reference

#include <qpainter_p.h>

Inheritance diagram for QPainterState:
QPaintEngineState QOpenGL2PaintEngineState QOpenGLPaintEngineState QRasterPaintEngineState QVGPainterState

Public Functions

void init (QPainter *p)
 
 QPainterState ()
 
 QPainterState (const QPainterState *s)
 
virtual ~QPainterState ()
 
- Public Functions inherited from QPaintEngineState
QBrush backgroundBrush () const
 Returns the background brush in the current paint engine state. More...
 
Qt::BGMode backgroundMode () const
 Returns the background mode in the current paint engine state. More...
 
QBrush brush () const
 Returns the brush in the current paint engine state. More...
 
bool brushNeedsResolving () const
 Returns whether the coordinate of the fill have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). More...
 
QPointF brushOrigin () const
 Returns the brush origin in the current paint engine state. More...
 
Qt::ClipOperation clipOperation () const
 Returns the clip operation in the current paint engine state. More...
 
QPainterPath clipPath () const
 Returns the clip path in the current paint engine state. More...
 
QRegion clipRegion () const
 Returns the clip region in the current paint engine state. More...
 
QPainter::CompositionMode compositionMode () const
 Returns the composition mode in the current paint engine state. More...
 
QFont font () const
 Returns the font in the current paint engine state. More...
 
bool isClipEnabled () const
 Returns whether clipping is enabled or not in the current paint engine state. More...
 
QMatrix matrix () const
 Returns the matrix in the current paint engine state. More...
 
qreal opacity () const
 Returns the opacity in the current paint engine state. More...
 
QPainterpainter () const
 Returns a pointer to the painter currently updating the paint engine. More...
 
QPen pen () const
 Returns the pen in the current paint engine state. More...
 
bool penNeedsResolving () const
 Returns whether the coordinate of the stroke have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). More...
 
QPainter::RenderHints renderHints () const
 Returns the render hints in the current paint engine state. More...
 
QPaintEngine::DirtyFlags state () const
 Returns a combination of flags identifying the set of properties that need to be updated when updating the paint engine's state (i. More...
 
QTransform transform () const
 Returns the matrix in the current paint engine state. More...
 

Public Variables

QBrush bgBrush
 
Qt::BGMode bgMode
 
QBrush brush
 
QPointF brushOrigin
 
uint changeFlags
 
uint clipEnabled:1
 
QList< QPainterClipInfoclipInfo
 
Qt::ClipOperation clipOperation
 
QPainterPath clipPath
 
QRegion clipRegion
 
QPainter::CompositionMode composition_mode
 
QFont deviceFont
 
uint emulationSpecifier
 
QFont font
 
Qt::LayoutDirection layoutDirection
 
QTransform matrix
 
qreal opacity
 
QPainterpainter
 
QPen pen
 
QTransform redirectionMatrix
 
QPainter::RenderHints renderHints
 
int vh
 
int vw
 
int vx
 
uint VxF:1
 
int vy
 
int wh
 
QTransform worldMatrix
 
int ww
 
int wx
 
uint WxF:1
 
int wy
 

Additional Inherited Members

- Protected Variables inherited from QPaintEngineState
QPaintEngine::DirtyFlags dirtyFlags
 

Detailed Description

Definition at line 141 of file qpainter_p.h.

Constructors and Destructors

◆ QPainterState() [1/2]

QPainterState::QPainterState ( )

Definition at line 8753 of file qpainter.cpp.

8755  renderHints(0),
8756  wx(0), wy(0), ww(0), wh(0), vx(0), vy(0), vw(0), vh(0),
8757  opacity(1), WxF(false), VxF(false), clipEnabled(true),
8762 {
8763  dirtyFlags = 0;
8764 }
static Qt::LayoutDirection layoutDirection()
Qt::LayoutDirection layoutDirection
Definition: qpainter_p.h:173
qreal opacity() const
Returns the opacity in the current paint engine state.
Definition: qpainter.cpp:9529
QPainter::CompositionMode composition_mode
Definition: qpainter_p.h:174
uint changeFlags
Definition: qpainter_p.h:176
QPaintEngine::DirtyFlags dirtyFlags
Definition: qpaintengine.h:325
QBrush bgBrush
Definition: qpainter_p.h:154
Qt::ClipOperation clipOperation() const
Returns the clip operation in the current paint engine state.
Definition: qpainter.cpp:9396
QPointF brushOrigin() const
Returns the brush origin in the current paint engine state.
Definition: qpainter.cpp:9287
QPainter * painter() const
Returns a pointer to the painter currently updating the paint engine.
Definition: qpainter.cpp:9514
QPainter::RenderHints renderHints() const
Returns the render hints in the current paint engine state.
Definition: qpainter.cpp:9488
uint clipEnabled
Definition: qpainter_p.h:169
uint emulationSpecifier
Definition: qpainter_p.h:175
Qt::BGMode bgMode
Definition: qpainter_p.h:171

◆ QPainterState() [2/2]

QPainterState::QPainterState ( const QPainterState s)

Definition at line 8735 of file qpainter.cpp.

8737  pen(s->pen), brush(s->brush), bgBrush(s->bgBrush),
8742  wx(s->wx), wy(s->wy), ww(s->ww), wh(s->wh),
8743  vx(s->vx), vy(s->vy), vw(s->vw), vh(s->vh),
8744  opacity(s->opacity), WxF(s->WxF), VxF(s->VxF),
8749 {
8750  dirtyFlags = s->dirtyFlags;
8751 }
QRegion clipRegion
Definition: qpainter_p.h:155
Qt::LayoutDirection layoutDirection
Definition: qpainter_p.h:173
qreal opacity() const
Returns the opacity in the current paint engine state.
Definition: qpainter.cpp:9529
QPainter::RenderHints renderHints
Definition: qpainter_p.h:158
QPainter::CompositionMode composition_mode
Definition: qpainter_p.h:174
uint changeFlags
Definition: qpainter_p.h:176
QPaintEngine::DirtyFlags dirtyFlags
Definition: qpaintengine.h:325
QTransform matrix
Definition: qpainter_p.h:161
QMatrix matrix() const
Returns the matrix in the current paint engine state.
Definition: qpainter.cpp:9355
QBrush bgBrush
Definition: qpainter_p.h:154
Qt::ClipOperation clipOperation
Definition: qpainter_p.h:157
QFont deviceFont
Definition: qpainter_p.h:151
QBrush brush() const
Returns the brush in the current paint engine state.
Definition: qpainter.cpp:9273
Qt::ClipOperation clipOperation() const
Returns the clip operation in the current paint engine state.
Definition: qpainter.cpp:9396
QPointF brushOrigin() const
Returns the brush origin in the current paint engine state.
Definition: qpainter.cpp:9287
QPainter * painter
Definition: qpainter_p.h:172
QFont font() const
Returns the font in the current paint engine state.
Definition: qpainter.cpp:9331
QList< QPainterClipInfo > clipInfo
Definition: qpainter_p.h:159
QPainterPath clipPath() const
Returns the clip path in the current paint engine state.
Definition: qpainter.cpp:9457
QPainter * painter() const
Returns a pointer to the painter currently updating the paint engine.
Definition: qpainter.cpp:9514
QPainter::RenderHints renderHints() const
Returns the render hints in the current paint engine state.
Definition: qpainter.cpp:9488
uint clipEnabled
Definition: qpainter_p.h:169
QPointF brushOrigin
Definition: qpainter_p.h:149
QTransform redirectionMatrix
Definition: qpainter_p.h:162
QRegion clipRegion() const
Returns the clip region in the current paint engine state.
Definition: qpainter.cpp:9443
QPainterPath clipPath
Definition: qpainter_p.h:156
QBrush brush
Definition: qpainter_p.h:153
uint emulationSpecifier
Definition: qpainter_p.h:175
Qt::BGMode bgMode
Definition: qpainter_p.h:171
QPen pen() const
Returns the pen in the current paint engine state.
Definition: qpainter.cpp:9259
QTransform worldMatrix
Definition: qpainter_p.h:160

◆ ~QPainterState()

QPainterState::~QPainterState ( )
virtual

Definition at line 8766 of file qpainter.cpp.

8767 {
8768 }

Functions

◆ init()

void QPainterState::init ( QPainter p)

Definition at line 8770 of file qpainter.cpp.

Referenced by QRasterBuffer::QRasterBuffer().

8770  {
8771  bgBrush = Qt::white;
8773  WxF = false;
8774  VxF = false;
8775  clipEnabled = true;
8776  wx = wy = ww = wh = 0;
8777  vx = vy = vw = vh = 0;
8778  painter = p;
8779  pen = QPen();
8780  brushOrigin = QPointF(0, 0);
8781  brush = QBrush();
8782  font = deviceFont = QFont();
8783  clipRegion = QRegion();
8784  clipPath = QPainterPath();
8786  clipInfo.clear();
8787  worldMatrix.reset();
8788  matrix.reset();
8791  emulationSpecifier = 0;
8792  dirtyFlags = 0;
8793  changeFlags = 0;
8794  renderHints = 0;
8795  opacity = 1;
8796 }
static Qt::LayoutDirection layoutDirection()
Qt::LayoutDirection layoutDirection
Definition: qpainter_p.h:173
qreal opacity() const
Returns the opacity in the current paint engine state.
Definition: qpainter.cpp:9529
QPainter::CompositionMode composition_mode
Definition: qpainter_p.h:174
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
Definition: qpainterpath.h:67
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
void reset()
Resets the matrix to an identity matrix, i.e.
Definition: qmatrix.cpp:897
uint changeFlags
Definition: qpainter_p.h:176
QPaintEngine::DirtyFlags dirtyFlags
Definition: qpaintengine.h:325
QMatrix matrix() const
Returns the matrix in the current paint engine state.
Definition: qpainter.cpp:9355
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
QBrush bgBrush
Definition: qpainter_p.h:154
QFont deviceFont
Definition: qpainter_p.h:151
QBrush brush() const
Returns the brush in the current paint engine state.
Definition: qpainter.cpp:9273
Qt::ClipOperation clipOperation() const
Returns the clip operation in the current paint engine state.
Definition: qpainter.cpp:9396
QPointF brushOrigin() const
Returns the brush origin in the current paint engine state.
Definition: qpainter.cpp:9287
QFont font() const
Returns the font in the current paint engine state.
Definition: qpainter.cpp:9331
QList< QPainterClipInfo > clipInfo
Definition: qpainter_p.h:159
The QRegion class specifies a clip region for a painter.
Definition: qregion.h:68
QPainterPath clipPath() const
Returns the clip path in the current paint engine state.
Definition: qpainter.cpp:9457
void clear()
Removes all items from the list.
Definition: qlist.h:764
QPainter * painter() const
Returns a pointer to the painter currently updating the paint engine.
Definition: qpainter.cpp:9514
The QBrush class defines the fill pattern of shapes drawn by QPainter.
Definition: qbrush.h:76
void reset()
Resets the matrix to an identity matrix, i.e.
QPainter::RenderHints renderHints() const
Returns the render hints in the current paint engine state.
Definition: qpainter.cpp:9488
The QFont class specifies a font used for drawing text.
Definition: qfont.h:64
uint clipEnabled
Definition: qpainter_p.h:169
QRegion clipRegion() const
Returns the clip region in the current paint engine state.
Definition: qpainter.cpp:9443
uint emulationSpecifier
Definition: qpainter_p.h:175
Qt::BGMode bgMode
Definition: qpainter_p.h:171
QPen pen() const
Returns the pen in the current paint engine state.
Definition: qpainter.cpp:9259
QTransform worldMatrix
Definition: qpainter_p.h:160

Properties

◆ bgBrush

QBrush QPainterState::bgBrush

◆ bgMode

Qt::BGMode QPainterState::bgMode

◆ brush

QBrush QPainterState::brush

◆ brushOrigin

QPointF QPainterState::brushOrigin

◆ changeFlags

uint QPainterState::changeFlags

Definition at line 176 of file qpainter_p.h.

Referenced by init(), QPainter::restore(), and QPainterPrivate::updateStateImpl().

◆ clipEnabled

uint QPainterState::clipEnabled

◆ clipInfo

QList<QPainterClipInfo> QPainterState::clipInfo

◆ clipOperation

Qt::ClipOperation QPainterState::clipOperation

◆ clipPath

QPainterPath QPainterState::clipPath

Definition at line 156 of file qpainter_p.h.

Referenced by QPainter::restore().

◆ clipRegion

QRegion QPainterState::clipRegion

Definition at line 155 of file qpainter_p.h.

Referenced by QPainter::restore().

◆ composition_mode

QPainter::CompositionMode QPainterState::composition_mode

◆ deviceFont

QFont QPainterState::deviceFont

Definition at line 151 of file qpainter_p.h.

Referenced by init().

◆ emulationSpecifier

uint QPainterState::emulationSpecifier

◆ font

QFont QPainterState::font

Definition at line 150 of file qpainter_p.h.

◆ layoutDirection

Qt::LayoutDirection QPainterState::layoutDirection

Definition at line 173 of file qpainter_p.h.

Referenced by init().

◆ matrix

QTransform QPainterState::matrix

Definition at line 161 of file qpainter_p.h.

Referenced by QPainterPrivate::attachPainterPrivate(), QDirectFBPaintEnginePrivate::blit(), QRasterPaintEnginePrivate::brushMatrix(), QGL2PaintEngineEx::clip(), QRasterPaintEngine::clip(), QDeclarativeTextLayout::draw(), QPainterPrivate::draw_helper(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), QRasterPaintEngine::drawEllipse(), QDirectFBPaintEngine::drawImage(), QRasterPaintEngine::drawImage(), QBlitterPaintEngine::drawPixmap(), QDirectFBPaintEngine::drawPixmap(), QRasterPaintEngine::drawPixmap(), QEmulationPaintEngine::drawPixmapFragments(), QPaintEngineEx::drawPixmapFragments(), QRasterPaintEngine::drawRects(), QGL2PaintEngineEx::drawStaticTextItem(), QGL2PaintEngineEx::drawTextItem(), QRasterPaintEngine::drawTextItem(), QDirectFBPaintEngine::drawTiledPixmap(), QDirectFBPaintEnginePrivate::drawTiledPixmap(), QRasterPaintEngine::drawTiledPixmap(), QRasterPaintEngine::fill(), QRasterPaintEngine::fillPath(), QBlitterPaintEngine::fillRect(), QDirectFBPaintEngine::fillRect(), QRasterPaintEngine::fillRect(), QRasterPaintEnginePrivate::getPenFunc(), QPaintEngineState::matrix(), QBlittablePixmapData::paintEngine(), rasterFallbackWarn(), QRasterPaintEnginePrivate::recalculateFastImages(), QGL2PaintEngineExPrivate::resetClipIfNeeded(), QPainter::restore(), QPaintBufferEngine::setState(), QPaintEngineEx::stroke(), QRasterPaintEngine::stroke(), QPaintEngineState::transform(), QRasterPaintEngine::transformChanged(), QPaintBufferEngine::transformChanged(), QGL2PaintEngineExPrivate::updateBrushUniforms(), QPainterPrivate::updateEmulationSpecifier(), QPainterPrivate::updateInvMatrix(), QRasterPaintEngine::updateMatrix(), QGL2PaintEngineExPrivate::updateMatrix(), QPainterPrivate::updateMatrix(), QRasterPaintEngine::updatePen(), QRasterPaintEngine::updateState(), and QBlitterPaintEnginePrivate::updateTransformState().

◆ opacity

qreal QPainterState::opacity

◆ painter

QPainter* QPainterState::painter

Definition at line 172 of file qpainter_p.h.

Referenced by QPainterPrivate::updateStateImpl().

◆ pen

QPen QPainterState::pen

◆ redirectionMatrix

QTransform QPainterState::redirectionMatrix

◆ renderHints

QPainter::RenderHints QPainterState::renderHints

◆ vh

int QPainterState::vh

◆ vw

int QPainterState::vw

◆ vx

int QPainterState::vx

Definition at line 164 of file qpainter_p.h.

Referenced by init(), and QPainterPrivate::viewTransform().

◆ VxF

uint QPainterState::VxF

◆ vy

int QPainterState::vy

Definition at line 164 of file qpainter_p.h.

Referenced by init(), and QPainterPrivate::viewTransform().

◆ wh

int QPainterState::wh

◆ worldMatrix

QTransform QPainterState::worldMatrix

◆ ww

int QPainterState::ww

◆ wx

int QPainterState::wx

Definition at line 163 of file qpainter_p.h.

Referenced by init(), and QPainterPrivate::viewTransform().

◆ WxF

uint QPainterState::WxF

◆ wy

int QPainterState::wy

Definition at line 163 of file qpainter_p.h.

Referenced by init(), and QPainterPrivate::viewTransform().


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