QgsInnerShadowEffect class

A paint effect which draws an offset and optionally blurred drop shadow within a picture.

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 QgsInnerShadowEffect effect from a properties string map.

Public functions

auto clone() const -> QgsInnerShadowEffect* 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* QgsInnerShadowEffect::create(const QgsStringMap& map)

Creates a new QgsInnerShadowEffect effect from a properties string map.

Parameters
map encoded properties string map
Returns new QgsInnerShadowEffect

QgsInnerShadowEffect* QgsInnerShadowEffect::clone() const override

Duplicates an effect by creating a deep copy of the effect.

Returns clone of paint effect

QString QgsInnerShadowEffect::type() const override

Returns the effect type.

Returns unique string representation of the effect type

bool QgsInnerShadowEffect::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