pub struct LiveImageSignals {
pub frame_size: Signal<Option<(u32, u32)>>,
pub status: Signal<LiveImageStatus>,
}Expand description
The two Signals an attachment writes: a source’s size and status as the window’s last layout saw them. A widget showing a live image owns them from construction, so they exist before it mounts and survive a switch to another source.
Fields§
§frame_size: Signal<Option<(u32, u32)>>The size layout uses: the buffer’s, else the size hint; None with
neither. Written only by the layout pre-pass and by an attach. Bind it
at Relayout.
status: Signal<LiveImageStatus>Written only by the layout pre-pass and by an attach. Bind it at
RepaintOnly, and at AccessibilityOnly where it changes what is
announced.
Implementations§
Source§impl LiveImageSignals
impl LiveImageSignals
Sourcepub fn new(source: &LiveImageSource) -> Self
pub fn new(source: &LiveImageSource) -> Self
Signals holding source’s current size and status.
Trait Implementations§
Source§impl Clone for LiveImageSignals
impl Clone for LiveImageSignals
Source§impl Debug for LiveImageSignals
impl Debug for LiveImageSignals
Auto Trait Implementations§
impl !RefUnwindSafe for LiveImageSignals
impl !Send for LiveImageSignals
impl !Sync for LiveImageSignals
impl !UnwindSafe for LiveImageSignals
impl Freeze for LiveImageSignals
impl Unpin for LiveImageSignals
impl UnsafeUnpin for LiveImageSignals
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more