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.
Members
TYPEto_refconstructnewwith_valuewith_childrenentity_idnameset_namevalueset_numeric_valuechildrenset_childrenname_propertyvalue_propertychildren_property
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreemapNode>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_value
fn with_value(value: f64, name: impl Into<String>) -> Ref<Self>
A leaf of the given weight (TreemapNode(value, name)).
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)).
entity_id
fn entity_id(self: &Self) -> u64
name
fn name(self: &Self) -> String
set_name
fn set_name(self: &Self, value: String)
value
fn value(self: &Self) -> f64
The weight of the node (Value).
set_numeric_value
fn set_numeric_value(self: &Self, value: f64)
Sets Value; named apart from the property system's set_value.
children
fn children(self: &Self) -> Option<TreemapNodes>
The children, or None for a leaf.
set_children
fn set_children(self: &Self, value: Option<TreemapNodes>)
name_property
fn name_property() -> &'static StyledProperty<String>
value_property
fn value_property() -> &'static StyledProperty<f64>
children_property
fn children_property() -> &'static StyledProperty<Option<TreemapNodes>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<TreemapNode>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.