Home · All Classes · Main Classes · Deprecated
Public Member Functions | Protected Member Functions

MGraphicsEffect Class Reference

MGraphicsEffect provides styling support for QGraphicsEffect. More...

Inherits QGraphicsEffect.

List of all members.

Public Member Functions

 MGraphicsEffect (QObject *parent=0)
virtual ~MGraphicsEffect ()

Protected Member Functions

MGraphicsEffectStyleContainerstyle ()
const
MGraphicsEffectStyleContainer
style () const
virtual const char * styleType () const
virtual
MGraphicsEffectStyleContainer
createStyleContainer () const

Detailed Description

MGraphicsEffect provides styling support for QGraphicsEffect.

This class extends QGraphicsEffect with a style() function, through which a MGraphicsEffectStyleContainer derived class can be obtained containing a set of effects properties read from CSS.

This class is not meant to be used directly, instead it serves as a base class for other widget effects. Classes deriving from MGraphicsEffect should implement a style derived from MGraphicsEffectStyle that describes the style properties of the effects in the group.

Classes inheriting MGraphicsEffect need to include the M_GRAPHICS_EFFECT macro in the class definiton, specifying the classname of the style to be used.


Constructor & Destructor Documentation

MGraphicsEffect::MGraphicsEffect ( QObject parent = 0  ) 
MGraphicsEffect::~MGraphicsEffect (  )  [virtual]

Member Function Documentation

MGraphicsEffectStyleContainer * MGraphicsEffect::createStyleContainer (  )  const [protected, virtual]

Instantiates a style container for this graphics effect.

The M_GRAPHICS_EFFECT macro, added to inheriting classes, overrides this method to return the correct type.

const MGraphicsEffectStyleContainer & MGraphicsEffect::style (  )  const [protected]

Returns a style container object for this graphics effect - const version.

The M_GRAPHICS_EFFECT macro, added to inheriting classes, overrides this method to return the correct type.

MGraphicsEffectStyleContainer & MGraphicsEffect::style (  )  [protected]

Returns a style container object for this graphics effect.

The M_GRAPHICS_EFFECT macro, added to inheriting classes, overrides this method to return the correct type.

const char * MGraphicsEffect::styleType (  )  const [protected, virtual]

Returns the type of the style this graphics effect uses.

This is the name used in the CSS file.

The M_GRAPHICS_EFFECT macro, added to inheriting classes, overrides this method to return the correct type.


Copyright © 2010 Nokia Corporation
MeeGo Touch