QGIS/python/gui/qgsopacitywidget.sip
Nyall Dawson e58f25dbb9 Create new QgsOpacityWidget widget
Allows consistent behavior and appearance across all opacity controls
2017-05-30 11:36:24 +10:00

67 lines
2.0 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsopacitywidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsOpacityWidget : QWidget
{
%Docstring
A widget for setting an opacity value.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsopacitywidget.h"
%End
public:
explicit QgsOpacityWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsOpacityWidget.
%End
double opacity() const;
%Docstring
Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent)
to 1.0 (opaque).
.. seealso:: setOpacity()
.. seealso:: opacityChanged()
:rtype: float
%End
public slots:
void setOpacity( double opacity );
%Docstring
Sets the current ``opacity`` to show in the widget, where ``opacity`` ranges from 0.0 (transparent)
to 1.0 (opaque).
.. seealso:: opacity()
.. seealso:: opacityChanged()
%End
signals:
void opacityChanged( double opacity );
%Docstring
Emitted when the ``opacity`` is changed in the widget, where ``opacity`` ranges from 0.0 (transparent)
to 1.0 (opaque).
.. seealso:: setOpacity()
.. seealso:: opacity()
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsopacitywidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/