Definition at line 66 of file qgraphicseffect.h.
#include <qgraphicseffect.h>

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 |
| enum ChangeFlag |
Definition at line 72 of file qgraphicseffect.h.
{
SourceAttached = 0x1,
SourceDetached = 0x2,
SourceBoundingRectChanged = 0x4,
SourceInvalidated = 0x8
};
| enum PixmapPadMode |
Definition at line 80 of file qgraphicseffect.h.
| QGraphicsEffect | ( | QObject * | parent = 0 |
) |
| virtual ~QGraphicsEffect | ( | ) | [virtual] |
| QGraphicsEffect | ( | QGraphicsEffectPrivate & | d, |
| QObject * | parent = 0 |
||
| ) | [protected] |
Reimplemented in QGraphicsBlurEffect, and QGraphicsDropShadowEffect.
| 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 |
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.
bool enabled [read, write] |
Definition at line 70 of file qgraphicseffect.h.