FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SankeyLink

    struct · ferroui-controls-livecharts · v0.5.0

    struct SankeyLink
    

    A directed weighted edge of a Sankey series (SankeyLink) between two node objects and, in place of the source's LinkColorMapper, an optional colour of its own. A link without both ends, or with an end that is not a node of the series, is skipped by the layout.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SankeyLink>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_nodes

    fn with_nodes(source: &Ref<SankeyNode>, target: &Ref<SankeyNode>, weight: f64) -> Ref<Self>
    

    A link of the given weight from source to target (SankeyLink(source, target, weight)).

    Source

    entity_id

    fn entity_id(self: &Self) -> u64
    

    Source

    snapshot

    fn snapshot(self: &Self) -> ferroui_livecharts::SankeyLink
    

    The engine link. A missing end takes the identity 0, which no node has.

    Source

    source

    fn source(self: &Self) -> Option<Ref<SankeyNode>>
    

    Source

    set_source

    fn set_source(self: &Self, value: Option<Ref<SankeyNode>>)
    

    Source

    target

    fn target(self: &Self) -> Option<Ref<SankeyNode>>
    

    Source

    set_target

    fn set_target(self: &Self, value: Option<Ref<SankeyNode>>)
    

    Source

    weight

    fn weight(self: &Self) -> f64
    

    Source

    set_weight

    fn set_weight(self: &Self, value: f64)
    

    Source

    color

    fn color(self: &Self) -> Option<Color>
    

    Source

    set_color

    fn set_color(self: &Self, value: Option<Color>)
    

    Source

    source_property

    fn source_property() -> &'static StyledProperty<Option<Ref<SankeyNode>>>
    

    Source

    target_property

    fn target_property() -> &'static StyledProperty<Option<Ref<SankeyNode>>>
    

    Source

    weight_property

    fn weight_property() -> &'static StyledProperty<f64>
    

    Source

    color_property

    fn color_property() -> &'static StyledProperty<Option<Color>>
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.