Struct SankeyMarks
pub struct SankeyMarks { /* private fields */ }Trait Implementations§
§impl PlotMarks for SankeyMarks
impl PlotMarks for SankeyMarks
§type Activated = GraphSelection
type Activated = GraphSelection
What activating a mark reports through
Plot::take_activated.fn frame(&self) -> &PlotFrame<Hit>
fn frame_mut(&mut self) -> &mut PlotFrame<Hit>
§fn activation(&self, _: &Hit) -> Option<GraphSelection>
fn activation(&self, _: &Hit) -> Option<GraphSelection>
What activating
item reports; None when it is not activatable.§fn keyboard_items(&self) -> Vec<Hit>
fn keyboard_items(&self) -> Vec<Hit>
The marks the keyboard steps through, in order.
§fn items(&self) -> Vec<PlotItem<GraphSelection>>
fn items(&self) -> Vec<PlotItem<GraphSelection>>
Every mark the accessibility tree lists.
§fn paint(
&mut self,
scene: &mut Scene,
transform: Affine,
tr: &mut TextRenderer,
theme: &Theme,
)
fn paint( &mut self, scene: &mut Scene, transform: Affine, tr: &mut TextRenderer, theme: &Theme, )
Paints the marks. Call
Self::follow_keyboard_anchor once the
geometry is current and before painting the inspector.§fn legend_interactive(&self) -> bool
fn legend_interactive(&self) -> bool
Whether clicking a legend entry shows or hides its series.
fn toggles(&self) -> Option<&SeriesToggles>
fn toggles_mut(&mut self) -> Option<&mut SeriesToggles>
fn is_animating(&self) -> bool
§fn layout_height(&self) -> Option<f32>
fn layout_height(&self) -> Option<f32>
The height the chart lays out at;
None fills the parent.§fn natural_height(
&self,
_tr: &mut TextRenderer,
_theme: &Theme,
_width: f64,
) -> f64
fn natural_height( &self, _tr: &mut TextRenderer, _theme: &Theme, _width: f64, ) -> f64
The height a filling chart wants at
width when the parent leaves
it open.§fn event(&mut self, _event: &WindowEvent, _ctx: &mut EventCtx<'_>) -> bool
fn event(&mut self, _event: &WindowEvent, _ctx: &mut EventCtx<'_>) -> bool
Takes the events the shell’s own inspection cannot drive — zoom,
pan, brush, focus loss — before the shell inspects. Whether the
event was consumed.
§fn wants_pointer_capture(&self) -> bool
fn wants_pointer_capture(&self) -> bool
Whether a gesture is in flight and must keep receiving the pointer.
§fn visible_changed(&mut self)
fn visible_changed(&mut self)
A series was shown or hidden: marks that cache their domain or their
geometry drop it.
§fn follow_keyboard_anchor(&mut self)
fn follow_keyboard_anchor(&mut self)
Keeps the pointer on a mark the keyboard chose while the geometry
changes under it, so its inspector shows there.
Auto Trait Implementations§
impl Freeze for SankeyMarks
impl RefUnwindSafe for SankeyMarks
impl Send for SankeyMarks
impl Sync for SankeyMarks
impl Unpin for SankeyMarks
impl UnsafeUnpin for SankeyMarks
impl UnwindSafe for SankeyMarks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more