QtBase
v6.3.1
|
#include <qgraphicseffect_p.h>
Protected Member Functions | |
QGraphicsEffectSource (QGraphicsEffectSourcePrivate &dd, QObject *parent=nullptr) | |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Friends | |
class | QGraphicsEffect |
class | QGraphicsEffectPrivate |
class | QGraphicsScenePrivate |
class | QGraphicsItem |
class | QGraphicsItemPrivate |
class | QWidget |
class | QWidgetPrivate |
Definition at line 67 of file qgraphicseffect_p.h.
QGraphicsEffectSource::~QGraphicsEffectSource | ( | ) |
Destroys the effect source.
Definition at line 149 of file qgraphicseffect.cpp.
|
protected |
Definition at line 142 of file qgraphicseffect.cpp.
QRectF QGraphicsEffectSource::boundingRect | ( | Qt::CoordinateSystem | system = Qt::LogicalCoordinates | ) | const |
Returns the bounding rectangle of the source mapped to the given system.
Definition at line 157 of file qgraphicseffect.cpp.
QRect QGraphicsEffectSource::deviceRect | ( | ) | const |
Draws the source using the given painter.
This function should only be called from QGraphicsEffect::draw().
Definition at line 219 of file qgraphicseffect.cpp.
const QGraphicsItem * QGraphicsEffectSource::graphicsItem | ( | ) | const |
Returns a pointer to the item if this source is a QGraphicsItem; otherwise returns \nullptr.
Definition at line 185 of file qgraphicseffect.cpp.
bool QGraphicsEffectSource::isPixmap | ( | ) | const |
Returns true
if the source effectively is a pixmap, e.g., a QGraphicsPixmapItem.
This function is useful for optimization purposes. For instance, there's no point in drawing the source in device coordinates to avoid pixmap scaling if this function returns true
- the source pixmap will be scaled anyways.
Definition at line 278 of file qgraphicseffect.cpp.
QPixmap QGraphicsEffectSource::pixmap | ( | Qt::CoordinateSystem | system = Qt::LogicalCoordinates , |
QPoint * | offset = nullptr , |
||
QGraphicsEffect::PixmapPadMode | mode = QGraphicsEffect::PadToEffectiveBoundingRect |
||
) | const |
Returns a pixmap with the source painted into it.
The system specifies which coordinate system to be used for the source. The optional offset parameter returns the offset where the pixmap should be painted at using the current painter.
The mode determines how much of the effect the pixmap will contain. By default, the pixmap will contain the whole effect.
The returned pixmap is bound to the current painter's device rectangle when system is Qt::DeviceCoordinates.
Definition at line 311 of file qgraphicseffect.cpp.
const QStyleOption * QGraphicsEffectSource::styleOption | ( | ) | const |
Returns a pointer to the style options (used when drawing the source) if available; otherwise returns \nullptr.
Definition at line 207 of file qgraphicseffect.cpp.
void QGraphicsEffectSource::update | ( | ) |
Schedules a redraw of the source. Call this function whenever the source needs to be redrawn.
Definition at line 265 of file qgraphicseffect.cpp.
Returns a pointer to the widget if this source is a QWidget; otherwise returns \nullptr.
Definition at line 196 of file qgraphicseffect.cpp.
|
friend |
Definition at line 92 of file qgraphicseffect_p.h.
|
friend |
Definition at line 93 of file qgraphicseffect_p.h.
|
friend |
Definition at line 95 of file qgraphicseffect_p.h.
|
friend |
Definition at line 96 of file qgraphicseffect_p.h.
|
friend |
Definition at line 94 of file qgraphicseffect_p.h.
|
friend |
Definition at line 97 of file qgraphicseffect_p.h.
|
friend |
Definition at line 98 of file qgraphicseffect_p.h.