[][src]Trait smithy_types::Component

pub trait Component {
    fn render(&mut self) -> Node;

    fn handle_post_render(&mut self) { ... }
fn handle_ref_assignment(&mut self, _path_so_far: Vec<usize>) { ... }
fn handle_ui_event(
        &mut self,
        _event: &UiEvent,
        _path: &Path
    ) -> EventHandled { ... }
fn handle_window_event(&mut self, _event: &WindowEvent) -> EventHandled { ... } }

The main trait of Smithy.

Required methods

fn render(&mut self) -> Node

Loading content...

Provided methods

fn handle_post_render(&mut self)

fn handle_ref_assignment(&mut self, _path_so_far: Vec<usize>)

fn handle_ui_event(&mut self, _event: &UiEvent, _path: &Path) -> EventHandled

fn handle_window_event(&mut self, _event: &WindowEvent) -> EventHandled

Loading content...

Implementations on Foreign Types

impl<'_> Component for &'_ str[src]

impl Component for String[src]

impl<'_> Component for &'_ String[src]

impl<T> Component for Vec<T> where
    T: Component
[src]

impl<T> Component for Option<T> where
    T: Component
[src]

impl Component for bool[src]

impl Component for char[src]

impl Component for i8[src]

impl Component for i16[src]

impl Component for i32[src]

impl Component for i64[src]

impl Component for isize[src]

impl Component for u8[src]

impl Component for u16[src]

impl Component for u32[src]

impl Component for u64[src]

impl Component for usize[src]

impl Component for f32[src]

impl Component for f64[src]

Loading content...

Implementors

impl<'a> Component for SmithyComponent<'a>[src]

Loading content...