Handler that translates hover gesture events to a hovering operation.
More...
#include <luciad/controllers/HoverEventHandler.h>
Handler that translates hover gesture events to a hovering operation.
Features under the cursor will have their luciad::FeatureState::hover()
state updated.
- Since
- 2020.1
◆ HoverEventHandler() [1/2]
luciad::HoverEventHandler::HoverEventHandler |
( |
| ) |
|
◆ ~HoverEventHandler()
luciad::HoverEventHandler::~HoverEventHandler |
( |
| ) |
|
◆ HoverEventHandler() [2/2]
◆ getMargin()
size_t luciad::HoverEventHandler::getMargin |
( |
| ) |
const |
|
noexcept |
Returns the margin used to detect if a feature is considered under the cursor or not.
The default value is 5 pixels.
- Returns
- the margin used to detect if a feature is considered under the cursor or not.
◆ onMouseMoveEvent()
EventResult luciad::HoverEventHandler::onMouseMoveEvent |
( |
const std::shared_ptr< MouseMoveEvent > & |
moveEvent, |
|
|
const std::shared_ptr< Map > & |
map |
|
) |
| |
◆ operator=()
◆ setMargin()
void luciad::HoverEventHandler::setMargin |
( |
size_t |
margin | ) |
|
Sets the margin used to detect if a feature is considered under the cursor or not.
This margin is expressed in device independent pixels. By default, the margin is 5 pixels.
- Parameters
-