QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsblendmodecombobox.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsblendmodecombobox.h
3
------------------------
4
begin : March 21, 2013
5
copyright : (C) 2013 by Nyall Dawson
6
email : nyall.dawson@gmail.com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSBLENDMODECOMBOBOX_H
19
#define QGSBLENDMODECOMBOBOX_H
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
24
#include <QComboBox>
25
#include <QPainter>
26
31
class
GUI_EXPORT
QgsBlendModeComboBox
:
public
QComboBox
32
{
33
Q_OBJECT
34
public
:
36
QgsBlendModeComboBox
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
37
42
QPainter::CompositionMode
blendMode
();
43
48
void
setBlendMode
( QPainter::CompositionMode
blendMode
);
49
61
void
setShowClippingModes
(
bool
show );
62
73
bool
showClippingModes
()
const
;
74
75
private
:
76
bool
mShowClipModes =
false
;
77
78
public
slots:
79
84
void
updateModes
();
85
};
86
87
#endif
// QGSBLENDMODECOMBOBOX_H
QgsBlendModeComboBox::setBlendMode
void setBlendMode(QPainter::CompositionMode blendMode)
Sets the selected blend mode.
Definition
qgsblendmodecombobox.cpp:82
QgsBlendModeComboBox::setShowClippingModes
void setShowClippingModes(bool show)
Sets whether composition modes which cause clipping are shown in the combo box.
Definition
qgsblendmodecombobox.cpp:87
QgsBlendModeComboBox::QgsBlendModeComboBox
QgsBlendModeComboBox(QWidget *parent=nullptr)
Constructor for QgsBlendModeComboBox.
Definition
qgsblendmodecombobox.cpp:30
QgsBlendModeComboBox::updateModes
void updateModes()
Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes.
Definition
qgsblendmodecombobox.cpp:37
QgsBlendModeComboBox::showClippingModes
bool showClippingModes() const
Returns true if composition modes which cause clipping are shown in the combo box.
Definition
qgsblendmodecombobox.cpp:96
QgsBlendModeComboBox::blendMode
QPainter::CompositionMode blendMode()
Returns the selected blend mode.
Definition
qgsblendmodecombobox.cpp:77
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
Generated on
for QGIS API Documentation by
1.17.0