Enum zaplib_components::ChartEvent
source · [−]pub enum ChartEvent {
None,
PointerOut,
PointerHover {
cursor: Vec2,
cursor_value: Vec2,
current_element: Option<ChartCurrentElement>,
},
}
Variants
None
PointerOut
PointerHover
Fields
cursor: Vec2
Current mouse position relative to the chart boundaries. Useful for positioning tooltips.
cursor_value: Vec2
The value at the current mouse position This value might not be part of the input data. Instead, it’s interpolated based on normalized values.
current_element: Option<ChartCurrentElement>
If exists, we also retrieve the element in the input data that is closest to the current mouse position
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChartEvent
impl Send for ChartEvent
impl Sync for ChartEvent
impl Unpin for ChartEvent
impl UnwindSafe for ChartEvent
Blanket Implementations
Mutably borrows from an owned value. Read more