Qt 4.8
Public Functions | Properties | List of all members
QSvgCompOpStyle Class Reference

#include <qsvgstyle_p.h>

Inheritance diagram for QSvgCompOpStyle:
QSvgStyleProperty QSvgRefCounted

Public Functions

virtual void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states)
 
const QPainter::CompositionModecompOp () const
 
 QSvgCompOpStyle (QPainter::CompositionMode mode)
 
virtual void revert (QPainter *p, QSvgExtraStates &states)
 
virtual Type type () const
 
- Public Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
- Public Functions inherited from QSvgRefCounted
void deref ()
 
 QSvgRefCounted ()
 
void ref ()
 
virtual ~QSvgRefCounted ()
 

Properties

QPainter::CompositionMode m_mode
 
QPainter::CompositionMode m_oldMode
 

Additional Inherited Members

- Public Types inherited from QSvgStyleProperty
enum  Type {
  QUALITY, FILL, VIEWPORT_FILL, FONT,
  STROKE, SOLID_COLOR, GRADIENT, TRANSFORM,
  ANIMATE_TRANSFORM, ANIMATE_COLOR, OPACITY, COMP_OP
}
 

Detailed Description

Definition at line 731 of file qsvgstyle_p.h.

Constructors and Destructors

◆ QSvgCompOpStyle()

QSvgCompOpStyle::QSvgCompOpStyle ( QPainter::CompositionMode  mode)

Definition at line 498 of file qsvgstyle.cpp.

499  : m_mode(mode)
500 {
501 
502 }
QPainter::CompositionMode m_mode
Definition: qsvgstyle_p.h:745

Functions

◆ apply()

void QSvgCompOpStyle::apply ( QPainter p,
const QSvgNode node,
QSvgExtraStates states 
)
virtual

Implements QSvgStyleProperty.

Definition at line 504 of file qsvgstyle.cpp.

505 {
506  m_oldMode = p->compositionMode();
508 }
CompositionMode compositionMode() const
Returns the current composition mode.
Definition: qpainter.cpp:2466
void setCompositionMode(CompositionMode mode)
Sets the composition mode to the given mode.
Definition: qpainter.cpp:2422
QPainter::CompositionMode m_oldMode
Definition: qsvgstyle_p.h:747
QPainter::CompositionMode m_mode
Definition: qsvgstyle_p.h:745

◆ compOp()

const QPainter::CompositionMode& QSvgCompOpStyle::compOp ( ) const
inline

Definition at line 739 of file qsvgstyle_p.h.

740  {
741  return m_mode;
742  }
QPainter::CompositionMode m_mode
Definition: qsvgstyle_p.h:745

◆ revert()

void QSvgCompOpStyle::revert ( QPainter p,
QSvgExtraStates states 
)
virtual

Implements QSvgStyleProperty.

Definition at line 510 of file qsvgstyle.cpp.

511 {
513 }
void setCompositionMode(CompositionMode mode)
Sets the composition mode to the given mode.
Definition: qpainter.cpp:2422
QPainter::CompositionMode m_oldMode
Definition: qsvgstyle_p.h:747

◆ type()

QSvgStyleProperty::Type QSvgCompOpStyle::type ( ) const
virtual

Implements QSvgStyleProperty.

Definition at line 515 of file qsvgstyle.cpp.

516 {
517  return COMP_OP;
518 }

Properties

◆ m_mode

QPainter::CompositionMode QSvgCompOpStyle::m_mode
private

Definition at line 745 of file qsvgstyle_p.h.

Referenced by apply().

◆ m_oldMode

QPainter::CompositionMode QSvgCompOpStyle::m_oldMode
private

Definition at line 747 of file qsvgstyle_p.h.

Referenced by apply(), and revert().


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