Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPainterState Class Reference

#include <qpainter_p.h>

+ Inheritance diagram for QPainterState:
+ Collaboration diagram for QPainterState:

Public Member Functions

 QPainterState ()
 
 QPainterState (const QPainterState *s)
 
virtual ~QPainterState ()
 
void init (QPainter *p)
 
- Public Member Functions inherited from QPaintEngineState
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.e.
 
QPen pen () const
 Returns the pen in the current paint engine state.
 
QBrush brush () const
 Returns the brush in the current paint engine state.
 
QPointF brushOrigin () const
 Returns the brush origin in the current paint engine state.
 
QBrush backgroundBrush () const
 Returns the background brush in the current paint engine state.
 
Qt::BGMode backgroundMode () const
 Returns the background mode in the current paint engine state.
 
QFont font () const
 Returns the font in the current paint engine state.
 
QTransform transform () const
 
Qt::ClipOperation clipOperation () const
 Returns the clip operation in the current paint engine state.
 
QRegion clipRegion () const
 Returns the clip region in the current paint engine state.
 
QPainterPath clipPath () const
 Returns the clip path in the current paint engine state.
 
bool isClipEnabled () const
 Returns whether clipping is enabled or not in the current paint engine state.
 
QPainter::RenderHints renderHints () const
 Returns the render hints in the current paint engine state.
 
QPainter::CompositionMode compositionMode () const
 Returns the composition mode in the current paint engine state.
 
qreal opacity () const
 
QPainterpainter () const
 Returns a pointer to the painter currently updating the paint engine.
 
bool brushNeedsResolving () const
 
bool penNeedsResolving () const
 

Public Attributes

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

Additional Inherited Members

- Protected Attributes inherited from QPaintEngineState
QPaintEngine::DirtyFlags dirtyFlags
 

Detailed Description

Definition at line 110 of file qpainter_p.h.

Constructor & Destructor Documentation

◆ QPainterState() [1/2]

QPainterState::QPainterState ( )

Definition at line 7388 of file qpainter.cpp.

◆ QPainterState() [2/2]

QPainterState::QPainterState ( const QPainterState * s)

Definition at line 7370 of file qpainter.cpp.

References QPaintEngineState::dirtyFlags.

◆ ~QPainterState()

QPainterState::~QPainterState ( )
virtual

Definition at line 7394 of file qpainter.cpp.

Member Function Documentation

◆ init()

void QPainterState::init ( QPainter * p)

Member Data Documentation

◆ bgBrush

QBrush QPainterState::bgBrush = Qt::white

Definition at line 123 of file qpainter_p.h.

Referenced by init().

◆ bgMode

Qt::BGMode QPainterState::bgMode = Qt::TransparentMode

Definition at line 140 of file qpainter_p.h.

Referenced by init().

◆ brush

QBrush QPainterState::brush

Definition at line 122 of file qpainter_p.h.

Referenced by QPaintEngineEx::draw(), and QWindowsDirect2DPaintEngine::draw().

◆ brushOrigin

QPointF QPainterState::brushOrigin

Definition at line 118 of file qpainter_p.h.

Referenced by init().

◆ changeFlags

uint QPainterState::changeFlags = 0

Definition at line 145 of file qpainter_p.h.

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

◆ clipEnabled

uint QPainterState::clipEnabled

Definition at line 138 of file qpainter_p.h.

Referenced by init().

◆ clipInfo

QList<QPainterClipInfo> QPainterState::clipInfo

Definition at line 128 of file qpainter_p.h.

Referenced by init().

◆ clipOperation

Qt::ClipOperation QPainterState::clipOperation = Qt::NoClip

Definition at line 126 of file qpainter_p.h.

Referenced by init().

◆ clipPath

QPainterPath QPainterState::clipPath

Definition at line 125 of file qpainter_p.h.

Referenced by init().

◆ clipRegion

QRegion QPainterState::clipRegion

Definition at line 124 of file qpainter_p.h.

Referenced by init().

◆ composition_mode

Definition at line 143 of file qpainter_p.h.

Referenced by QOpenGL2PaintEngineEx::drawTextItem(), and init().

◆ deviceFont

QFont QPainterState::deviceFont

Definition at line 120 of file qpainter_p.h.

Referenced by init().

◆ emulationSpecifier

uint QPainterState::emulationSpecifier = 0

Definition at line 144 of file qpainter_p.h.

Referenced by init().

◆ font

QFont QPainterState::font

Definition at line 119 of file qpainter_p.h.

Referenced by init().

◆ layoutDirection

Qt::LayoutDirection QPainterState::layoutDirection

Definition at line 142 of file qpainter_p.h.

Referenced by init().

◆ matrix

◆ opacity

qreal QPainterState::opacity = 1

Definition at line 134 of file qpainter_p.h.

Referenced by QPaintEngineEx::drawPixmapFragments(), and init().

◆ painter

QPainter* QPainterState::painter = nullptr

Definition at line 141 of file qpainter_p.h.

Referenced by init().

◆ pen

◆ redirectionMatrix

QTransform QPainterState::redirectionMatrix

Definition at line 131 of file qpainter_p.h.

◆ renderHints

QPainter::RenderHints QPainterState::renderHints

◆ vh

int QPainterState::vh = 0

Definition at line 133 of file qpainter_p.h.

Referenced by init().

◆ vw

int QPainterState::vw = 0

Definition at line 133 of file qpainter_p.h.

Referenced by init().

◆ vx

int QPainterState::vx = 0

Definition at line 133 of file qpainter_p.h.

Referenced by init().

◆ VxF

uint QPainterState::VxF

Definition at line 137 of file qpainter_p.h.

Referenced by init().

◆ vy

int QPainterState::vy = 0

Definition at line 133 of file qpainter_p.h.

Referenced by init().

◆ wh

int QPainterState::wh = 0

Definition at line 132 of file qpainter_p.h.

Referenced by init().

◆ worldMatrix

QTransform QPainterState::worldMatrix

Definition at line 129 of file qpainter_p.h.

Referenced by init().

◆ ww

int QPainterState::ww = 0

Definition at line 132 of file qpainter_p.h.

Referenced by init().

◆ wx

int QPainterState::wx = 0

Definition at line 132 of file qpainter_p.h.

Referenced by init().

◆ WxF

uint QPainterState::WxF

Definition at line 136 of file qpainter_p.h.

Referenced by init().

◆ wy

int QPainterState::wy = 0

Definition at line 132 of file qpainter_p.h.

Referenced by init().


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