QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
gui
qgsmapcanvasinteractionblocker.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmapcanvasinteractionblocker.h
3
--------------------------------
4
begin : May 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot 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 QGSMAPCANVASINTERACTIONBLOCKER_H
19
#define QGSMAPCANVASINTERACTIONBLOCKER_H
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
30
class
GUI_EXPORT
QgsMapCanvasInteractionBlocker
31
{
32
public
:
33
37
enum class
Interaction
:
int
SIP_ENUM_BASETYPE
( IntFlag )
38
{
39
MapPanOnSingleClick = 1 << 0,
40
};
41
42
virtual
~QgsMapCanvasInteractionBlocker
() =
default
;
43
47
virtual
bool
blockCanvasInteraction
(
Interaction
interaction )
const
= 0;
48
49
};
50
51
#endif
// QGSMAPCANVASINTERACTIONBLOCKER_H
QgsMapCanvasInteractionBlocker
An interface for objects which block interactions with a QgsMapCanvas.
Definition
qgsmapcanvasinteractionblocker.h:31
QgsMapCanvasInteractionBlocker::~QgsMapCanvasInteractionBlocker
virtual ~QgsMapCanvasInteractionBlocker()=default
QgsMapCanvasInteractionBlocker::Interaction
Interaction
Available interactions to block.
Definition
qgsmapcanvasinteractionblocker.h:38
QgsMapCanvasInteractionBlocker::blockCanvasInteraction
virtual bool blockCanvasInteraction(Interaction interaction) const =0
Returns true if the specified interaction should be blocked.
qgis_sip.h
SIP_ENUM_BASETYPE
#define SIP_ENUM_BASETYPE(type)
Definition
qgis_sip.h:278
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8