QgsDropShadowEffect class
A paint effect which draws an offset and optionally blurred drop shadow.
Contents
Base classes
- class QgsShadowEffect
- Base class for paint effects which offset, blurred shadows.
Public static functions
- static auto create(const QgsStringMap& map) -> QgsPaintEffect*
- Creates a new QgsDropShadowEffect effect from a properties string map.
Public functions
- auto clone() const -> QgsDropShadowEffect* override
- Duplicates an effect by creating a deep copy of the effect.
- auto type() const -> QString override
- Returns the effect type.
Protected functions
- auto exteriorShadow() const -> bool override
- Specifies whether the shadow is drawn outside the picture or within the picture.
Function documentation
static QgsPaintEffect* QgsDropShadowEffect:: create(const QgsStringMap& map)
Creates a new QgsDropShadowEffect effect from a properties string map.
| Parameters | |
|---|---|
| map | encoded properties string map |
| Returns | new QgsDropShadowEffect |
QgsDropShadowEffect* QgsDropShadowEffect:: clone() const override
Duplicates an effect by creating a deep copy of the effect.
| Returns | clone of paint effect |
|---|
QString QgsDropShadowEffect:: type() const override
Returns the effect type.
| Returns | unique string representation of the effect type |
|---|
bool QgsDropShadowEffect:: exteriorShadow() const override protected
Specifies whether the shadow is drawn outside the picture or within the picture.
| Returns | true if shadow is to be drawn outside the picture, or false to draw shadow within the picture |
|---|