pub struct CheckBox { /* private fields */ }Expand description
A simple check box.
Implementations§
Trait Implementations§
Source§impl AsWidget for CheckBox
impl AsWidget for CheckBox
Source§fn as_widget(&self) -> BorrowedWidget<'_>
fn as_widget(&self) -> BorrowedWidget<'_>
Get the widget handle.
Source§impl Component for CheckBox
impl Component for CheckBox
Source§type Event = CheckBoxEvent
type Event = CheckBoxEvent
The output event type to the parent.
Source§type Init<'a> = BorrowedContainer<'a>
type Init<'a> = BorrowedContainer<'a>
Initial parameter type.
Source§type Message = CheckBoxMessage
type Message = CheckBoxMessage
The input message type to update.
Source§async fn init(
init: Self::Init<'_>,
_sender: &ComponentSender<Self>,
) -> Result<Self>
async fn init( init: Self::Init<'_>, _sender: &ComponentSender<Self>, ) -> Result<Self>
Create the initial component.
Source§async fn start(&mut self, sender: &ComponentSender<Self>) -> !
async fn start(&mut self, sender: &ComponentSender<Self>) -> !
Start the event listening.
Source§async fn update(
&mut self,
message: Self::Message,
sender: &ComponentSender<Self>,
) -> Result<bool, Self::Error>
async fn update( &mut self, message: Self::Message, sender: &ComponentSender<Self>, ) -> Result<bool, Self::Error>
Respond to the message. Return true if need render.
Source§fn render(&mut self, sender: &ComponentSender<Self>) -> Result<(), Self::Error>
fn render(&mut self, sender: &ComponentSender<Self>) -> Result<(), Self::Error>
Render the widgets.
Source§impl Layoutable for CheckBox
impl Layoutable for CheckBox
Source§impl TextWidget for CheckBox
impl TextWidget for CheckBox
Auto Trait Implementations§
impl Freeze for CheckBox
impl !RefUnwindSafe for CheckBox
impl !Send for CheckBox
impl !Sync for CheckBox
impl Unpin for CheckBox
impl UnsafeUnpin for CheckBox
impl UnwindSafe for CheckBox
Blanket Implementations§
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