PreviewPrototypePlayerView
struct · ferroui-designer · v0.5.0
struct PreviewPrototypePlayerView
Members
new
fn new(_palette: &Control) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
on_action
fn on_action(self: &Self, callback: impl Fn(PreviewPrototypePlayerAction, u64, Ref<Control>) -> Result<(), String> + 'static)
show_error
fn show_error(self: &Self, message: &str)
update
fn update(self: &Rc<Self>, host: Ref<Control>, size: PreviewStageSize, title: &str, hotspots: &[PreviewPrototypeHotspot], can_back: bool, epoch: u64)
update_layers
fn update_layers(self: &Rc<Self>, frame_size: PreviewStageSize, layers: &[PreviewPrototypePlayerLayer], title: &str, hotspots: &[PreviewPrototypeHotspot], can_back: bool, epoch: u64) -> Result<(), String>
Present a base screen and its modal overlays without rebuilding retained hosts. Hotspots are local to the topmost layer. A rejected descriptor leaves the accepted native presentation intact.
clear
fn clear(self: &Self)
Retire all captured callback epochs before the host drops its playback graph.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSameDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.