Trait avalanche::Component [−][src]
pub trait Component: 'static {
type Builder;
fn render(&self, ctx: Context<'_>) -> View;
fn updated(&self) -> bool;
fn native_type(&self) -> Option<NativeType> { ... }
fn location(&self) -> Option<(u32, u32)> { ... }
fn key(&self) -> Option<&str> { ... }
}
Expand description
The trait representing a component.
Users should not implement this trait manually but instead use the component
attribute.
However, native component implementations may need to use manual component implementations.