pub struct NativeViewScope { /* private fields */ }Expand description
A NativeView and its builder.
Implementations§
Source§impl NativeViewScope
impl NativeViewScope
Sourcepub fn visible(self, visible: bool) -> Self
pub fn visible(self, visible: bool) -> Self
Whether the view shows. A hidden view stays in the window with everything it holds, so showing it again shows the same page; only removing the node takes it out.
Sourcepub fn on_focus_change(self, handler: impl FnMut(bool) + 'static) -> Self
pub fn on_focus_change(self, handler: impl FnMut(bool) + 'static) -> Self
Hears the view take keyboard focus (true) and lose it (false): a click in it, a
focus request, the window going to the background and coming back.
Trait Implementations§
Source§impl Drop for NativeViewScope
impl Drop for NativeViewScope
Auto Trait Implementations§
impl !RefUnwindSafe for NativeViewScope
impl !Send for NativeViewScope
impl !Sync for NativeViewScope
impl !UnwindSafe for NativeViewScope
impl Forget for NativeViewScope
impl Freeze for NativeViewScope
impl Move for NativeViewScope
impl Unpin for NativeViewScope
impl UnsafeUnpin for NativeViewScope
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