Struct workspace2::ModalLayer
source · pub struct ModalLayer { /* private fields */ }
Implementations§
source§impl ModalLayer
impl ModalLayer
pub fn new() -> Self
pub fn toggle_modal<V, B>( &mut self, cx: &mut ViewContext<'_, Self>, build_view: B )where V: ManagedView, B: FnOnce(&mut ViewContext<'_, V>) -> V,
pub fn show_modal<V>( &mut self, new_modal: View<V>, cx: &mut ViewContext<'_, Self> )where V: ManagedView,
pub fn hide_modal(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn active_modal<V>(&self) -> Option<View<V>>where V: 'static,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModalLayer
impl !Send for ModalLayer
impl !Sync for ModalLayer
impl Unpin for ModalLayer
impl !UnwindSafe for ModalLayer
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