Skip to main content

Module objects

Module objects 

Source
Expand description

Data types consumed by the Map widget.

This module contains the geometry primitives (RawPoint, RawLine), the map content types (MapPoint, MapSegment, MapLabel) and the customization points of the widget: MapSettings, Style, VisibilitySetting, ContextMenuManager and NodeTemplate. The color palette a Style paints with lives in super::theme, via MapTheme.

Structs§

MapLabel
A free-floating text label drawn on the map.
MapPoint
A node on the map: an id, a 2D position and an optional display name.
MapSegment
A connection line between two points on the map, ready to be stored in an rstar::RTree.
MapSettings
Configuration of a Map widget.
MarkerContext
The context passed to NodeTemplate::marker_ui.
NodeContext
The context passed to NodeTemplate::node_ui.
NotificationContext
The context passed to NodeTemplate::notification_ui.
RawLine
A straight line segment between two RawPoints.
RawPoint
A point (or vector) in 2D map coordinates.
SelectionContext
The context passed to NodeTemplate::selection_ui.

Enums§

CometDirection
Which endpoint a SegmentAnimation::Comet pass starts from.
NodeAnimation
A built-in effect that plays once and ends.
SegmentAnimation
A built-in effect that plays once and ends, for a segment.
SteadyAnimation
A built-in effect that runs until it is cleared.
SteadySegmentAnimation
A built-in effect that runs until it is cleared, for a segment.
VisibilitySetting
Controls when the name of a node is displayed next to it.

Traits§

ContextMenuManager
Provides the contents of the widget’s right-click context menu.
NodeTemplate
Customizes how nodes and their visual effects are rendered.
SegmentTemplate
Customizes how segments and their visual effects are rendered.