Chart
struct · ferroui-controls-charts · v0.5.0
struct Chart
Displays cartesian line, area and bar series with shared, observable data. Drawing goes through the framework's retained drawing context on every backend.
Members
TYPEto_refshow_legend_propertylegend_title_propertyconstructnewshow_legendset_show_legendlegend_titleset_legend_titleseriesaxesdatarevisionscene_build_countlayout_snapshot
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Chart>
Returns a strong reference to this object.
show_legend_property
fn show_legend_property() -> &'static StyledProperty<bool>
legend_title_property
fn legend_title_property() -> &'static StyledProperty<String>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
show_legend
fn show_legend(self: &Self) -> bool
set_show_legend
fn set_show_legend(self: &Self, value: bool)
legend_title
fn legend_title(self: &Self) -> String
set_legend_title
fn set_legend_title(self: &Self, value: impl Into<String>)
series
fn series(self: &Self) -> ChartSeriesCollection
axes
fn axes(self: &Self) -> ChartAxisCollection
data
fn data(self: &Self) -> ChartDataCollection
revision
fn revision(self: &Self) -> u64
Increases on a data, collection, style or layout-related property change.
scene_build_count
fn scene_build_count(self: &Self) -> u64
Number of retained scene rebuilds. Unchanged paints reuse the same scene.
layout_snapshot
fn layout_snapshot(self: &Self, size: Size) -> ChartLayout
Returns the calculated plot and point positions without drawing. A normal framework text service is required, as for measuring any text control.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<Chart>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplTemplatedControlImplFerroObjectImplLayoutableImplVisualImplControlImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.