QGIS/python/gui/auto_generated/qgsprevieweffect.sip.in

69 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprevieweffect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-05-18 15:22:26 +02:00
2017-06-07 16:16:21 +02:00
class QgsPreviewEffect: QGraphicsEffect
{
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A graphics effect which can be applied to a widget to simulate various printing and
color blindness modes.
2017-06-07 16:16:21 +02:00
%End
%TypeHeaderCode
2014-05-18 15:22:26 +02:00
#include "qgsprevieweffect.h"
%End
public:
enum PreviewMode
{
PreviewGrayscale,
PreviewMono,
PreviewProtanope,
PreviewDeuteranope
};
QgsPreviewEffect( QObject *parent /TransferThis/ );
void setMode( PreviewMode mode );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mode: PreviewMode to use to draw the widget
2017-06-07 16:16:21 +02:00
.. versionadded:: 2.3
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`mode`
2017-06-07 16:16:21 +02:00
%End
PreviewMode mode() const;
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the mode used for the preview effect.
:return: PreviewMode currently used by the effect
2017-06-07 16:16:21 +02:00
.. versionadded:: 2.3
2017-12-15 10:36:55 -04:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setMode`
2017-06-07 16:16:21 +02:00
%End
protected:
virtual void draw( QPainter *painter );
2017-06-07 16:16:21 +02:00
};
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprevieweffect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/