pub struct Ui { /* private fields */ }
Expand description
A Ui
is a container for related widgets.
Implementations
Trait Implementations
sourceimpl Cap for Ui
impl Cap for Ui
sourcefn add_widget(
&mut self,
parent: Id,
new_widget: &'_ mut dyn FnMut(Id, &mut dyn Cap) -> Box<dyn Widget>
) -> Id
fn add_widget(
&mut self,
parent: Id,
new_widget: &'_ mut dyn FnMut(Id, &mut dyn Cap) -> Box<dyn Widget>
) -> Id
Add a widget to the Ui
.
sourcefn children(&self, widget: Id) -> Iter<'_, Id>
fn children(&self, widget: Id) -> Iter<'_, Id>
Retrieve an iterator over the children. Iteration happens in z-order, from highest to lowest.
sourcefn is_visible(&self, widget: Id) -> bool
fn is_visible(&self, widget: Id) -> bool
Check whether a widget has its visibility flag set.
sourcefn is_displayed(&self, widget: Id) -> bool
fn is_displayed(&self, widget: Id) -> bool
Check whether a widget is actually being displayed.
sourcefn is_focused(&self, widget: Id) -> bool
fn is_focused(&self, widget: Id) -> bool
Check whether the given widget is focused.
Auto Trait Implementations
impl !RefUnwindSafe for Ui
impl !Send for Ui
impl !Sync for Ui
impl Unpin for Ui
impl !UnwindSafe for Ui
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more