Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Friends

QGraphicsEffect Class Reference

Search for all occurrences

Detailed Description

Definition at line 66 of file qgraphicseffect.h.

#include <qgraphicseffect.h>

Inheritance diagram for QGraphicsEffect:
Inheritance graph
[legend]

List of all members.

Public Types

enum   ChangeFlag { SourceAttached = 0x1, SourceDetached = 0x2, SourceBoundingRectChanged = 0x4, SourceInvalidated = 0x8 }
enum   PixmapPadMode { NoPad, PadToTransparentBorder, PadToEffectiveBoundingRect }

Public Slots

void  setEnabled (bool enable)
void  update ()

Signals

void  enabledChanged (bool enabled)

Public Member Functions

  QGraphicsEffect (QObject *parent=0)
virtual  ~QGraphicsEffect ()
virtual QRectF  boundingRectFor (const QRectF &sourceRect) const
QRectF  boundingRect () const
bool  isEnabled () const
QGraphicsEffectSource *  source () const

Protected Member Functions

  QGraphicsEffect (QGraphicsEffectPrivate &d, QObject *parent=0)
virtual void  draw (QPainter *painter)=0
virtual void  sourceChanged (ChangeFlags flags)
void  updateBoundingRect ()
bool  sourceIsPixmap () const
QRectF  sourceBoundingRect (Qt::CoordinateSystem system=Qt::LogicalCoordinates) const
void  drawSource (QPainter *painter)
QPixmap  sourcePixmap (Qt::CoordinateSystem system=Qt::LogicalCoordinates, QPoint *offset=0, PixmapPadMode mode=PadToEffectiveBoundingRect) const

Properties

bool  enabled

Friends

class  QGraphicsItem
class  QGraphicsItemPrivate
class  QGraphicsScenePrivate
class  QWidget
class  QWidgetPrivate

Member Enumeration Documentation

enum ChangeFlag
Enumerator:
SourceAttached 
SourceDetached 
SourceBoundingRectChanged 
SourceInvalidated 

Definition at line 72 of file qgraphicseffect.h.


Constructor & Destructor Documentation

QGraphicsEffect ( QObject parent = 0 )
virtual ~QGraphicsEffect ( ) [virtual]
QGraphicsEffect ( QGraphicsEffectPrivate &  d,
QObject parent = 0 
) [protected]

Member Function Documentation

virtual QRectF boundingRectFor ( const QRectF sourceRect ) const [virtual]
QRectF boundingRect ( ) const
bool isEnabled ( ) const
void setEnabled ( bool  enable ) [slot]
void update ( ) [slot]
void enabledChanged ( bool  enabled ) [signal]
virtual void draw ( QPainter painter ) [protected, pure virtual]
virtual void sourceChanged ( ChangeFlags  flags ) [protected, virtual]
void updateBoundingRect ( ) [protected]
bool sourceIsPixmap ( ) const [protected]
QRectF sourceBoundingRect ( Qt::CoordinateSystem  system = Qt::LogicalCoordinates ) const [protected]
void drawSource ( QPainter painter ) [protected]
QPixmap sourcePixmap ( Qt::CoordinateSystem  system = Qt::LogicalCoordinates,
QPoint offset = 0,
PixmapPadMode  mode = PadToEffectiveBoundingRect 
) const [protected]
QGraphicsEffectSource* source ( ) const

Friends And Related Function Documentation

friend class QGraphicsItem [friend]

Definition at line 117 of file qgraphicseffect.h.

friend class QGraphicsItemPrivate [friend]

Definition at line 118 of file qgraphicseffect.h.

friend class QGraphicsScenePrivate [friend]

Definition at line 119 of file qgraphicseffect.h.

friend class QWidget [friend]

Reimplemented from QObject.

Definition at line 120 of file qgraphicseffect.h.

friend class QWidgetPrivate [friend]

Definition at line 121 of file qgraphicseffect.h.


Property Documentation

bool enabled [read, write]

Definition at line 70 of file qgraphicseffect.h.


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

QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect
QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect QGraphicsEffect