pub struct TabViewItem { /* private fields */ }Available on crate feature
winio only.Expand description
A tab item of TabView.
Implementations§
Source§impl TabViewItem
impl TabViewItem
Trait Implementations§
Source§impl AsContainer for TabViewItem
impl AsContainer for TabViewItem
Source§fn as_container(&self) -> BorrowedContainer<'_>
fn as_container(&self) -> BorrowedContainer<'_>
Get the container handle.
Source§impl Component for TabViewItem
impl Component for TabViewItem
Source§type Event = TabViewItemEvent
type Event = TabViewItemEvent
The output event type to the parent.
Source§type Message = TabViewItemMessage
type Message = TabViewItemMessage
The input message type to update.
Source§async fn init(
_init: <TabViewItem as Component>::Init<'_>,
_sender: &ComponentSender<TabViewItem>,
) -> Result<TabViewItem, Error>
async fn init( _init: <TabViewItem as Component>::Init<'_>, _sender: &ComponentSender<TabViewItem>, ) -> Result<TabViewItem, Error>
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 Debug for TabViewItem
impl Debug for TabViewItem
Auto Trait Implementations§
impl Freeze for TabViewItem
impl !RefUnwindSafe for TabViewItem
impl !Send for TabViewItem
impl !Sync for TabViewItem
impl Unpin for TabViewItem
impl UnsafeUnpin for TabViewItem
impl !UnwindSafe for TabViewItem
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more