SankeyNode
struct · ferroui-controls-livecharts · v0.5.0
struct SankeyNode
A node of a Sankey series (SankeyNode): its label and, in place of the source's
NodeColorMapper, an optional colour of its own. Links refer to the node object, as the
source links by reference; its value is computed by the layout.
Members
TYPEto_refconstructnewwith_nameentity_idsnapshotnameset_namecolorset_colorname_propertycolor_property
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SankeyNode>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_name
fn with_name(name: impl Into<String>) -> Ref<Self>
A node with the given label (SankeyNode(name)).
entity_id
fn entity_id(self: &Self) -> u64
The identity of the object, which the links and the engine use.
snapshot
fn snapshot(self: &Self) -> ferroui_livecharts::SankeyNode
name
fn name(self: &Self) -> String
set_name
fn set_name(self: &Self, value: String)
color
fn color(self: &Self) -> Option<Color>
set_color
fn set_color(self: &Self, value: Option<Color>)
name_property
fn name_property() -> &'static StyledProperty<String>
color_property
fn color_property() -> &'static StyledProperty<Option<Color>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SankeyNode>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.