pub struct SurfaceRoot { /* private fields */ }Implementations§
Source§impl SurfaceRoot
impl SurfaceRoot
pub fn new(content: Box<dyn LayoutItem>) -> Result<Self, LayoutError>
pub fn animate_in(self) -> Self
Sourcepub fn animate(self, transition: SurfaceTransition) -> Self
pub fn animate(self, transition: SurfaceTransition) -> Self
Drives the root from a transition the caller owns, so it can also send the surface back out — see
SurfaceTransition::leave.
Trait Implementations§
Source§impl Component for SurfaceRoot
impl Component for SurfaceRoot
fn view(&self) -> RenderNode
fn on_event(&mut self, event: &Event) -> EventResult
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Human-readable widget type name for the devtools tree inspector.
Source§impl LayoutItem for SurfaceRoot
impl LayoutItem for SurfaceRoot
fn layout_node(&self) -> NodeId
Source§fn pointer_opaque(&self) -> bool
fn pointer_opaque(&self) -> bool
Whether this widget stands in front of whatever its siblings drew underneath it, for a pointer event
its parent is hit-testing. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SurfaceRoot
impl !Send for SurfaceRoot
impl !Sync for SurfaceRoot
impl !UnwindSafe for SurfaceRoot
impl Freeze for SurfaceRoot
impl Unpin for SurfaceRoot
impl UnsafeUnpin for SurfaceRoot
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