HeatLand
struct · ferroui-controls-livecharts · v0.5.0
struct HeatLand
A weighted land of a heat land series (HeatLand): the key of a land of the map, its short
name (the ISO 3166-1 alpha-3 code in lower case on the world map), and its value.
Members
TYPEto_refconstructnewwith_valueentity_idsnapshotnameset_namevalueset_numeric_valuename_propertyvalue_property
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<HeatLand>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_value
fn with_value(name: impl Into<String>, value: f64) -> Ref<Self>
A land of the given key and value (HeatLand(name, value)).
entity_id
fn entity_id(self: &Self) -> u64
snapshot
fn snapshot(self: &Self) -> ferroui_livecharts::HeatLand
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 land (Value).
set_numeric_value
fn set_numeric_value(self: &Self, value: f64)
Sets Value; named apart from the property system's set_value.
name_property
fn name_property() -> &'static StyledProperty<String>
value_property
fn value_property() -> &'static StyledProperty<f64>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<HeatLand>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.