mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
This commit adds a new framework for implementing paint effects, which modify the results of QPainter operations to apply visual effects such as drop shadows and blurs. The initial implementation allows for effects to be applied to entire layers and individual symbol layers. Included are a drop shadow, inner shadow, blur, inner glow, outer glow, colorise and transform effect. A "stack" effect is also implemented which allows other paint effects to be combined in various ways. Sponsored by hundreds of generous kickstarter contributors!
31 lines
686 B
Plaintext
31 lines
686 B
Plaintext
|
|
/** \ingroup gui
|
|
* \class QgsEffectDrawModeComboBox
|
|
* \brief A combo box allowing selection of paint effect draw modes
|
|
*
|
|
* \note Added in version 2.9
|
|
*/
|
|
|
|
class QgsEffectDrawModeComboBox : QComboBox
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgseffectdrawmodecombobox.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsEffectDrawModeComboBox( QWidget* parent /TransferThis/ = NULL );
|
|
|
|
/** Returns the currently selected draw mode for the combo box
|
|
* @returns current draw mode
|
|
*/
|
|
QgsPaintEffect::DrawMode drawMode() const;
|
|
|
|
/** Sets the currently selected draw mode for the combo box
|
|
* @param drawMode selected draw mode
|
|
*/
|
|
void setDrawMode( QgsPaintEffect::DrawMode drawMode );
|
|
|
|
};
|
|
|