Struct tuirealm::view::View [−][src]
pub struct View { /* fields omitted */ }
Expand description
View
View is the wrapper and manager for all the components. A View is a container for all the components in a certain layout. Each View can have only one focused component.
Implementations
mount
Mount a new component in the view
umount
Umount a component from the view. If component has focus, blur component and remove it from the stack
render
RenderData component with the provided id
update
Update component properties
Returns None
if component doesn’t exist
on
Handle event for the focused component (if any)
Returns None
if no component is focused
blur
Blur selected element AND DON’T PUSH CURRENT ACTIVE ELEMENT INTO THE STACK Last element in stack becomes active and is removed from the stack
Auto Trait Implementations
impl !RefUnwindSafe for View
impl !UnwindSafe for View