pub struct Window<U>where
U: Ui,{ /* private fields */ }Expand description
A container for a master Area in Parsec.
Implementations§
source§impl<U> Window<U>where
U: Ui + 'static,
impl<U> Window<U>where
U: Ui + 'static,
sourcepub fn new(
ui: &mut U,
widget: Widget<U>,
checker: impl Fn() -> bool + 'static,
) -> (Self, U::Area)
pub fn new( ui: &mut U, widget: Widget<U>, checker: impl Fn() -> bool + 'static, ) -> (Self, U::Area)
Returns a new instance of Window<U>.
sourcepub fn push(
&mut self,
widget: Widget<U>,
area: &U::Area,
checker: impl Fn() -> bool + 'static,
specs: PushSpecs,
cluster: bool,
) -> (U::Area, Option<U::Area>)
pub fn push( &mut self, widget: Widget<U>, area: &U::Area, checker: impl Fn() -> bool + 'static, specs: PushSpecs, cluster: bool, ) -> (U::Area, Option<U::Area>)
Pushes a Widget<U> onto an existing one.
sourcepub fn push_file(
&mut self,
widget: Widget<U>,
checker: impl Fn() -> bool + 'static,
specs: PushSpecs,
) -> (U::Area, Option<U::Area>)
pub fn push_file( &mut self, widget: Widget<U>, checker: impl Fn() -> bool + 'static, specs: PushSpecs, ) -> (U::Area, Option<U::Area>)
sourcepub fn push_to_master<Checker>(
&mut self,
widget: Widget<U>,
checker: Checker,
specs: PushSpecs,
) -> (U::Area, Option<U::Area>)
pub fn push_to_master<Checker>( &mut self, widget: Widget<U>, checker: Checker, specs: PushSpecs, ) -> (U::Area, Option<U::Area>)
Pushes a Widget<U> to the master node of the current
window.
sourcepub fn widgets(
&self,
) -> impl DoubleEndedIterator<Item = (&Widget<U>, &U::Area)> + Clone + '_
pub fn widgets( &self, ) -> impl DoubleEndedIterator<Item = (&Widget<U>, &U::Area)> + Clone + '_
pub fn nodes(&self) -> impl Iterator<Item = &Node<U>>
pub fn send_key(&self, key: KeyEvent, globals: Context<U>)
pub fn len_widgets(&self) -> usize
Auto Trait Implementations§
impl<U> Freeze for Window<U>
impl<U> !RefUnwindSafe for Window<U>
impl<U> Send for Window<U>
impl<U> Sync for Window<U>
impl<U> Unpin for Window<U>
impl<U> !UnwindSafe for Window<U>
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