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<W: Widget<U>>(
ui: &mut U,
widget: W,
checker: impl Fn() -> bool + Send + Sync + 'static,
layout: Box<dyn Layout<U>>,
) -> (Self, Node<U>)
pub fn new<W: Widget<U>>( ui: &mut U, widget: W, checker: impl Fn() -> bool + Send + Sync + 'static, layout: Box<dyn Layout<U>>, ) -> (Self, Node<U>)
Returns a new instance of Window<U>
Sourcepub fn push<W: Widget<U>>(
&mut self,
widget: W,
area: &U::Area,
checker: impl Fn() -> bool + 'static,
specs: PushSpecs,
cluster: bool,
) -> (Node<U>, Option<U::Area>)
pub fn push<W: Widget<U>>( &mut self, widget: W, area: &U::Area, checker: impl Fn() -> bool + 'static, specs: PushSpecs, cluster: bool, ) -> (Node<U>, Option<U::Area>)
Pushes a Widget onto an existing one
Sourcepub fn push_file(
&mut self,
file: File,
checker: impl Fn() -> bool + 'static,
) -> Result<(Node<U>, Option<U::Area>), ()>
pub fn push_file( &mut self, file: File, checker: impl Fn() -> bool + 'static, ) -> Result<(Node<U>, Option<U::Area>), ()>
pub fn nodes(&self) -> impl DoubleEndedIterator<Item = &Node<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