QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
A combobox which lets the user select blend modes from a predefined list. More...
#include <qgsblendmodecombobox.h>
Public Slots | |
void | updateModes () |
Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes. | |
Public Member Functions | |
QgsBlendModeComboBox (QWidget *parent=nullptr) | |
Constructor for QgsBlendModeComboBox. | |
QPainter::CompositionMode | blendMode () |
Returns the selected blend mode. | |
void | setBlendMode (QPainter::CompositionMode blendMode) |
Sets the selected blend mode. | |
void | setShowClippingModes (bool show) |
Sets whether composition modes which cause clipping are shown in the combo box. | |
bool | showClippingModes () const |
Returns true if composition modes which cause clipping are shown in the combo box. | |
A combobox which lets the user select blend modes from a predefined list.
Definition at line 30 of file qgsblendmodecombobox.h.
QgsBlendModeComboBox::QgsBlendModeComboBox | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsBlendModeComboBox.
Definition at line 28 of file qgsblendmodecombobox.cpp.
QPainter::CompositionMode QgsBlendModeComboBox::blendMode | ( | ) |
Returns the selected blend mode.
Definition at line 75 of file qgsblendmodecombobox.cpp.
void QgsBlendModeComboBox::setBlendMode | ( | QPainter::CompositionMode | blendMode | ) |
Sets the selected blend mode.
Definition at line 80 of file qgsblendmodecombobox.cpp.
void QgsBlendModeComboBox::setShowClippingModes | ( | bool | show | ) |
Sets whether composition modes which cause clipping are shown in the combo box.
By default, these composition modes (such as QPainter::CompositionMode::CompositionMode_DestinationIn ) are not shown in the combo box, as they can only be used with predictable results in a limited set of circumstances. By setting show to true
these additional composition modes will be shown in the combo box.
Definition at line 85 of file qgsblendmodecombobox.cpp.
bool QgsBlendModeComboBox::showClippingModes | ( | ) | const |
Returns true
if composition modes which cause clipping are shown in the combo box.
By default, these composition modes (such as QPainter::CompositionMode::CompositionMode_DestinationIn ) are not shown in the combo box, as they can only be used with predictable results in a limited set of circumstances.
Definition at line 94 of file qgsblendmodecombobox.cpp.
|
slot |
Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes.
Definition at line 35 of file qgsblendmodecombobox.cpp.