Scene
struct · ferroui-livecharts · v0.5.0
struct Scene
A complete frame in control-local device independent coordinates.
Members
sizeplot_boundsprimitiveshitslegendentity_keysautomatic_finding_strategynewhit_testtranslate
size
size: ferroui_base::Size
plot_bounds
plot_bounds: ferroui_base::Rect
primitives
primitives: Vec<Primitive>
hits
hits: Vec<HitRegion>
legend
legend: Vec<LegendItem>
entity_keys
entity_keys: std::collections::HashMap<PointId, (u64, u64)>
Stable model identities supplied by a host. Event indexes stay in PointId; transitions can follow the same model when a collection is reordered.
automatic_finding_strategy
automatic_finding_strategy: FindingStrategy
Resolved from the visible series by the engine, as in GetFindingStrategy.
new
fn new(size: Size, plot_bounds: Rect) -> Self
hit_test
fn hit_test(self: &Self, point: Point, strategy: FindingStrategy, tolerance: f64) -> Vec<&HitRegion>
translate
fn translate(self: &mut Self, offset: Point, output_size: Size) -> Result<(), ChartError>
Places an inner measurement in control coordinates, preserving geometry, clipping, exact hit shapes, hover slots and stable entity identities.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.