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
Mapwidget. - Marker
Context - The context passed to
NodeTemplate::marker_ui. - Notification
Context - The context passed to
NodeTemplate::notification_ui. - RawLine
- A straight line segment between two
RawPoints. - RawPoint
- A point (or vector) in 2D map coordinates.
Enums§
- Comet
Direction - Which endpoint a
SegmentAnimation::Cometpass starts from. - Node
Animation - A built-in effect that plays once and ends.
- Segment
Animation - A built-in effect that plays once and ends, for a segment.
- Steady
Animation - A built-in effect that runs until it is cleared.
- Steady
Segment Animation - A built-in effect that runs until it is cleared, for a segment.
- Visibility
Setting - Controls when the name of a node is displayed next to it.
Traits§
- Context
Menu Manager - Provides the contents of the widget’s right-click context menu.
- Node
Template - Customizes how nodes and their visual effects are rendered.
- Segment
Template - Customizes how segments and their visual effects are rendered.