Class: QgsMapCanvasInteractionBlocker¶
- class qgis.gui.QgsMapCanvasInteractionBlocker¶
Bases:
sip.wrapper
An interface for objects which block interactions with a QgsMapCanvas.
New in version 3.14:
Enums
Bases:
enum.IntEnum
Methods
Returns
True
if the specifiedinteraction
should be blocked.- class Interaction(value)¶
Bases:
enum.IntEnum
Available interactions to block.
MapPanOnSingleClick
: A map pan interaction caused by a single click and release on the map canvas
- MapPanOnSingleClick = 1¶
- blockCanvasInteraction(self, interaction: QgsMapCanvasInteractionBlocker.Interaction) bool ¶
Returns
True
if the specifiedinteraction
should be blocked.- Parameters
interaction (QgsMapCanvasInteractionBlocker.Interaction) –
- Return type
bool