pub struct BasicComp<F, T = BasicState>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<F, T> Component for BasicComp<F, T>
impl<F, T> Component for BasicComp<F, T>
type Message = ()
type State = T
fn on_key( &mut self, key: KeyEvent, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
const TICKS: bool = true
fn on_mount( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_unmount( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_blur( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_focus( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_mouse( &mut self, mouse: MouseEvent, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_tick( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, dt: Duration, )
fn on_message( &mut self, message: Self::Message, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_resize( &mut self, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn on_event( &mut self, event: &mut UserEvent<'_>, state: &mut Self::State, children: Children<'_, '_>, context: Context<'_, '_, Self::State>, )
fn accept_focus(&self) -> bool
Auto Trait Implementations§
impl<F, T> Freeze for BasicComp<F, T>where
F: Freeze,
impl<F, T> RefUnwindSafe for BasicComp<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for BasicComp<F, T>
impl<F, T> Sync for BasicComp<F, T>
impl<F, T> Unpin for BasicComp<F, T>
impl<F, T> UnwindSafe for BasicComp<F, T>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AnyComponent for Twhere
T: Component + 'static,
impl<T> AnyComponent for Twhere
T: Component + 'static,
fn any_event( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, event: Event, ) -> Event
fn any_accept_focus(&self) -> bool
fn any_ticks(&self) -> bool
fn any_message( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, message: Box<dyn Any>, )
fn any_focus( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, )
fn any_blur( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, )
fn any_tick( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, dt: Duration, )
fn any_resize( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, )
fn any_component_event( &mut self, children: Children<'_, '_>, ctx: AnyComponentContext<'_, '_>, event: &mut UserEvent<'_>, )
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more