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

init

Initialize a new View

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

get_props

Get component properties

update

Update component properties Returns None if component doesn’t exist

get_state

Get component state

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

active

Active provided element Current active component, if any, GETS PUSHED to the STACK

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.