pub struct HostedView {
pub id: String,
pub rect: Rect,
pub in_panel: bool,
pub content: Hosted,
pub offscreen: bool,
}Expand description
One view or player the host runs for the mode.
Fields§
§id: StringThe mode’s own name for it; events carry it back. Keep it stable across views: selection, scroll and a playing video follow the id.
rect: RectWhere it goes (window pixels, inside the mode’s dock or panel).
in_panel: boolOver the dock (false) or the floating panel (true).
content: Hosted§offscreen: boolKeep it registered without drawing it: an item view keeps its selection and scroll, a player keeps playing (a clip scrolled out of a transcript). It takes no keys while off screen.
Trait Implementations§
Source§impl Clone for HostedView
impl Clone for HostedView
Source§impl Debug for HostedView
impl Debug for HostedView
Source§impl<'de> Deserialize<'de> for HostedView
impl<'de> Deserialize<'de> for HostedView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostedView
Source§impl PartialEq for HostedView
impl PartialEq for HostedView
Source§impl Serialize for HostedView
impl Serialize for HostedView
impl StructuralPartialEq for HostedView
Auto Trait Implementations§
impl Forget for HostedView
impl Freeze for HostedView
impl RefUnwindSafe for HostedView
impl Send for HostedView
impl Sync for HostedView
impl Unpin for HostedView
impl UnsafeUnpin for HostedView
impl UnwindSafe for HostedView
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