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

#include <qsvgstyle_p.h>

Inheritance diagram for QSvgSolidColorStyle:
QSvgFillStyleProperty QSvgStyleProperty QSvgRefCounted

Public Functions

QBrush brush (QPainter *, QSvgExtraStates &)
 
const QColorqcolor () const
 
 QSvgSolidColorStyle (const QColor &color)
 
virtual Type type () const
 
- Public Functions inherited from QSvgFillStyleProperty
virtual void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states)
 
virtual void revert (QPainter *p, QSvgExtraStates &states)
 
- Public Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
- Public Functions inherited from QSvgRefCounted
void deref ()
 
 QSvgRefCounted ()
 
void ref ()
 
virtual ~QSvgRefCounted ()
 

Properties

QBrush m_oldFill
 
QPen m_oldStroke
 
QColor m_solidColor
 

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 549 of file qsvgstyle_p.h.

Constructors and Destructors

◆ QSvgSolidColorStyle()

QSvgSolidColorStyle::QSvgSolidColorStyle ( const QColor color)

Definition at line 405 of file qsvgstyle.cpp.

406  : m_solidColor(color)
407 {
408 }

Functions

◆ brush()

QBrush QSvgSolidColorStyle::brush ( QPainter ,
QSvgExtraStates  
)
inlinevirtual

Implements QSvgFillStyleProperty.

Definition at line 560 of file qsvgstyle_p.h.

561  {
562  return m_solidColor;
563  }

◆ qcolor()

const QColor& QSvgSolidColorStyle::qcolor ( ) const
inline

Definition at line 555 of file qsvgstyle_p.h.

556  {
557  return m_solidColor;
558  }

◆ type()

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

Implements QSvgStyleProperty.

Definition at line 482 of file qsvgstyle.cpp.

483 {
484  return SOLID_COLOR;
485 }

Properties

◆ m_oldFill

QBrush QSvgSolidColorStyle::m_oldFill
private

Definition at line 570 of file qsvgstyle_p.h.

◆ m_oldStroke

QPen QSvgSolidColorStyle::m_oldStroke
private

Definition at line 571 of file qsvgstyle_p.h.

◆ m_solidColor

QColor QSvgSolidColorStyle::m_solidColor
private

Definition at line 568 of file qsvgstyle_p.h.


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