QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Protected Member Functions | List of all members
QgsLayoutEffect Class Reference

A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes. More...

#include <qgslayouteffect.h>

Inheritance diagram for QgsLayoutEffect:
Inheritance graph
[legend]

Public Member Functions

 QgsLayoutEffect ()=default
 Constructor for QgsLayoutEffect. More...
 
QPainter::CompositionMode compositionMode () const
 Returns the composition (blending) mode used for rendering the item. More...
 
void setCompositionMode (QPainter::CompositionMode mode)
 Sets the composition (blending) mode used for rendering the item. More...
 

Protected Member Functions

void draw (QPainter *painter) override
 

Detailed Description

A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes.

Since
QGIS 3.0

Definition at line 35 of file qgslayouteffect.h.

Constructor & Destructor Documentation

◆ QgsLayoutEffect()

QgsLayoutEffect::QgsLayoutEffect ( )
default

Constructor for QgsLayoutEffect.

Member Function Documentation

◆ compositionMode()

QPainter::CompositionMode QgsLayoutEffect::compositionMode ( ) const
inline

Returns the composition (blending) mode used for rendering the item.

See also
setCompositionMode()

Definition at line 58 of file qgslayouteffect.h.

◆ draw()

void QgsLayoutEffect::draw ( QPainter *  painter)
overrideprotected

Definition at line 22 of file qgslayouteffect.cpp.

◆ setCompositionMode()

void QgsLayoutEffect::setCompositionMode ( QPainter::CompositionMode  mode)

Sets the composition (blending) mode used for rendering the item.

See also
compositionMode()

Definition at line 53 of file qgslayouteffect.cpp.


The documentation for this class was generated from the following files: