|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
A graphics effect which can be applied to a widget to simulate various printing and color blindness modes. More...
#include <qgsprevieweffect.h>

Public Types | |
| enum | PreviewMode { PreviewGrayscale , PreviewMono , PreviewProtanope , PreviewDeuteranope , PreviewTritanope } |
Public Member Functions | |
| QgsPreviewEffect (QObject *parent) | |
| PreviewMode | mode () const |
| Returns the mode used for the preview effect. | |
| void | setMode (PreviewMode mode) |
| Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance. | |
Protected Member Functions | |
| void | draw (QPainter *painter) override |
A graphics effect which can be applied to a widget to simulate various printing and color blindness modes.
Definition at line 31 of file qgsprevieweffect.h.
| Enumerator | |
|---|---|
| PreviewGrayscale | |
| PreviewMono | |
| PreviewProtanope | |
| PreviewDeuteranope | |
| PreviewTritanope | |
Definition at line 36 of file qgsprevieweffect.h.
| QgsPreviewEffect::QgsPreviewEffect | ( | QObject * | parent | ) |
Definition at line 22 of file qgsprevieweffect.cpp.
|
overrideprotected |
Definition at line 36 of file qgsprevieweffect.cpp.
|
inline |
Returns the mode used for the preview effect.
Definition at line 59 of file qgsprevieweffect.h.
| void QgsPreviewEffect::setMode | ( | QgsPreviewEffect::PreviewMode | mode | ) |
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.
| mode | PreviewMode to use to draw the widget |
Definition at line 30 of file qgsprevieweffect.cpp.