Subgroup: Inner
Class: QgsInnerShadowEffect¶
-
class
qgis.core.
QgsInnerShadowEffect
¶ Bases:
qgis._core.QgsShadowEffect
A paint effect which draws an offset and optionally blurred drop shadow within a picture.
New in version 2.9: Methods
begin
Begins intercepting paint operations to a render context. blendMode
Returns the blend mode for the effect blurLevel
Returns the blur level (strength) for the shadow. boundingRect
clone
color
Returns the color used for the shadow. create
Creates a new QgsInnerShadowEffect effect from a properties string map. draw
drawMode
Returns the draw mode for the effect. drawSource
enabled
Returns whether the effect is enabled end
Ends interception of paint operations to a render context, and draws the result to the render context after being modified by the effect. exteriorShadow
fixQPictureDpi
imageOffset
offsetAngle
Returns the angle used for offsetting the shadow. offsetDistance
Returns the distance used for offsetting the shadow. offsetMapUnitScale
Returns the map unit scale used for the shadow offset distance. offsetUnit
Returns the units used for the shadow offset distance. opacity
Returns the opacity for the effect. properties
readProperties
render
Renders a picture using the effect. saveProperties
Saves the current state of the effect to a DOM element. setBlendMode
Sets the blend mode for the effect setBlurLevel
Sets blur level (strength) for the shadow. setColor
Sets the color for the shadow. setDrawMode
Sets the draw mode for the effect. setEnabled
Sets whether the effect is enabled setOffsetAngle
Sets the angle for offsetting the shadow. setOffsetDistance
Sets the distance for offsetting the shadow. setOffsetMapUnitScale
Sets the map unit scale used for the shadow offset distance. setOffsetUnit
Sets the units used for the shadow offset distance. setOpacity
Sets the opacity
for the effect.source
sourceAsImage
type
Attributes
Modifier
ModifyAndRender
Render
-
boundingRect
()¶
-
clone
(self) → QgsInnerShadowEffect¶
-
create
(map: Dict[str, str]) → QgsPaintEffect¶ Creates a new QgsInnerShadowEffect effect from a properties string map.
Parameters: map – encoded properties string map Returns: new QgsInnerShadowEffect
-
draw
()¶
-
drawSource
()¶
-
exteriorShadow
(self) → bool¶
-
fixQPictureDpi
()¶
-
imageOffset
()¶
-
source
()¶
-
sourceAsImage
()¶
-
type
(self) → str¶
-