FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreemapNode

    struct · ferroui-controls-livecharts · v0.5.0

    struct TreemapNode
    

    A node of a treemap series (TreemapNode). A leaf carries its weight in Value; an internal node has Children (an empty list is still an internal node) and either an explicit nonzero value or the sum of its children.

    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<TreemapNode>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_value

    fn with_value(value: f64, name: impl Into<String>) -> Ref<Self>
    

    A leaf of the given weight (TreemapNode(value, name)).

    Source

    with_children

    fn with_children(name: impl Into<String>, children: TreemapNodes) -> Ref<Self>
    

    An internal node whose weight is the sum of its children (TreemapNode(name, children)).

    Source

    entity_id

    fn entity_id(self: &Self) -> u64
    

    Source

    name

    fn name(self: &Self) -> String
    

    Source

    set_name

    fn set_name(self: &Self, value: String)
    

    Source

    value

    fn value(self: &Self) -> f64
    

    The weight of the node (Value).

    Source

    set_numeric_value

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

    Sets Value; named apart from the property system's set_value.

    Source

    children

    fn children(self: &Self) -> Option<TreemapNodes>
    

    The children, or None for a leaf.

    Source

    set_children

    fn set_children(self: &Self, value: Option<TreemapNodes>)
    

    Source

    name_property

    fn name_property() -> &'static StyledProperty<String>
    

    Source

    value_property

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

    Source

    children_property

    fn children_property() -> &'static StyledProperty<Option<TreemapNodes>>
    

    Source

    Trait implementations

    Availability

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